← All fixes
429OpenCode / upstream· Rate limits

OpenCode rate limited / usage limits — which provider is stopping you & the flat-rate fix (2026)

OpenCode: rate limit exceeded / 429 from provider
Quick answer

OpenCode itself doesn't rate limit — it's BYO-provider, so the 429 comes from whichever backend you configured: Anthropic/OpenAI per-minute caps, OpenCode Go's usage windows ($12/5-hour and $30/week), or OpenRouter's allowances. First identify which provider threw it; the fix is provider-specific, and the structural fix is a backend without per-minute caps or usage windows.

What causes it

How to fix it

  1. Identify the source first: check which provider is configured for the active model in opencode.json — the 429 belongs to that provider, not OpenCode.
  2. Anthropic/OpenAI keys: add backoff, cut parallel tool calls, and move up a usage tier for higher RPM/TPM.
  3. OpenCode Go: wait for the 5-hour or weekly window to roll, or shift the overflow work to a different configured provider.
  4. OpenRouter: switch off :free model variants, top up credits (allowance scales with balance), or enable provider fallbacks.
  5. Configure a fallback model/provider in OpenCode so a throttled backend doesn't stall the whole session.
  6. For daily agent use, point OpenCode at a flat-rate OpenAI-compatible endpoint with no per-minute caps or usage windows.
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.

The permanent fix

Stop hitting this entirely

OpenCode takes any OpenAI-compatible provider: set the base URL to https://api.stdcmpt.com/v1 with model "standardcompute" and there's no per-minute cap and no 5-hour or weekly window — under sustained load requests are paced smoothly instead of returning 429s, at one flat monthly price. Guide: /integrations/opencode.

Get a free API key →How it connects →

FAQ

Does OpenCode have its own rate limits?

No. 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 meters usage in rolling windows — roughly $12 of model usage 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. Flat-rate OpenAI-compatible endpoints pace sustained load instead of rejecting it, so the 429 class disappears.

Related errors

Can you use a Claude Pro/Max subscription with OpenCode? Login, limits & alternatives (2026)OpenCode / AnthropicWhy your AI agent keeps getting rate limited (and how to stop it)Any agent429 Too Many Requests — what it means & how to fixAny provider · 429OpenRouter 429 “rate limited” — causes, fixes and the structural way outOpenRouter · 429