Claude Code

Connect Claude Code to Essevin with one-click setup or environment variables.

Claude Code is Anthropic's official CLI. Use the console's one-click setup for a first installation, CC Switch when you manage several providers, and manual setup when you already manage environment variables yourself.

MethodBest forWhat it does
One-click setup (recommended)First-time setupInstalls Claude Code, backs up and writes ~/.claude/settings.json, and verifies the key
CC SwitchGraphical setup or multiple providersImports and switches Claude Code provider configurations
Manual setupExisting environment-management workflowsSets the Base URL and key environment variables directly

No environment-variable knowledge is required. Windows, macOS, and Linux are supported.

Find the one-click button

Sign in to the console, open API Keys, and select One-Click Setup beside the key.

Copy the command for your system

Select Claude Code, choose macOS / Linux or Windows PowerShell, then copy the command.

Paste it into a terminal and press Enter

On macOS, open Terminal. On Windows, open PowerShell. The script installs Claude Code if needed, backs up existing configuration, writes the Essevin settings, and verifies the connection.

Start Claude Code

After setup succeeds, open a new terminal window and run claude.

The command contains a single-use integration token that expires after 15 minutes, not the API key itself.

Desktop setup with CC Switch

The CC Switch guide covers macOS, Windows, and Linux installation, importing Claude Code or Codex CLI from the Essevin console, switching providers,-5.3 local routing.

Manual setup

Temporary settings apply only to the current terminal window:

export ANTHROPIC_BASE_URL=https://api.essevin.com
export ANTHROPIC_AUTH_TOKEN=sk-your-key

claude

Persistent settings belong in your shell startup file:

# zsh (the macOS default)
echo 'export ANTHROPIC_BASE_URL=https://api.essevin.com' >> ~/.zshrc
echo 'export ANTHROPIC_AUTH_TOKEN=sk-your-key' >> ~/.zshrc
source ~/.zshrc

# bash (common on Linux; use this instead of the zsh block)
echo 'export ANTHROPIC_BASE_URL=https://api.essevin.com' >> ~/.bashrc
echo 'export ANTHROPIC_AUTH_TOKEN=sk-your-key' >> ~/.bashrc
source ~/.bashrc

Switch models

In a Claude Code session, enter /model to pick or type a model ID. You can also start Claude Code with --model, or set the ANTHROPIC_MODEL environment variable (with one-click setup, add it to the env block of ~/.claude/settings.json). Use only IDs returned by GET /v1/models for the current key.

# Switch inside a session (enter /model alone to list models)
/model claude-opus-5

# Or choose a model at startup
claude --model claude-sonnet-5

Use a Claude group key

Use a key from a Claude group (the Claude Max family). Common mistakes: adding /v1 to the Base URL, so requests go to /v1/v1/messages, or calling an OpenAI-protocol endpoint (/v1/chat/completions, /v1/responses) with a Claude key. Both return 404 "This API path is not supported by the current platform". Claude Code's count_tokens requests also count toward concurrency;See Troubleshooting when setup fails.

On this page