Menu

Claude Code Configuration

Claude Code uses the Anthropic Messages API. Simply point it to an Anthropic-compatible gateway.

Step 1: Install Claude Code

Local Installation

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
 

tep 2: Connect Claude to the Platform

Edit the user configuration file:
macOS / Linux:
~/.claude/settings.json
 
Windows:
%USERPROFILE%\.claude\settings.json
 
Configuration:
 
{ "env": { "ANTHROPIC_BASE_URL": "LLMPool Anthropic URL",
 "ANTHROPIC_AUTH_TOKEN": "<your-api-key>",
"ANTHROPIC_API_KEY": "",
 "ANTHROPIC_DEFAULT_SONNET_MODEL": "",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "" } }
 
ANTHROPIC_BASE_URL: Copy and paste the URL from the homepage.
ANTHROPIC_DEFAULT_SONNET_MODEL: For regular coding, Agent tasks, and default execution mode.
ANTHROPIC_DEFAULT_OPUS_MODEL: For advanced reasoning, complex planning, and Plan Mode.

Step 3: Clear All Cached Anthropic Login Information

Run:
/logout
 

Step 4: Start a Session

cd /.../project claude
 
 
Share this Article
Previous
Manual AI API Configuration
Next
Claude Desktop Configuration
Last modified: 2026-07-08