Tokening

Connect Claude Code to Tokening

Use a model from your own providers in Claude Code through the local Anthropic Messages endpoint.

Set Claude Code’s environment variables

Start the Tokening gateway and copy its local access key. Run these commands in the terminal where you launch Claude Code, replacing the example key with your local key.

export ANTHROPIC_BASE_URL=http://127.0.0.1:18800
export ANTHROPIC_AUTH_TOKEN=tk-your-local-key
claude

Choose a model

Create a route for the model name Claude Code requests, or set ANTHROPIC_MODEL to a route you configured in Tokening. On macOS, use the integrations section under 「我的」 to write the endpoint and key into Claude Code’s settings.

All integration guides