For authentication and model list, see Overview .
What is Claude Code
Claude Code is Anthropic’s official AI coding assistant for your terminal and IDE. You can configure it to use PipeLLM as your API endpoint.
Configuration
If you have previously configured environment variables (ANTHROPIC_BASE_URL,
ANTHROPIC_API_KEY), please remove them first to avoid conflicts. Common
locations: - macOS : ~/.zshrc or ~/.bash_profile - Windows : System
Environment Variables or PowerShell profile - Linux : ~/.bashrc or
~/.zshrc
Edit the Claude settings file at ~/.claude/settings.json:
Claude Models
OpenAI / Gemini Models
Use Claude models through PipeLLM: {
"env" : {
"ANTHROPIC_DEFAULT_HAIKU_MODEL" : "claude-haiku-4-5-20251001" ,
"ANTHROPIC_DEFAULT_SONNET_MODEL" : "claude-sonnet-4-5-20250929" ,
"ANTHROPIC_DEFAULT_OPUS_MODEL" : "claude-opus-4-5-20251101" ,
"ANTHROPIC_BASE_URL" : "https://api.pipellm.ai" ,
"ANTHROPIC_AUTH_TOKEN" : "your-pipellm-api-key"
}
}
Use OpenAI or Gemini models with Claude Code via our Anthropic format converter: {
"env" : {
"ANTHROPIC_DEFAULT_HAIKU_MODEL" : "gpt-5.1-codex-mini" ,
"ANTHROPIC_DEFAULT_SONNET_MODEL" : "gpt-5.1-codex" ,
"ANTHROPIC_DEFAULT_OPUS_MODEL" : "gpt-5.1-codex-max" ,
"ANTHROPIC_BASE_URL" : "https://api.pipellm.ai/anthropic" ,
"ANTHROPIC_AUTH_TOKEN" : "your-pipellm-api-key"
}
}
Gemini Model Support : Gemini 2.5 series (e.g., gemini-2.5-flash,
gemini-2.5-pro) are supported. Gemini 3 series models are not compatible
with Claude Code.
Example with Gemini models: {
"env" : {
"ANTHROPIC_DEFAULT_HAIKU_MODEL" : "gemini-2.5-flash-lite" ,
"ANTHROPIC_DEFAULT_SONNET_MODEL" : "gemini-2.5-flash" ,
"ANTHROPIC_DEFAULT_OPUS_MODEL" : "gemini-2.5-pro" ,
"ANTHROPIC_BASE_URL" : "https://api.pipellm.ai/anthropic" ,
"ANTHROPIC_AUTH_TOKEN" : "your-pipellm-api-key"
}
}
Then run Claude Code normally:
IDE Configuration
VS Code
Open VS Code Settings (JSON)
Add the following configuration:
{
"claude.apiKey" : "your-pipellm-api-key" ,
"claude.apiBaseUrl" : "https://api.pipellm.ai"
}
JetBrains IDEs
Open Settings → Tools → Claude
Set API Key : Your PipeLLM API key
Set API Base URL : https://api.pipellm.ai
More Resources
Claude Code Documentation Official Claude Code setup and usage guide