Loading...
Loading...
Point Claude Code at AisaysAI with two environment variables. We speak the Anthropic Messages API natively — agentic tool calling, streaming, and subagents all work out of the box.
Create an API key in your dashboard, then add the env block to ~/.claude/settings.json:
// ~/.claude/settings.json
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "sk-or-v1-...",
"ANTHROPIC_BASE_URL": "https://api.aisays.ai/anthropic",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "zhipu/glm-5.3",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "zhipu/glm-5.3",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "zhipu/glm-5.3"
}
}Restart Claude Code after saving. The three ANTHROPIC_DEFAULT_*_MODEL entries route every tier (haiku/sonnet/opus) to the model of your choice — replace them with any slug from the catalog below.
| Feature | Status |
|---|---|
| ANTHROPIC_AUTH_TOKEN (Bearer) | Fully Supported |
| x-api-key | Fully Supported |
| anthropic-version | Ignored (accepted) |
| model | Use AisaysAI model slug (provider/model-id) |
| max_tokens | Fully Supported |
| system | Fully Supported |
| messages (text) | Fully Supported |
| messages (image) | Not Supported (rejected with a clear error) |
| stream (SSE) | Fully Supported |
| tools / tool_choice | Fully Supported (tool_use + tool_result round-trips) |
| subagents / CLAUDE_CODE_SUBAGENT_MODEL | Fully Supported |
| thinking / reasoning | Consumed upstream; not surfaced to the client |
Pick a model from the model catalog. Also see the Codex CLI guide.