docsIntegration GuidesClaude Code Integration

Claude Code Integration

Claude Code is Anthropic’s official CLI AI programming assistant. With Fizzly API, you can use various AI models in Claude Code.

Configuration

Method 1: Environment Variables

Set environment variables in your terminal:

# Linux/macOS
export ANTHROPIC_API_KEY=your-fizzly-api-key
export ANTHROPIC_BASE_URL=https://api.fizzly.com
 
# Windows (PowerShell)
$env:ANTHROPIC_API_KEY="your-fizzly-api-key"
$env:ANTHROPIC_BASE_URL="https://api.fizzly.com"

Method 2: Configuration File

Create a .claude-code config file in your project root:

{
  "apiKey": "your-fizzly-api-key",
  "baseUrl": "https://api.fizzly.com"
}

Usage

After configuration, use Claude Code normally:

# Start Claude Code
claude
 
# Or with parameters
claude --model claude-3-5-sonnet-20241022

Available Models

With Fizzly API, you can use these models in Claude Code:

ModelDescription
claude-3-5-sonnet-20241022Claude 3.5 Sonnet, balanced performance
claude-3-opus-20240229Claude 3 Opus, strongest reasoning
claude-3-haiku-20240307Claude 3 Haiku, fast responses

Fizzly API is fully compatible with Anthropic API format - no code changes needed.

FAQ

Connection Timeout

If you experience connection timeouts:

  1. Check your network connection
  2. Verify API endpoint address
  3. Contact support for service status

Model Unavailable

If a model is unavailable:

  1. Verify model name is correct
  2. Confirm account has model access
  3. Check Model List for available models