Where does the bug appear (feature/product)?
Cursor SDK
Describe the Bug
Runs that have already done minutes of work fail with resource_exhausted, and the error doesn’t say which limit was hit:
- Local SDK run, 2026-10-05:
claude-opus-5-5(effort=xhigh) started at 03:59:38 UTC and failed at 04:13:38 UTC with[resource_exhausted] Error. No other run from this machine was active. Request455f7421-d101-4dff-9d66-91603763e30e. - Starting many agents at once, 2026-10-05, 10:51 to 10:52 UTC: several processes were starting agents on the same key, and in one of them
Agent.createfailed 21 times withRateLimitError: You have exceeded the rate limit of 30 requests per minute for the get_models endpoint. The SDK caches the model list per process, so this only bites with several processes, but they share the key’s limit.
Steps to Reproduce
- On one API key, run several long agentic tasks (10+ minutes each) on
claude-opus-5-5at once. - Some fail mid-turn with
resource_exhausted. - Start more than 30 agents within a minute across several processes on the same key:
Agent.createfails with theget_modelslimit.
Expected Behavior
- The per-key or per-team limits (concurrent runs, tokens per minute, the models list) are documented. Cursor APIs Overview | Cursor Docs only gives a general 20 requests a minute.
- When capacity runs out, a run is refused at the start with a retryable error and
Retry-After, not ended after 14 minutes of work. RunError.codesays which limit was hit.
Operating System
Linux
Version Information
@cursor/sdk 1.0.31, bundled in T3 Code nightly 0.0.46-nightly.20261004.2648.
For AI issues: which model did you use?
claude-opus-5-5 (effort=xhigh)
For AI issues: add Request ID with privacy disabled
Privacy mode was on for these requests. Mid-run resource_exhausted: 455f7421-d101-4dff-9d66-91603763e30e. get_models limit: a0090e71-2701-4f04-8b32-6c73a03542ec, 1dca439b-ea57-4cf2-b44f-39d1818e300d, 87ec2e15-6cb5-4965-8ded-4f62e9537a56.
Additional Information
How to Scale Cursor API Usage? says limits are per API key and can be raised by contacting Cursor. We’d like to know which limit a mid-run resource_exhausted is before asking for more or capping our own concurrency.
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor