Skip to main content

What is BetterToken?

BetterToken is an API relay built for AI coding tools. The docs now distinguish between two access modes:
  • Claude Code / ANTHROPIC_BASE_URL: use https://www.bettertoken.ai
  • Codex / OPENAI_BASE_URL / external tools: use https://www.bettertoken.ai/v1
Key benefits:
  • Multi-source supply: multiple suppliers connected simultaneously
  • Dynamic routing: Automatically bypasses slow or unstable upstreams
  • Flagship focus: Reliability work is concentrated on Claude Code and the Codex ecosystem
  • Two clear tracks: Configure the endpoint by protocol instead of reusing one base_url everywhere

Two access modes

ScenarioBase URLNotes
Claude Codehttps://www.bettertoken.aiAnthropic protocol, no /v1 suffix
Codex / external toolshttps://www.bettertoken.ai/v1OpenAI-style protocol; external tools use the Codex group

Get started

Quickstart

Start by picking the Claude Code track or the Codex / external tool track.

FAQ

Review the rules for Base URL, model groups, 403 errors, and auth.

Connect your AI coding tool

Claude Code

Set ANTHROPIC_BASE_URL=https://www.bettertoken.ai.

Codex

Use https://www.bettertoken.ai/v1 with OpenAI Responses.

Cursor

External tools use the Codex group with OpenAI-compatible settings.

OpenClaw

Connect BetterToken first, then use /new and /status to verify the current session.

CC Switch

Manage BetterToken for Claude Code, Codex, OpenCode, and OpenClaw from one GUI.