# Max tokens cap cli option

**URL:** <https://forum.cursor.com/t/max-tokens-cap-cli-option/155706>\
**Category:** Feature Requests\
**Tags:** cli\
**Created:** [March 24, 2026, 3:07am UTC](https://forum.cursor.com/t/max-tokens-cap-cli-option/155706 "2026-03-24T03:07:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahmoud\_Elbana](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@Mahmoud\_Elbana](https://forum.cursor.com/u/Mahmoud_Elbana)\
**Post date:** [March 24, 2026, 3:07am UTC](https://forum.cursor.com/t/max-tokens-cap-cli-option/155706/1 "2026-03-24T03:07:05Z")

</div>

### Feature request for product/service

Cursor CLI

### Describe the request

Can we have a feature where we can cap the max number of different tokens usage (output, cache read..).  
This is useful for automated workflows, so I don’t have to worry about the agent going crazy and consuming a lot of tokens where I don’t except it to do.

As a workaround for now, I process the streamed output using a wrapper and abort the request after exceeding a max length of characters.

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [March 25, 2026, 1:21am UTC](https://forum.cursor.com/t/max-tokens-cap-cli-option/155706/4 "2026-03-25T01:21:57Z")

</div>

Hi Mahmoud,

Thanks for the suggestion.

You’re probably already aware of these two features, but right now, the two closest options to this are carefully setting your on-demand usage limits, and keeping a close look at your usage on [https://cursor.com/dashboard/usage](https://cursor.com/dashboard/usage), which shows both your included usage as well as your on-demand API usage.

Another helpful tip is to configure Cursor to always show your usage limits, which you can enable in Cursor settings → Agents → Usage Summary and changing it from the Default Auto to Always.

I know it’s not exactly what you’re looking for, but hopefully this can help you keep track of your usage more closely.

Best,

Kevin
