Since Cursor Premium restricts other models and only Composer / Grok are reliably available, I’ve been trying to use Gemini via BYOK.
The agent starts normally, but almost every time it gets stuck on “Planning next moves” halfway through the task and never finishes. It just hangs there indefinitely.
Each failed attempt still burns roughly $5 on the Gemini API side with zero usable output. After several tries it becomes pretty expensive for nothing.
Has anyone else run into this with Gemini BYOK recently? Any known workaround or fix?
Steps to Reproduce
Open Cursor (Premium plan).
Go to settings and configure Gemini via BYOK (add your own API key).
Start a new Agent chat and select the Gemini model.
Give it a normal coding task (e.g. implement a feature, refactor something, or fix a bug).
Wait for the agent to start working.
Observe that it eventually gets stuck on “Planning next moves” and never continues or finishes.
Expected Behavior
It hangs on “Planning next moves” mid-task. The request still consumes Gemini API credits (~$5 per attempt) but returns no usable output.
What you’re describing matches what we can see on our side (and what has been reported). Partway through a longer agent turn, Gemini 4 Argon starts its reply, sends a little, and then stops sending anything. Cursor waits about 3 minutes for more output, then retries the same request, and that retry can also sit for several minutes without a response. The chat shows “Planning next moves” the whole time. Each attempt sends the full conversation to Google, so it can still be billed to your key even though nothing usable comes back. The team is aware of this behavior with Gemini 4 Argon.
In the meantime, a few things should help:
Ask the agent to make large file writes or edits in smaller pieces (for example “write this file in several smaller edits”). These stalls seem to happen most often when the model tries to produce one very large output in a single step.
Start a new chat for each new task. Every step resends the whole conversation, so long chats make each step and each retry more expensive.
If it sits on “Planning next moves” for more than a minute or two, stop the run instead of waiting, since the automatic retry sends the full context again.
On the plan question: Premium isn’t limited to Composer and Grok. The included weekly usage covers Cursor’s own models like Grok, and third-party models such as Gemini are still available, billed at API list price from prepaid credit (pricing details). Using your own Google key is also supported on Premium, and those requests are billed by Google directly without touching your included usage (how API keys work). Switching to Gemini through Cursor instead of your key wouldn’t avoid this particular stall, though.