Use the latest versions of Claude Desktop and CC Switch. This setup requires a BetterToken API Key.
Configure a custom API endpoint in Claude Desktop
1
Update Claude Desktop and CC Switch
Update Claude Desktop to the latest version and CC Switch to
v3.16.5 or later.2
Switch to Claude Desktop and add a provider
Open CC Switch. Select the Claude Desktop icon in the top toolbar, then click + in the upper-right corner to add a provider.

3
Fill in the basic fields
Enter the following values:
- Provider Name:
BetterToken-codex - API Key: your BetterToken API Key
- API Endpoint:
https://bettertoken.ai

4
Set the model mappings
Set API Format to OpenAI Responses API (Requires routing), then click Fetch Models.Use the mappings shown below and keep Declare 1M enabled:
Use model IDs currently available in the GPT provider of the model plaza.

5
Save, switch, and enable the proxy
After saving the provider, return to the Claude Desktop provider list:
- Select your new BetterToken-codex provider until it shows In use.
- Turn on the proxy switch in the upper-left corner.

6
Restart Claude Desktop and choose a model
Quit Claude Desktop completely, then open it again. Gateway in the lower-left corner confirms that the configuration is active.Choose the model you need from the model menu in the message box, then start working.


