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: usehttps://www.bettertoken.ai - Codex /
OPENAI_BASE_URL/ external tools: usehttps://www.bettertoken.ai/v1
- 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_urleverywhere
Two access modes
| Scenario | Base URL | Notes |
|---|---|---|
| Claude Code | https://www.bettertoken.ai | Anthropic protocol, no /v1 suffix |
| Codex / external tools | https://www.bettertoken.ai/v1 | OpenAI-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.