Local agent mode

How do I work in an isolated environment without internet access?
I’ve set up the following models locally:

  • DeepSeek-V3-0324-AWQ
  • Gemma-3-27b-it
  • QwQ-32B
  • Qwen3-32B

I only allowed access for https://www.cursor.com/ to log in.

I configured OpenAPI—added the OpenAPI key and specified the OpenAPI base URL. The models are connected, showing green status without any errors.

However, when I try to use any model, I get the error:
“Connection failed. If the problem persists, please check your internet connection or VPN.”

The same settings work in Continue VSCode, but the agent-mode doesn’t function.

How can I configure this, and is it even possible?
Are there specific models that are suitable for local use without internet access? Or can Cursor not work offline at all?

Hey, unfortunately, Cursor cannot work when totally offline.

When you make a request, it is first sent from your local machine to Cursor’s servers, where the final prompt is sent to the AI.

There is currently no way to bypass this step, so while you could host a local model and expose it publicly, using that as your OpenAI URL override value, you can’t cut out Cursor’s servers entirely, as this is where a lot of the pre-processing happens to give Cursor its intelligence!