# User Provided Rate Limit Exceeded in Agent Mode

**URL:** <https://forum.cursor.com/t/user-provided-rate-limit-exceeded-in-agent-mode/36717>\
**Category:** Feature Requests\
**Created:** [December 22, 2024, 1:15pm UTC](https://forum.cursor.com/t/user-provided-rate-limit-exceeded-in-agent-mode/36717 "2024-12-22T13:15:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![level09](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/level09/32/16984_2.png) [@level09](https://forum.cursor.com/u/level09)\
**Post date:** [December 22, 2024, 1:15pm UTC](https://forum.cursor.com/t/user-provided-rate-limit-exceeded-in-agent-mode/36717/1 "2024-12-22T13:15:52Z")

</div>

![image](https://us1.discourse-cdn.com/cursor1/original/3X/c/4/c4e93017afe0ae1d165f8a4fbb38a936bd3cefe7.png)

This is not related to the API key or account running out of funds. but rather due to the agent invoking a very high number of requests within a very short period of time.

It can be resolved by introducing a delay between requests. it would be nice to have this configuration option in cursor settings.

Slower but complete execution is better than having work interrupted mid-way then asking the agent to pick up from where he stopped.

Edit: I think this issue happens specifically when using own Anthropic api key. I tested using Cursor API key and the issue is not happening so far.

---

<div class="post-metadata">

**Author:** ![pm78](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/pm78/32/19636_2.png) [@pm78](https://forum.cursor.com/u/pm78)\
**Post date:** [January 11, 2025, 5:57pm UTC](https://forum.cursor.com/t/user-provided-rate-limit-exceeded-in-agent-mode/36717/2 "2025-01-11T17:57:42Z")

</div>

I have exactly the same issue, and I confirm that it is really annoying.

I don’t have the issue with gpt-4o… but gpt-4o is far less efficient as an agent.

---

<div class="post-metadata">

**Author:** ![level09](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/level09/32/16984_2.png) [@level09](https://forum.cursor.com/u/level09)\
**Post date:** [January 11, 2025, 8:40pm UTC](https://forum.cursor.com/t/user-provided-rate-limit-exceeded-in-agent-mode/36717/3 "2025-01-11T20:40:40Z")

</div>

The current solution I found is to switch off using own Anthropic API and switch to using Cursor provided key. then purchase credit from them directly. I believe they have higher rate limits so I don’t see the issue anymore.

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [January 15, 2025, 7:21pm UTC](https://forum.cursor.com/t/user-provided-rate-limit-exceeded-in-agent-mode/36717/4 "2025-01-15T19:21:25Z")

</div>

@level09 is correct, when using the API directly, your rate limits are much lower than Cursor’s own - we don’t enforce any limits on your ourselves.

You can now enable usage pricing in your Cursor dashboard, where you are charged $0.40 per Claude 3.5 request - this means you aren’t forced to buy a batch of 500, but can use only what you pay for above the base 500 requests!

---

<div class="post-metadata">

**Author:** ![akashvekariya.posha](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@akashvekariya.posha](https://forum.cursor.com/u/akashvekariya.posha)\
**Post date:** [March 5, 2025, 3:52am UTC](https://forum.cursor.com/t/user-provided-rate-limit-exceeded-in-agent-mode/36717/5 "2025-03-05T03:52:25Z")

</div>

I think the exact issue lies from anthropic’s side.  
They have rate limit of 40000 input tokens per minute and agentic flows have higher context with multiple requests.

 ![Screenshot 2025-03-05 at 9.19.10 AM](https://us1.discourse-cdn.com/cursor1/original/3X/5/f/5ff2684a54db26ab002fa2f4d842726e4ace6e7d.png)  
 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/3/d/3dc176eb8b1b9bc52b74021b217e6ec718f20b84.png)

Now I am using my org’s account so I am not sure if these limits can be changed

---

<div class="post-metadata">

**Author:** ![ianmarr](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ianmarr/32/39249_2.png) [@ianmarr](https://forum.cursor.com/u/ianmarr)\
**Post date:** [July 7, 2025, 10:31am UTC](https://forum.cursor.com/t/user-provided-rate-limit-exceeded-in-agent-mode/36717/6 "2025-07-07T10:31:24Z")

</div>

@danperks Sorry to “re-open” this topic, and I realise that a lot of water has passed under this “rate limit” bridge, not least the changes to your pricing model. But was this a valid “solution” to @level09’s proposal, and is it still a solution?

There are other reasons for us to use our Model API keys, not least requirements for centralised monitoring and billing for aggregate model use and spend across different services using different APIs.

For example, I don’t want to hide my use of Anthropic Claude Models within Cursor; I want all my use of Anthropic Models to be visible in the Anthropic Console and on my Anthropic Bills.

---

<div class="post-metadata">

**Author:** ![flipper88](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/flipper88/32/70644_2.png) [@flipper88](https://forum.cursor.com/u/flipper88)\
**Post date:** [July 14, 2025, 9:05pm UTC](https://forum.cursor.com/t/user-provided-rate-limit-exceeded-in-agent-mode/36717/7 "2025-07-14T21:05:26Z")

</div>

I’m constantly getting hit with “User API Key Rate limit exceeded” when using my Anthropic API key. Looking at the Anthropic console, the Input Tokens Per Minute (ITPM) is 20,000 for Claude Sonnet 4. Looking at the usage for my API token over the last 2 days, I have ~5.6 million tokens in and 36 thousand tokens out. I cannot type very quickly, so it seems that Cursor is sending a great deal of context to Anthropic and this is rapidly exceeding the ITPM. The most (seemingly) trivial request in Cursor triggers the rate limit. It’s pretty much useless.

The simplest explanation seems to be that from danperks: Cursor’s own API key(s) have much higher rate limits.

It would seem that the best solution for those that have other uses for Anthropic models is to purchase a separate API key for external use and use Cursor’s own key(s) for coding. Either that or find ways to acquire an API key with sufficiently high rate limits or drastically reduce the context sent with requests. I found that simply requesting a file conversion at the Claude 4 Sonnet prompt would quickly hit the rate limit but if the file was explicitly added to the context before issuing the command then the rate limit was not hit. YMMV.
