Skip to content

Use Code Machine with Claude Code powered by z.ai's GLM 4.7 model #65

@Gorby200

Description

@Gorby200

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions