Overview
Claude Code is Anthropic’s official CLI tool for AI-assisted coding. You can configure it to use LemonData as the API provider.Configuration
Environment Variables
Set the following environment variables:~/.bashrc, ~/.zshrc, etc.) for persistence.
Configuration File
Alternatively, create or edit~/.claude/settings.json:
Usage
After configuration, use Claude Code normally:Available Models
LemonData supports all Claude models:| Model | Description |
|---|---|
claude-opus-4-20250514 | Most capable, complex reasoning |
claude-sonnet-4-20250514 | Balanced performance |
claude-3-5-sonnet-20241022 | Fast, excellent for coding |
claude-3-5-haiku-20241022 | Fastest, cost-effective |
claude-3-7-sonnet-20250219 | Latest Sonnet |
claude-3-7-sonnet-20250219-thinking | Extended thinking |
Model Selection
Specify a model with the--model flag:
Extended Thinking
For complex reasoning tasks, use models with extended thinking:Troubleshooting
Connection errors
Connection errors
Verify the base URL is exactly
https://api.lemondata.cc (no /v1 suffix for Anthropic SDK).Invalid API key
Invalid API key
Ensure your LemonData API key starts with
sk- and has sufficient balance.Model not found
Model not found
Check the model name is correct. Use
claude-3-5-sonnet-20241022 format.Benefits
Cost savings
LemonData offers competitive pricing with significant discounts.
No rate limits
Higher rate limits than official API for most users.
Multiple models
Access to 300+ models beyond just Claude.
Usage tracking
Detailed usage analytics in your dashboard.