/
Log in Create Account

Claude Code

To use TokenDock with Claude Code, you can point it to the TokenDock endpoint using environment variables.

Configuration

Set the ANTHROPIC_BASE_URL environment variable in your shell configuration (e.g., .bashrc or .zshrc):

BASH
export ANTHROPIC_BASE_URL="https://tokendock.ai/v1"
export ANTHROPIC_API_KEY="your-tokendock-api-key"

Alternatively, you can save these settings in your global configuration file at ~/.claude/settings.json:

JSON
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://tokendock.ai/v1",
    "ANTHROPIC_API_KEY": "your-tokendock-api-key"
  }
}

After setting the variables, you can run claude in your terminal. Use claude doctor to verify the connection.