Skip to content

Add support for z.ai provider for claude code#13

Closed
mostlygeek wants to merge 3 commits intomainfrom
custom-claude-code-models
Closed

Add support for z.ai provider for claude code#13
mostlygeek wants to merge 3 commits intomainfrom
custom-claude-code-models

Conversation

@mostlygeek
Copy link
Copy Markdown
Collaborator

Add an option for z.ai support for claude code. The aperture config would look like:

"zai_ant": {
	"baseurl": "https://api.z.ai/api/anthropic",
	"apikey":  "api-key-from-z.ai",
	"models": [
		"glm-5.1",
		"glm-5-turbo",
		"glm-4.7",
	],
	"compatibility": {
		"anthropic_messages": true,
		"openai_chat":        false,
	},
},

Fix incorrect base path env. var for Opencode + Anthropic API
Use ANTHROPIC_API_KEY (not ANTHROPIC_AUTH_TOKEN) for the ZAI backend.
Skip provider-derived model overrides so the fixed glm-5.1 and
glm-5-turbo model names are preserved at runtime.
@mostlygeek
Copy link
Copy Markdown
Collaborator Author

Oops too much stuff made it into this PR. Closing and creating a new PR.

@mostlygeek mostlygeek closed this Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant