Skip to content

Claude Code

Recommended: use cc-switch for setup: https://github.com/farion1231/cc-switch/releases

This service supports the Anthropic Messages format required by Claude Code.

The relevant endpoint is POST /v1/messages.

If you do not use cc-switch, configure Claude Code with its official environment variables:

export ANTHROPIC_BASE_URL="https://codex.miaomiaocode.com"
export ANTHROPIC_AUTH_TOKEN="codex_your_api_key"
claude

Use the service root in ANTHROPIC_BASE_URL, not the full /v1/messages path.

OpenAI-compatible gateway integration docs