Skip to main content

Overview

Claude Code is a command-line AI assistant for developers. By connecting it to AllTokens, you can route Claude requests through a single gateway and manage keys, models, quotas, and routing in one place.

Quick setup

export ANTHROPIC_API_KEY="YOUR_API_KEY"
export ANTHROPIC_BASE_URL="https://alltoken.co"
export ANTHROPIC_MODEL="claude-3-5-sonnet"
claude

Notes

  • Make sure your AllTokens key has access to Claude models.
  • To switch models, update ANTHROPIC_MODEL.
  • To make the config persistent, add these variables to your shell profile.