Skip to main content
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:
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"
  }
}
Replace your-pipellm-api-key with your actual PipeLLM API key from console.pipellm.ai.
Then run Claude Code normally:
claude

IDE Configuration

VS Code

  1. Open VS Code Settings (JSON)
  2. Add the following configuration:
{
  "claude.apiKey": "your-pipellm-api-key",
  "claude.apiBaseUrl": "https://api.pipellm.ai"
}

JetBrains IDEs

  1. Open SettingsToolsClaude
  2. Set API Key: Your PipeLLM API key
  3. Set API Base URL: https://api.pipellm.ai

More Resources

Claude Code Documentation

Official Claude Code setup and usage guide