Coding agents setup with Earbowe

Install and configure Claude Code, Codex CLI, OpenCode and Gemini CLI against Earbowe API.

Global: https://api.earbowe.com/v1

China direct: https://api.3861343.xyz/v1

Console: api.earbowe.com/dashboard

1. Create a key

  1. Sign in at the console
  2. Create an API key (sk-...)
  3. Confirm models via GET /v1/models

2. OpenAI-compatible tools (Codex / many CLIs)

export OPENAI_BASE_URL="https://api.earbowe.com/v1"
export OPENAI_API_KEY="sk-..."
export OPENAI_MODEL="gpt-5.5"

3. Codex config.toml

model_provider = "earbowe"
model = "gpt-5.5"
preferred_auth_method = "apikey"

[model_providers.earbowe]
name = "Earbowe"
base_url = "https://api.earbowe.com/v1"
wire_api = "responses"
requires_openai_auth = true

4. Claude Code

export ANTHROPIC_BASE_URL="https://api.earbowe.com"
export ANTHROPIC_AUTH_TOKEN="sk-..."

If your gateway only exposes OpenAI-compatible routes, use Codex/OpenCode instead of Claude Code.

5. Smoke test

curl -sS "$OPENAI_BASE_URL/models" -H "Authorization: Bearer $OPENAI_API_KEY" | head

Full Chinese step-by-step (Windows/macOS/Linux): 中文完整教程