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-20241022Available Models
With Fizzly API, you can use these models in Claude Code:
| Model | Description |
|---|---|
claude-3-5-sonnet-20241022 | Claude 3.5 Sonnet, balanced performance |
claude-3-opus-20240229 | Claude 3 Opus, strongest reasoning |
claude-3-haiku-20240307 | Claude 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:
- Check your network connection
- Verify API endpoint address
- Contact support for service status
Model Unavailable
If a model is unavailable:
- Verify model name is correct
- Confirm account has model access
- Check Model List for available models