Skip to main content

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.

Claude Desktop can use a third-party inference gateway when developer mode is enabled. Choose the setup path based on your BetterToken API Key group: enter the Anthropic-compatible endpoint directly, or forward requests through a CC Switch local route.
If you use a Claude group API key, you can enter https://www.bettertoken.ai directly in Claude Desktop. If you use a Codex group API key, configure a local route through CC Switch first, then enter the local service address in Claude Desktop. Do not enter the Codex / OpenAI-compatible endpoint https://www.bettertoken.ai/v1 directly in Claude Desktop Gateway.

Setup steps

1

Download Claude Desktop

Download the latest Claude Desktop app from the official link:Download Claude for MacAfter installation, do not sign in to a Claude account. Continue to the next step and enable developer mode.
2

Enable developer mode

Open Claude Desktop, then choose HelpTroubleshootingEnable Developer Mode from the macOS menu bar.
Select Enable Developer Mode from the Claude Desktop Help menu.
In the confirmation window, click Enable, then restart Claude Desktop.
Confirm developer mode in Claude Desktop.
3

Open third-party inference settings

After restarting, the macOS menu bar shows a Developer menu.Choose DeveloperConfigure Third-Party Inference….
Choose Configure Third-Party Inference from the Developer menu.
After you finish the first 3 steps, choose the path that matches your BetterToken API Key group.
1

Enter BetterToken API settings

In the settings window, select Gateway, then enter:
FieldValue
Gateway base URLhttps://www.bettertoken.ai
Gateway API keyCopy your API Key from Token management in the BetterToken console
Gateway auth schemex-api-key
After you select Gateway auth scheme, Claude Desktop automatically fetches the available models for the Claude group. Click Apply locally after entering the settings.
Configure BetterToken Gateway settings in Claude Desktop and click Apply locally.
2

Confirm the app relaunch

After Claude writes the local configuration, it asks for a relaunch. Click Relaunch now so the new gateway configuration takes effect.
Claude Desktop asks to relaunch, with the Relaunch now button highlighted.
3

Sign in with Gateway

After restarting, wait about 3 seconds for the sign-in choice to appear.
Claude Desktop shows the Continue with Gateway sign-in option.
Choose Continue with Gateway. After Claude opens, Cowork 3P | Gateway appears in the lower-left corner and you can start using it.
Claude Desktop is ready after signing in with Gateway.

Troubleshooting

If the Developer menu does not appear in Claude Desktop, confirm that you clicked Enable and fully restarted the app. If requests fail, check these items first:
  1. Gateway base URL matches the setup path: use https://www.bettertoken.ai for a Claude group, or the local service address copied from CC Switch for a Codex group
  2. Gateway API key comes from Token management in the BetterToken console
  3. Gateway auth scheme matches the API Key group: use x-api-key for a Claude group and bearer for a Codex group
  4. You clicked Apply locally
  5. If you use a Codex group, the main routing switch and the Claude route are enabled in CC Switch Routing settings
  6. You clicked Relaunch now and selected Continue with Gateway after restart