Reallocating $100/Month Claude Code Spend to Zed and OpenRouter
TL;DR Highlight
Swapping a $100 Claude plan for Zed plus OpenRouter credits to dodge usage limits
Who Should Read
A developer who keeps hitting Claude Code usage limits and wants to spread work across other models and agent tools
Core Mechanics
- Zed $10 plus OpenRouter $90
- Instead of a $100/month Claude plan, pay $10 for Zed and top up $90 monthly on OpenRouter.
- Unused credits accumulate and roll over.
- Limits were the trigger
- The author uses Claude Code and the desktop app for work on a $100 plan.
- Usage is bursty, so hitting a limit mid-session was frustrating.
- Claude Code can run on OpenRouter
- Point ANTHROPIC_BASE_URL at https://openrouter.ai/api.
- Keep ANTHROPIC_API_KEY explicitly empty and set model env vars.
- OpenRouter beat Zed's own billing
- Zed's own token prices are higher than going to the API directly.
- Zed's native integration caps Gemini 3.1 at 200k context, while OpenRouter allows 1M.
- OpenRouter fee and privacy settings
- An edit notes OpenRouter charges a 5.5% fee.
- The author opted out of data training and enabled ZDR Endpoints Only, which excludes some models.
- The author's final split
- Keeps Zed at $10 and Cursor at $20, and puts the other $70 into OpenRouter credits monthly.
- OpenCode is the CLI tool used most.
Community Reactions
- Max plan is far cheaper, some argue
- Commenters report getting $1K+ or about $600/month of usage (per ccusage) from a $100 Max plan.
- The view is that API billing can't match that quality and volume.
- OpenRouter was 2-3x pricier in one experience
- One commenter tried Sonnet, Gemini, and GPT via OpenRouter and found it 2-3x more expensive than the subscription.
- They suspect the subscription is subsidized.
- OpenCode with alternative models worked
- One commenter ran OpenCode with GLM 5.1 on OpenRouter, and it picked up CLAUDE.md and skills with performance similar to Opus 4.6.
- Another found Kimi K2 weaker than Sonnet but fine for basic web apps.
- Mixed views on Zed itself
- One opinion says Zed's memory use with the TS language server is high and DX is about 85% of VSCode.
- Another asked how to handle per-folder settings in a monorepo.
- Credit expiry and banking concerns
- One commenter says their credits haven't been deleted since early on, so 365 days may not be strict.
- Another says a UK bank refused to do business with OpenRouter.
How to Apply
- Connect Claude Code to OpenRouter
- Top up about $20 on OpenRouter and create an API key.
- Run /logout in claude, add the env vars to ~/.zshrc, and confirm with /status.
- Assign models by task difficulty
- Set the OPUS, SONNET, HAIKU, and SUBAGENT env vars per task type.
- Switch simple tasks to cheaper models and compare costs.
- Turn on OpenRouter privacy settings
- Disable consent for input/output training use.
- Enable ZDR Endpoints Only in Workspace Guardrail and check which models disappear.
- Compare a month of spend with your plan
- Log your OpenRouter usage for one month.
- Include the 5.5% fee and compare to your current subscription before deciding.
Try It
# Paste into your terminal (~/.zshrc) — connect Claude Code to OpenRouter (settings from the article)
export OPENROUTER_API_KEY="{{your OpenRouter API key}}"
export ANTHROPIC_BASE_URL="https://openrouter.ai/api"
export ANTHROPIC_AUTH_TOKEN="$OPENROUTER_API_KEY"
export ANTHROPIC_API_KEY="" # must be empty
export ANTHROPIC_DEFAULT_OPUS_MODEL="anthropic/claude-opus-4.6"
export ANTHROPIC_DEFAULT_SONNET_MODEL="anthropic/claude-sonnet-4.6"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="anthropic/claude-haiku-4.5"
export CLAUDE_CODE_SUBAGENT_MODEL="anthropic/claude-opus-4.6"
# Then: source ~/.zshrc; run claude, /logout, and check with /statusTerminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls