I use Claude Code with z.ai GML 4.7 model. No OAuth authorization, but configured environment variables
{ "env": { "ANTHROPIC_AUTH_TOKEN": "your_zai_api_key", "ANTHROPIC_BASE_URL": "https://api.z.ai/api/anthropic", "API_TIMEOUT_MS": "3000000" } }
and z.ai MCP server in .claude.json:
"zai-mcp-server": { "type": "stdio", "command": "npx.cmd", "args": [ "-y", "@z_ai/mcp-server" ], "env": { "Z_AI_MODE": "ZAI", "Z_AI_API_KEY": "*************************************************" }
Documentation: https://docs.z.ai/devpack/tool/claude
Perhaps there's a way to use Claude code w/o mandatory OAuth? Or just use the same MCP Server? Z.ai is quite popular for coding these days.