Documentation

Claude Code

Claude Code uses the Anthropic Messages API. Point it at the Anthropic-compatible gateway.

Quick Start

This guide helps you get Claude Code running through the gateway in a few minutes.

Step 1: Install Claude Code

Local install

macOS, Linux, WSL

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

Windows PowerShell

irm https://claude.ai/install.ps1 | iex

npm

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

Step 2: Connect Claude to the Platform

Edit your user config file

macOS / Linux: ~/.claude/settings.json

Windows: %USERPROFILE%\.claude\settings.json

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.benpay.ai/anthropic/v1", # paste the URL from the homepage
    "ANTHROPIC_AUTH_TOKEN": "<your-api-key>",
    "ANTHROPIC_API_KEY": "", # set to an empty string
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "", # everyday coding, agent tasks, default execution mode
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "" # strong reasoning, complex planning, Plan Mode
  }
}

Step 3: Clear cached Anthropic login info

> /logout

Step 4: Start a session

cd /path/to/your/project
claude

Step 5: Verify

Run /status in Claude Code to confirm your connection.

> /status
Auth token: ANTHROPIC_AUTH_TOKEN
Anthropic base URL: https://api.benpay.ai/anthropic/v1