> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bettertoken.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# BetterToken Docs

> Stable API relay for Claude Code, Codex, and external AI tools.

## 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

| 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

<Columns cols={2}>
  <Card title="Quickstart" icon="rocket" href="/en/quickstart">
    Start by picking the Claude Code track or the Codex / external tool track.
  </Card>

  <Card title="FAQ" icon="circle-question" href="/en/faq">
    Review the rules for Base URL, model groups, 403 errors, and auth.
  </Card>
</Columns>

## Connect your AI coding tool

<Columns cols={2}>
  <Card title="Claude Code" icon="terminal" href="/en/ai-tools/claude-code">
    Set `ANTHROPIC_BASE_URL=https://www.bettertoken.ai`.
  </Card>

  <Card title="Codex" icon="code" href="/en/ai-tools/codex">
    Use `https://www.bettertoken.ai/v1` with OpenAI Responses.
  </Card>

  <Card title="Cursor" icon="pen-to-square" href="/en/ai-tools/cursor">
    External tools use the Codex group with OpenAI-compatible settings.
  </Card>

  <Card title="OpenClaw" icon="paw" href="/en/ai-tools/openclaw">
    Connect BetterToken first, then use `/new` and `/status` to verify the current session.
  </Card>

  <Card title="CC Switch" icon="toggle-left" href="/en/ai-tools/cc-switch">
    Manage BetterToken for Claude Code, Codex, OpenCode, and OpenClaw from one GUI.
  </Card>
</Columns>
