Tools & IDEs

Configure Claude Code

Configure Claude Code to use cheapkeyai.com via environment variables or settings.json, with installation and verification commands.

Claude Code can use cheapkeyai.com via the Anthropic-compatible endpoint. The most stable configuration is setting the base URL and token in settings or shell environment variables.

Automatic Installation

macOS / Linux
curl -fsSL https://cheapkeyai.com/cdn/claude/setup.sh | bash
Windows PowerShell
irm https://cheapkeyai.com/cdn/claude/setup.ps1 | iex

Manual Installation

npm
npm install -g @anthropic-ai/claude-code

Configure settings.json

settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://cheapkeyai.com",
    "ANTHROPIC_AUTH_TOKEN": "sk-your-token-here"
  }
}

Configure with Environment Variables

macOS / Linux
export ANTHROPIC_BASE_URL="https://cheapkeyai.com"
export ANTHROPIC_AUTH_TOKEN="sk-your-token-here"
Windows PowerShell
$env:ANTHROPIC_BASE_URL = "https://cheapkeyai.com"
$env:ANTHROPIC_AUTH_TOKEN = "sk-your-token-here"

Usage

Interactive and single-shot
claude
claude "Read this project and list risks before deploying"