Two separate problems get confused here: burning tokens faster than you need to, and genuinely needing more capacity than your plan allows. The first is free to fix and worth doing first, because it also makes the agent work better. Start there.
Most agent sessions spend the majority of their tokens on context the model did not need. Fixing that is not a compromise; a focused context usually produces better code than a bloated one.
In rough order of tokens saved per minute of effort:
The remedies are completely different, so it is worth thirty seconds to identify which one it was.
| What you saw | Which limit | What helps |
|---|---|---|
| Blocked for a period, then it works again | A rolling window quota on your plan | Reduce consumption as above, or add a second endpoint for overflow work. |
429 immediately, clears in seconds | A short-term rate limit, not a quota | Slow the request rate or reduce concurrency. Adding capacity elsewhere does not help here. |
| Hard stop until a reset date | A billing-period cap | Reduce consumption, upgrade, or use a separate endpoint for the rest of the period. |
| Only large requests fail | A per-request context limit | Send less context per call. This is not a quota problem at all. |
If you are not sure which you hit, note whether waiting a few seconds clears it. Seconds means rate limit; hours or a date means quota.
If you have done the steps above and still run out mid-task on most days, you have a real capacity problem rather than a hygiene problem. At that point the options are: upgrade your existing plan, or configure a second OpenAI-compatible endpoint and point the agent at it when the primary is exhausted.
A second endpoint is the more flexible option because most coding agents let you switch base URL and model without changing anything else about your workflow. It also means a quota block stops being a full stop.
Once you have cut consumption and still run out of capacity mid-task, a second endpoint is the fix — and it should be one whose cost you can calculate in advance. AgentRouter publishes per-token pricing: claude-opus-5 is listed at $2.000 per 1M prompt tokens and $10.000 per 1M completion tokens on the default group, pay-as-you-go, so no subscription window can lock you out again. It is OpenAI-compatible, which means switching over is a base URL and a model id — keep it configured as a one-line fallback and test it before you are locked out.
Check the pricing yourself →Referral link — we may earn a reward if you sign up, at no extra cost to you. This is the same advice we would give with no link at all. Check their current pricing and model list on their own site; we deliberately do not restate numbers that change.
Being straight with you about the order: if you are hitting limits because a 60-turn session keeps resending its own history, a second endpoint just means you pay twice for the same waste. The consumption steps at the top of this page are the ones that compound, and they are free. Do those first, then decide whether you still have a capacity problem.
The Setup Doctor walks through your tool, symptom, and setup and points at the likely cause — no account needed.