Connect T3 Code to BetterToken
Connect T3 Code to BetterToken through Claude Code. Set the Base URL, BetterToken API Key, and Model ID in a separate provider configuration.
Connect T3 Code to BetterToken through Claude Code using Anthropic Messages. Add a separate configuration to keep your existing Claude Code sign-in.
Key settings
| Field | Value |
|---|---|
| API Key | ANTHROPIC_AUTH_TOKEN: Your BetterToken API Key, marked Sensitive |
| Base URL | ANTHROPIC_BASE_URL: https://bettertoken.ai (without /v1) |
| Model | model plaza |
Prerequisites
- Use your existing BetterToken API Key. To get one, register and create a BetterToken API Key.
- Copy the exact Model ID from the model plaza.
Install
Download T3 Code. Install Claude Code on the machine running the T3 Code environment. For a remote environment, install it on the server.
Manual setup
- Open Settings → Providers and select the environment. Add a separate Claude instance named
BetterToken. - Set CLAUDE_CONFIG_DIR path to a new folder, such as
~/.claude-bettertokenon macOS or Linux. If T3 Code cannot findclaude, set Binary path to its location. - Under Environment variables, set
ANTHROPIC_BASE_URLandANTHROPIC_AUTH_TOKENas shown in the table. AddANTHROPIC_API_KEYwith an empty value. Save the configuration. - If the model is missing, open the
BetterTokeninstance settings. Select Add custom model and enter the exact Model ID.
Verify the connection
Open a new chat and select a model from the BetterToken instance. Send Reply with only: OK. Check the BetterToken request history for the selected Model ID.
Switch models
Choose another model from the BetterToken instance.
Common errors
401: Check the BetterToken API Key inANTHROPIC_AUTH_TOKEN. KeepANTHROPIC_API_KEYempty.404: Set the Base URL without/v1. Claude Code adds/v1/messages.
Technical details
If you use OpenCode from T3 Code, configure BetterToken in OpenCode. The T3 Code Server URL field takes the OpenCode server address.

