AnyRouteAnyRoute Docs
AnyRouteAnyRoute Docs
Homepage

Start Here

AnyRoute Documentation
QuickstartCreate an API KeyChoose a Provider GroupImport Key to TerminalFirst Request

Tools

Capabilities

API Reference

Operations

FAQ
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=1

Gemini 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.

Choose a Provider Group

Pick the group that matches your client protocol and target model family.

First Request

Verify that your AnyRoute API key and provider group work.

Table of Contents

Claude Code
Gemini CLI
OpenAI-compatible SDK
Codex