OpenCode Rate Limited? Fix “Free Usage Limit Reached” (429)
Free usage limit reached. Connect a provider or subscribe to OpenCode Go to keep going, or switch models.
For companies: one company account, with a key and a fixed monthly budget for every person and app. Create a company workspace → or talk to us
“Free usage limit reached” means you used up the allowance on the free models OpenCode serves itself: the response is HTTP 429 with error type FreeUsageLimitError. Connect your own provider, subscribe to OpenCode Go, or switch models. Any other 429 comes from whichever backend you configured: Anthropic/OpenAI per-minute caps, OpenCode Go's per-model usage windows (20% of a model's monthly limit per 5 hours, 50% per week), or OpenRouter's allowances. First identify which provider threw it; the fix is provider-specific, and the structural fix is a backend with no 5-hour or weekly usage windows and a per-minute ceiling well above your agent's burst rate.
“Free usage limit reached” or FreeUsageLimitError in OpenCode: what it means
OpenCode's free models have a usage limit, and you reached it. OpenCode shows: “Free usage limit reached. Connect a provider or subscribe to OpenCode Go to keep going, or switch models.” Behind it is an HTTP 429 response whose error type is FreeUsageLimitError, with the message “Rate limit exceeded. Please try again later.”
- Wait and try again later, as the 429 message says.
- Connect a provider: any OpenAI-compatible endpoint works, including a router that sends each step to the cheapest capable model.
- Subscribe to OpenCode Go ($10 a month): per-model allowances with 5-hour and weekly windows.
I'm getting rate limited on OpenCode, why?
Unless it is the free-model limit above, because the model provider behind OpenCode hit a limit. On OpenCode Go it is usually one model's allowance: at most 20% of its monthly dollar limit per 5 hours and 50% per week. On your own API key it is the provider's per-minute 429, and on OpenCode Zen an empty balance or a budget you set stops requests.
- OpenCode Go ($10 a month, Go Plus $40): each model has its own allowance, so a $15 model such as Kimi K3 or GLM-5.3 on Go allows about $3 per 5 hours. Switch to another model or wait for the window to roll.
- Your own Anthropic, OpenAI or DeepSeek key: requests or tokens per minute for your usage tier. OpenCode's agent loop fires many calls per prompt, so it reaches the cap faster than a chat app.
- OpenCode Zen: requests fail with HTTP 402 when the prepaid balance is empty and auto-reload is off, or when a workspace budget is reached.
- OpenRouter: daily caps on :free models, or the upstream provider throttling and OpenRouter passing it on.
What causes it
- OpenCode's free models: the free usage limit is reached, so OpenCode returns HTTP 429 FreeUsageLimitError and shows “Free usage limit reached”.
- Anthropic or OpenAI API keys: per-minute request/token limits (RPM/TPM) sized for chat, tripped by OpenCode's agent loop firing many calls per task.
- OpenCode Go plan: a model's usage window (20% of its monthly dollar limit per 5 hours, 50% per week) is exhausted, so requests to that model are refused until the window rolls.
- OpenRouter: free-model daily caps, account rate allowance (scales with credit balance), or the upstream provider throttling and OpenRouter relaying it.
- Anthropic subscription auth (Claude Pro/Max): the plan's 5-hour session window or weekly cap is spent. Anthropic supports the plan login only in Claude Code and its own apps, so this route can stop working without notice.
- Retries after a 429 amplifying the burst and keeping you over the limit.
How to fix it
- Identify the source first: check which provider is configured for the active model in opencode.json. The 429 belongs to that provider, not OpenCode.
- Anthropic/OpenAI keys: add backoff, cut parallel tool calls, and move up a usage tier for higher RPM/TPM.
- OpenCode Go: wait for the 5-hour or weekly window to roll, or shift the overflow work to a different configured provider.
- OpenRouter: switch off :free model variants, top up credits (allowance scales with balance), or enable provider fallbacks.
- Configure a fallback model/provider in OpenCode so a throttled backend doesn't stall the whole session.
- For daily agent use, point OpenCode at a flat-rate OpenAI-compatible endpoint with no usage windows and a high per-key request ceiling.
Running an agent? OpenCode's agent loop makes many provider calls per prompt: plan steps, tool results, edits. Limits sized for a human typing get consumed several times faster, which is why the same key that works fine in a chat UI 429s inside OpenCode.
Sources: OpenCode Go docs (usage limits); OpenCode Console billing; OpenCode source: free usage limit message
Compare APIs for OpenCode
Compare OpenCode Go with a routed plan →
Paying for OpenCode Go and hitting its limits?
Best API for OpenCode →
7 options compared, with prices and limits.
Keep working on a fixed monthly plan
OpenCode takes any OpenAI-compatible provider: set the base URL to https://api.stdcmpt.com/v1 with model "standardcompute" and there's no 5-hour or weekly window and only a high anti-abuse request-rate ceiling, at one flat monthly price with a fixed compute budget.
Base URL https://api.stdcmpt.com/v1
API key YOUR_API_KEY
Model standardcomputePlans from $19 a month with $19 of compute. Eligible new accounts can try $0.25 of compute first, no card. Trial terms
FAQ
Does OpenCode have its own rate limits?
Only on the free models it serves itself, which stop with “Free usage limit reached” (FreeUsageLimitError). Otherwise OpenCode is bring-your-own-provider; every rate limit or usage window belongs to the configured backend (Anthropic, OpenAI, OpenCode Go, OpenRouter…). The same key hits the same limits in any tool; agents just get there faster.
What are OpenCode Go's limits?
OpenCode Go ($10 a month, Go Plus $40) gives each model a monthly dollar limit (on Go, $15 of GLM-5.3 or Kimi K3, $60 of MiniMax M3, $80 of DeepSeek V4.1 Flash), and allows 20% of it per 5 hours and 50% per week: a $60 model caps at $12 per 5 hours and $30 per week. Great value inside the windows; heavy all-day agent use exhausts them, and then you wait for the roll or route work to another provider.
What's the permanent fix for OpenCode 429s?
Either size your provider tier well above your agent's burst rate, or use a backend with no per-minute economics. A flat-rate endpoint with a high request-rate ceiling and failover across providers makes 429s rare.
GPT-5.6 rate limits stop my OpenCode sessions by early afternoon. What flat-rate options are there?
Standard Compute puts GPT-5.6 Sol, Terra and Luna, Claude, GLM and DeepSeek on one key that OpenCode lists as a provider. Limits are per key and per minute (300 to 2,000 requests a minute by plan), with no 5-hour or weekly window, and the price is fixed at $19 to $249 a month (USD) for a matching compute budget. At 100% of the budget new requests get HTTP 402 and nothing more is billed. OpenCode Go ($10 a month) costs less but covers a curated set of open-weight models with 5-hour and weekly windows.
Related errors
For companies: one company account, with a key and a fixed monthly budget for every person and app. Create a company workspace → or talk to us