by hmjz100
将 Z.ai Chat 代理为 OpenAI/Anthropic Compatible 格式,支持多模型列表映射、免令牌、智能处理思考链、图片上传等功能;Z.ai ZtoApi z2api ZaitoApi zai X-Signature 签名 GLM 4.5 v 4.6
# Add to your Claude Code skills
git clone https://github.com/hmjz100/Z.ai2apiGuides for using mcp servers skills like Z.ai2api.
Z.ai2api is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by hmjz100. 将 Z.ai Chat 代理为 OpenAI/Anthropic Compatible 格式,支持多模型列表映射、免令牌、智能处理思考链、图片上传等功能;Z.ai ZtoApi z2api ZaitoApi zai X-Signature 签名 GLM 4.5 v 4.6. It has 153 GitHub stars.
Z.ai2api's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/hmjz100/Z.ai2api" and add it to your Claude Code skills directory (see the Installation section above).
Z.ai2api is primarily written in Python. It is open-source under hmjz100 on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh Z.ai2api against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
[!IMPORTANT] 正式版更新稍迟,如急需使用,建议切换到 Canary 分支。
使用 .env 文件进行配置。
BASEhttps://chat.z.aiPORT8080MODELGLM-4.5TOKENANONYMOUS_MODE 可不填ANONYMOUS_MODEtrueTHINK_TAGS_MODEreasoningreasoning think strip details,效果如下
嗯,用户……你好!<think>\n\n嗯,用户……\n\n</think>\n\n你好!> 嗯,用户……\n\n你好!<details type="reasoning" open><div>\n\n嗯,用户……\n\n</div><summary>Thought for 1 seconds</summary></details>\n\n你好!DEBUG_MODEfalsegit clone https://github.com/hmjz100/Z.ai2api.git
cd Z.ai2api
pip install -r requirements.txt
python app.py