Skip to main content

AI coding tools FAQ

These pages are for developers searching for Claude Code, Codex, Cursor, Cline, and other AI coding tool concepts. They explain the tool first, then show where API Key, Base URL, protocol choice, and usage visibility connect to BetterToken.

Account and billing

BetterToken charges by actual token usage and follows Anthropic / OpenAI pricing without adding an extra markup.See the pricing page for details.
Contact support if you need a refund for a paid top-up.
Yes. The same API Key can be used in Claude Code, Codex, Cursor, and other tools at the same time. Usage is shared.
Log in to the dashboard to view current usage and billing records.

Setup and configuration

BetterToken now uses two different endpoints by protocol:Do not reuse one address across every tool.
Connect Claude Code with your BetterToken API Key, Base URL https://bettertoken.ai, and the Model ID you want to use. Replace YOUR_MODEL_ID with the Model ID you copied. Set ANTHROPIC_MODEL for the main model and the three ANTHROPIC_DEFAULT_*_MODEL variables for the Haiku, Sonnet, and Opus aliases. You can map them to the same model or choose a different model for each role. Copy the exact Model ID from the model plaza.
Copy the exact Model ID from the model plaza.
Copy the exact Model ID from the model plaza.
Usually not.Based on the official docs we checked, common external tools like Cursor, Cline, and Zed focus on the Base URL, API key, and model ID. OpenCode and OpenClaw do support optional headers, but their official docs describe that as custom headers or custom auth needs, not as a required BetterToken setup step.Only add extra headers when the tool’s official docs, or your own upstream gateway, tenant routing, observability, or caching layer explicitly requires them.
Check the following:
  1. Make sure the API Key is correct and has no extra spaces
  2. Confirm Claude Code uses https://bettertoken.ai, while Codex / external tools use https://bettertoken.ai/v1
  3. Check whether old ANTHROPIC_AUTH_TOKEN, ANTHROPIC_BASE_URL, OPENAI_API_KEY, or OPENAI_BASE_URL variables are overriding the config
  4. For external tools, check whether there are additional official requirements such as version limits, model allowlists, or extra headers explicitly required by your upstream gateway
If the issue remains, contact support.

Reliability and rate limits

BetterToken connects to multiple suppliers and uses the following mechanisms:
  • Multi-source supply: one supplier outage does not take down your requests
  • Dynamic routing: BetterToken picks the fastest and most stable path in real time
  • Flagship focus: reliability work is concentrated on Claude Code and the Codex ecosystem
BetterToken automatically handles individual supplier rate limits and timeouts. If issues continue:
  1. Check that your balance is sufficient
  2. Increase the timeout for your tool (API_TIMEOUT_MS=3000000 is recommended)
  3. Contact support to confirm the current quota status
BetterToken is primarily built for individual developers using AI coding tools such as Claude Code and Codex. For large-scale production API workloads, evaluate it against your own requirements.

Privacy and security

BetterToken acts as a relay and does not persist conversation content. See the Privacy Policy for details.
Log in to the dashboard immediately, delete the old key, and generate a new one. Then update every tool that uses that key.