Documentation Index
Fetch the complete documentation index at: https://docs.ccs.kaitran.ca/llms.txt
Use this file to discover all available pages before exploring further.
Anthropic Direct API
Use your Anthropic API key directly to access Claude models without going through CLIProxy. Perfect for users who already have Anthropic subscriptions and want direct API control.Overview
| Field | Details |
|---|---|
| Preset ID | anthropic |
| Aliases | None |
| Default Profile Name | anthropic |
| Default Model | claude-sonnet-4-5-20250929 |
| Base URL | api.anthropic.com (auto-configured) |
| Auth Method | API Key (sk-ant-...) |
| Category | Recommended |
Quick Start
Authentication
Getting Your API Key
Visit Anthropic Console
Go to console.anthropic.com
Create New Key
Click Create Key and copy the generated keyFormat:
sk-ant-...Keep this key secure. Treat it like a password. Do not commit to git or share publicly.
Rotating Keys
When you need to change your API key:Configuration
Default Setup
Manual Configuration
Edit~/.ccs/config.yaml:
Custom Base URL (Advanced)
For organizations using Anthropic Workbench or custom deployments:Available Models
Claude 4.6 Series (Latest)
| Model | Context | Use Case |
|---|---|---|
claude-opus-4-6 | 200K | Extended thinking, hardest problems |
claude-sonnet-4-6 | 200K | Balanced (latest generation) |
Claude 4.5 Series
| Model | Context | Use Case |
|---|---|---|
claude-opus-4-1-20250805 | 200K | Complex reasoning, system design |
claude-sonnet-4-5-20250929 | 200K | Balanced (default profile model) |
claude-3-5-haiku-20241022 | 100K | Fast responses, high volume |
Claude 3 Series (Previous)
| Model | Context | Use Case |
|---|---|---|
claude-3-opus-20240229 | 200K | Complex analysis |
claude-3-sonnet-20240229 | 200K | General purpose |
claude-3-haiku-20240307 | 100K | Fast tasks |
Usage Examples
Basic Chat
Model Selection
Temperature and Creativity
Response Length Control
API Features Supported
Full Feature Support
Direct Anthropic API access supports all Claude features:- ✅ Vision (image analysis)
- ✅ Extended thinking
- ✅ Tool use (function calling)
- ✅ Batch processing
- ✅ Long context (200K tokens)
- ✅ Token counting
- ✅ Streaming
How to Enable
Billing & Rate Limits
Usage Tracking
Check your API usage:Rate Limits
Default limits (can be increased):| Limit | Value | Applies To |
|---|---|---|
| Requests/minute | 600 | All models |
| Tokens/minute | Varies | Per model subscription |
| Concurrent requests | 10 | Streaming + non-streaming |
Enterprise users can request higher limits at Anthropic console.
Cost Estimation
Visit console.anthropic.com/pricing for current rates. Typical usage:- Claude 3.5 Sonnet: ~$3-10/month for light use
- Extended thinking: Additional cost based on thinking tokens
Comparison with CLIProxy Providers
| Feature | Direct API | CLIProxy Claude |
|---|---|---|
| Cost | Pay-per-use | Depends on CLIProxy setup |
| Setup | Single API key | OAuth browser login |
| Privacy | Your key, direct connection | Your key through CLIProxy |
| Rate limits | Anthropic’s limits | CLIProxy’s limits |
| Best for | Existing Anthropic users | Users with CLIProxy accounts |
Troubleshooting
Invalid API Key
Symptom:Error: 401 Unauthorized or Invalid authentication credentials
Solutions:
- Verify key starts with
sk-ant- - Check key hasn’t expired or been revoked
- Copy key again from console.anthropic.com/settings/keys
- Update with:
ccs api create --preset anthropic
Rate Limited
Symptom:Error: 429 Too Many Requests or Rate limit exceeded
Solutions:
- Wait a few minutes before retrying
- Reduce concurrent requests
- Use Haiku for high-volume tasks (cheaper, faster)
- Request higher limits at Anthropic console
Connection Timeout
Symptom:Error: Request timeout or ECONNREFUSED
Causes & Solutions:
- Network issue — Check internet connection
- API down — Check Anthropic status
- Firewall blocked — Check firewall/proxy settings
Insufficient Balance
Symptom:Error: Insufficient balance or Credit limit exceeded
Solutions:
- Check remaining balance at console.anthropic.com/dashboard
- Add payment method or credits
- Switch to lower-cost model (Haiku)
Cost Optimization
Use Right Model for Task
Limit Response Length
Batch Processing
For bulk operations, use Anthropic’s Batch API (available through direct API):Storage Locations
| Path | Description |
|---|---|
~/.ccs/config.yaml | Stores encrypted API key in profile |
~/.ccs/settings.json | Dashboard settings and preferences |
console.anthropic.com | API key management and usage tracking |
Security Best Practices
- Never commit API keys — Use
.gitignorefor config files - Rotate keys regularly — Generate new keys, revoke old ones
- Use environment variables — For CI/CD pipelines instead of files
- Monitor usage — Check console.anthropic.com regularly for suspicious activity
- Limit key scope — Create separate keys for different applications if possible
Next Steps
API Profiles
Learn more about creating and managing API profiles
Claude Accounts
Compare with OAuth-based Claude accounts
All Providers
Explore other available providers
Dashboard
Manage profiles via web interface
