Claude Code
Run Claude Code against the Messages API.
Claude Code uses the Messages API. zro launch starts it with a session-scoped
provider configuration and leaves your normal Claude Code config untouched.
zro launch claude --model deepseek-v4.1-flashSwitch models during a session with /model inside Claude Code.
Overriding the Anthropic model
Claude Code refers to models by tier aliases: opus, sonnet, fable, and
haiku (used for cheap background tasks). zro launch maps each alias to a Zro
model automatically. Override any slot with a repeatable --alias flag:
zro launch claude --model deepseek-v4.1-flash \
--alias sonnet=glm-5.3 \
--alias haiku=glm-5.3-flashSlot names are case-insensitive. Use any model ID from Models.
Manual configuration
Claude Code reads the endpoint root (without /v1):
export ANTHROPIC_BASE_URL="https://zro.moonmath.ai"
export ANTHROPIC_AUTH_TOKEN="sk-..."
export ANTHROPIC_MODEL="deepseek-v4.1-flash"Use any model ID from Models.
To override a tier alias directly, set the matching ANTHROPIC_DEFAULT_<SLOT>_MODEL
variable (OPUS, SONNET, FABLE, or HAIKU):
export ANTHROPIC_DEFAULT_OPUS_MODEL="glm-5.3"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="glm-5.3-flash"