Capped Context Length for Custom Models

Hi, previously context window was 1M which was no problem. Now it’s capped at 200K which is unusable for a lot of my project. Please restore or add param to the model to tell cursor the contact length.
here is using with 9router

what models are you using?

I’m using 9router with my local models + openrouter. here is an example in 9router. even when using 6.1-sol it still says 200K.

Hey, thanks for the report. If Cursor doesn’t recognize the name of a custom model, like with 9router, it can’t detect the real context window from the endpoint. So it falls back to a fixed budget: 200K when Max Mode is off, and 1M when it’s on. That means if it changed from 1M to 200K, Max Mode most likely got turned off.

What you can try:

  1. If you see a MAX toggle in the model picker, turn off Auto, turn on MAX, select your model from 9router, and start a new chat. Context Usage should show 1M.
  2. If there’s no MAX toggle, which was removed for usage-based pricing and replaced with a Context setting for built-in models, select a built-in model, set it to the highest context, then switch back to your custom model and open a new chat. This used to increase the budget for custom endpoints: Does Max Mode work for custom API / OpenAI-compatible endpoint models? What decides their context window? Let me know if that works for you.

Right now, there’s no separate setting for context window size for custom models. This is a known limitation, and there’s no ETA yet. I’ve passed your request for this setting to the team.

One more thing: summarization is based on the budget Cursor sets. If the real context window of the model behind 9router is smaller than 1M, you might get a provider error before Cursor starts compressing the context.

Let me know if you see the MAX toggle in the picker and what Cursor version you’re on. That’ll help clarify which case applies to you.

Thanks for the heads up, this morning the Max button is gone and the ctx window is back to 1M. so all is good! will keep your advice in mind if anything changes back.
Cheers! really quick respond!