On this page
When Claude Code says “usage limit reached”, you’ve used your plan’s five-hour or weekly allowance. You can wait for the reset, turn on usage credits billed at API rates, or keep coding on an open model: DeepSeek’s Anthropic-compatible API runs Claude Code for $0.30 / $1.20 per million tokens (setup steps). For your other OpenAI-compatible tools, Off Grid AI Boost is a flat plan from $4.99.
Why you hit the limit
Anthropic’s Claude Code help article says “Pro and Max plans have a five-hour session limit and a weekly limit.” Hit one mid-task and Claude Code may let the current step finish, showing “Usage limit reached · wrapping up”, then stop. Your use in Claude chat and in Claude Code counts toward the same limits (usage credits).
Run /status in Claude Code to see how much of your allowance is left.
Your options
| Option | What it costs | Best for |
|---|---|---|
| Wait for the reset | Nothing | A five-hour limit that resets soon |
| Turn on usage credits | Standard API rates, with a monthly cap you set | Staying on Claude for a deadline |
| Upgrade your plan | Pro $20 a month ($17 billed yearly), Max $100, Ultra $200 | Hitting the weekly limit every week |
| DeepSeek’s Anthropic-compatible API | $0.30 in, $1.20 out per million tokens at peak, half off-peak | Keeping work moving on an open model |
| Off Grid AI Boost, in OpenAI-compatible tools | Flat plan, usage worth 2x the price, from $4.99 a month | A fixed bill for your other coding tools, from January |
Usage credits are the smallest change. Go to Settings > Usage, turn on Usage credits, add a payment method and set a monthly spending cap. They cover Claude Code in the terminal as well as chat, and they don’t change when your limits reset (help article).
Upgrading buys more room on the same models. Max gives 5x Pro’s usage and Ultra 10x Pro’s weekly usage (pricing). If you hit the wall every week, this is the simplest fix.
An API key is the third route Anthropic lists: sign in with a Claude Console account and buy API credits. If ANTHROPIC_API_KEY is set, Claude Code uses it “instead of your Claude subscription” (help article), so you pay per token.
Keep coding on DeepSeek in Claude Code
DeepSeek runs an Anthropic-compatible endpoint and publishes a Claude Code setup. Claude Code keeps working the way you know it, with DeepSeek V4.1 Flash doing the thinking.
- Get a DeepSeek API key from the DeepSeek platform and add a little credit.
-
Set these variables in the terminal you’ll run Claude Code from (macOS, Linux):
export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic export ANTHROPIC_AUTH_TOKEN=<your DeepSeek API key> export ANTHROPIC_MODEL="deepseek-flash[1m]" export ANTHROPIC_DEFAULT_OPUS_MODEL="deepseek-flash[1m]" export ANTHROPIC_DEFAULT_SONNET_MODEL="deepseek-flash[1m]" export ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-flash export CLAUDE_CODE_SUBAGENT_MODEL=deepseek-flashDeepSeek’s page also lists a PowerShell version and two optional tuning variables.
- Start Claude Code in your project with
claude. - Go back to Claude when your limit resets: close that terminal, or
unsetthe variables, and runclaudeagain.
DeepSeek’s deepseek-flash model is DeepSeek-V4.1-Flash-1017, with a 1M-token context. Claude Opus model names map to deepseek-v4-pro (Anthropic API guide).
Before you send a client’s code, read where the DeepSeek API stores your data. DeepSeek’s privacy policy says it stores data in China.
What about OpenRouter? Its Claude Code guide says the setup is only guaranteed to work with Anthropic as the provider, so it’s a way to pay for Claude, not a tested route to open models.
What an afternoon on DeepSeek costs
Say you code for an afternoon after the limit: 20M input tokens, 80% of them repeated context that hits DeepSeek’s cache, and 1M output tokens, at peak prices (pricing).
- Cached input: 16 × $0.006 = $0.10
- Fresh input: 4 × $0.30 = $1.20
- Output: 1 × $1.20 = $1.20
- Total: about $2.50. Off-peak, it’s half: about $1.25.
Peak is 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays. Weekends are off-peak all day.
Symptom, check, fix
| Symptom | Check | Fix |
|---|---|---|
| “Usage limit reached · wrapping up” mid-task | /status |
Let the step finish, then wait, add usage credits, or switch to DeepSeek |
| Blocked again within hours, every day | You’re hitting the five-hour limit | Do long refactors on the backup model and keep Claude for hard calls |
| Blocked for days | You’ve used the weekly limit | Turn on usage credits or upgrade the plan |
| You’re billed per token but expected your plan | ANTHROPIC_API_KEY is set in your shell |
Unset it so Claude Code uses your subscription |
| Claude Code on DeepSeek returns auth errors | ANTHROPIC_AUTH_TOKEN is empty or the old key |
Re-export it in the same terminal, then restart claude |
| Still on DeepSeek after the reset | Variables saved in your shell profile | Remove them from the profile and open a new terminal |
A flat bill for the rest of your tools
Claude Code is one tool. Many coding tools also accept an OpenAI-compatible base URL, and that’s where Off Grid AI Boost fits. It hosts open models behind one OpenAI-compatible key, so you change one URL. The page names Qwen 3.8 and DeepSeek V4.1 Flash, and more.
- First cohort, half price for as long as you stay: Starter $4.99, Pro $9.99, Max $49.99 a month (regular $9.99, $19.99, $99.99).
- Each plan includes usage worth its full regular price every month, counted at each model’s token rate. Top up any time.
- We don’t keep your prompts or train on them.
- It’s a pre-order. You pay now, your API key arrives by email in January 2027, and your plan starts that day. Miss January and you get all your money back.
For today, DeepSeek’s endpoint is the backup that works in Claude Code right now. To see where your API money goes across hosts, read how to cut your LLM API bill, compare fixed-price plans in flat-rate APIs for open models, or see every price on the open-model API prices page.
Open models also run in the free Off Grid AI apps on your own computer, with nothing sent anywhere.
FAQ
Why does Claude Code say usage limit reached? Claude Pro and Max plans have a five-hour session limit and a weekly limit. When you hit one, Claude Code may finish the step it’s on, shown as “Usage limit reached · wrapping up”, then stops until the limit resets or you add usage credits.
How do I keep using Claude Code after hitting the limit? Three ways from Anthropic: wait for the reset, turn on usage credits (billed at standard API rates), or sign in with a Claude Console account and pay for API credits. A fourth is to point Claude Code at another Anthropic-compatible endpoint, such as DeepSeek’s.
Can Claude Code run on DeepSeek?
Yes. DeepSeek publishes an Anthropic-compatible endpoint at https://api.deepseek.com/anthropic and a Claude Code setup: set ANTHROPIC_BASE_URL to it, ANTHROPIC_AUTH_TOKEN to your DeepSeek key, and the model variables to deepseek-flash. Unset them to go back to Claude.
How much does DeepSeek cost as a Claude Code backup? DeepSeek V4.1 Flash is $0.30 per million input tokens and $1.20 per million output at peak, half that off-peak, and $0.006 per million on cache hits. An afternoon of 20M input and 1M output tokens with 80% cache hits costs about $2.50 at peak.
Does Off Grid AI Boost work with Claude Code? Boost is an OpenAI-compatible API, so it fits coding tools that take an OpenAI base URL. Claude Code talks to Anthropic-format endpoints, so use DeepSeek’s endpoint there. Boost is a pre-order, with API keys in January 2027.