Quickstart
Import Key to Terminal
Set the correct base URL and API key for your client.
Use the Dashboard Use Key dialog whenever possible. It knows the selected group and generates the safest configuration for your client.
Claude Code
export ANTHROPIC_BASE_URL="https://anyroute.io"
export ANTHROPIC_AUTH_TOKEN="YOUR_ANYROUTE_API_KEY"
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1Gemini CLI
export GOOGLE_GEMINI_BASE_URL="https://anyroute.io"
export GEMINI_API_KEY="YOUR_ANYROUTE_API_KEY"
export GEMINI_MODEL="gemini-2.0-flash"OpenAI-compatible SDK
Most OpenAI SDKs expect a /v1 base URL:
export OPENAI_BASE_URL="https://anyroute.io/v1"
export OPENAI_API_KEY="YOUR_ANYROUTE_API_KEY"Codex
Codex should use the Dashboard-generated config.toml and auth.json files instead of ad-hoc environment variables. See Codex CLI.
AnyRoute Docs