Claude CLI (command line)

Download Claude Code, then connect it to CheapAI with CC Switch or Folkbench Switch.

If you haven't installed a setup tool yet, start with Setup tools (required).

Install Claude CLI (Claude Code)

Open Terminal, paste the official install command, and press Return:

Terminal
curl -fsSL https://claude.ai/install.sh | bash

Or install with Homebrew:

Homebrew
brew install --cask claude-code

When it finishes, run claude --version to confirm. See also the official Claude Code guide.

Configure with CC Switch

  1. Open CC Switch, select Claude Code in the left sidebar, then click Add provider.

  2. Choose Custom
  3. Fill in the following fields:

    • Name: CheapAI
    • API Key: paste the key from API Keys
    • URL: https://cheapai.info (no /v1)
  4. Click Add. CheapAI should show In use (if not, click ▷ on the card).
  5. Relaunch claude

Configure with Folkbench Switch

  1. Open Folkbench Switch, then:

    • Switch to Pro in the top-right
    • Select Claude Code in the top bar
    • Click + Add service
  2. Choose Quick fill from listed sites
  3. Pick CheapAI
  4. In Prepare service, confirm and fill in:

    • Protocol: Anthropic Messages (recommended)
    • API Base URL: keep https://cheapai.info/v1 (Folkbench strips the trailing /v1 when writing Claude settings)
    • API Key: paste the key from API Keys
    • Model: pick a Claude model

    Then click Save.

  5. Saving only adds it to the local list.

    On the service card at the bottom, click Switch.

  6. Restart claude

Manual setup

If you prefer not to use CC Switch or Folkbench Switch, set the site root (no /v1) and your CheapAI key as environment variables, then start claude.

macOS / Linux
export ANTHROPIC_BASE_URL="https://cheapai.info"
export ANTHROPIC_AUTH_TOKEN="$CHEAPAI_API_KEY"
claude --model YOUR_CLAUDE_MODEL_ID