Last Updated: February 2026 | The most comprehensive Claude Code pricing guide on the internet.
- What is Claude Code?
- Claude Code Pricing Plans
- Cost Per Task Breakdown
- How to Save 45% on Claude Code
- Setup Guide
- FAQ
Claude Code is Anthropic's agentic AI coding assistant. It runs in your terminal, VS Code, JetBrains, desktop app, and browser. It reads your codebase, edits files, runs commands, and generates pull requests.
| Plan | Monthly Cost | Model Access | Best For |
|---|---|---|---|
| Claude Pro | $20/mo | Sonnet 4 | Light usage |
| Claude Max 5x | $100/mo | Opus 4.6 (5x usage) | Regular developers |
| Claude Max 20x | $200/mo | Opus 4.6 (20x usage) | Heavy usage |
| API (Pay-as-you-go) | Variable | All models | Production / Teams |
| Model | Input (per 1M tokens) | Output (per 1M tokens) |
|---|---|---|
| Claude Opus 4.6 | $15.00 | $75.00 |
| Claude Sonnet 4 | $3.00 | $15.00 |
| Claude Haiku 3.5 | $0.80 | $4.00 |
Typical Claude Code tasks and their approximate costs (Opus 4.6):
| Task | ~Tokens Used | Official Cost | With Crazyrouter |
|---|---|---|---|
| Bug fix (simple) | 10K output | $0.75 | $0.41 |
| Feature implementation | 50K output | $3.75 | $2.06 |
| Full file refactor | 100K output | $7.50 | $4.13 |
| PR review + fixes | 30K output | $2.25 | $1.24 |
| Monthly (typical dev) | ~2M output | $150 | $82.50 |
Use an API aggregator like Crazyrouter to access Claude Code at 55% of official pricing:
| Model | Official Price | Crazyrouter Price | Savings |
|---|---|---|---|
| Claude Opus 4.6 | $15 / $75 | $8.25 / $41.25 | 45% |
| Claude Sonnet 4 | $3 / $15 | $1.65 / $8.25 | 45% |
| Claude Haiku 3.5 | $0.80 / $4 | $0.44 / $2.20 | 45% |
Annual savings for a typical developer: ~$810/year
# Set environment variables
export ANTHROPIC_BASE_URL=https://crazyrouter.com
export ANTHROPIC_API_KEY=sk-your-crazyrouter-key
# Start Claude Code as normal
claudeimport openai
client = openai.OpenAI(
base_url="https://crazyrouter.com/v1",
api_key="sk-your-crazyrouter-key"
)
response = client.chat.completions.create(
model="claude-opus-4-6",
messages=[{"role": "user", "content": "Refactor this function for better performance"}]
)CC-Switch supports Crazyrouter as a built-in provider. One-click switching between providers.
Subscription plans range from $20/mo (Pro) to $200/mo (Max 20x). API usage is pay-as-you-go starting from ~$0.80 per 1M input tokens.
Yes. Claude Code supports third-party providers. Set ANTHROPIC_BASE_URL to your provider's endpoint.
Yes. Same model, same quality, same responses. Crazyrouter routes to official Anthropic infrastructure at bulk pricing.
- Sign up at crazyrouter.com β get $2 free credit
- Set your environment variables
- Use Claude Code as normal
π Links: