DEV Community

Discussion on: Use Cursor with Local LLM and LM Studio

Collapse
 
0xkoji profile image
0xkoji

Hi Mark, sorry for the slow response.

The reason I suggested using ngrok in my article is that Cursor does not currently allow users to communicate directly with local LLMs.

Given your client’s strict requirements, I believe using Cursor for this specific task will be very difficult. To answer your question: No, the combination of Cursor + ngrok + LM Studio does not preserve the same level of privacy as a purely offline environment.

While ngrok generates random URLs—making the chance of a third party guessing your endpoint extremely low—the risk is never zero. More importantly, because of how Cursor’s architecture works, your data may still pass through external infrastructure.

For your specific use case, I would recommend looking into open-source alternatives like Zed or other agentic coding tools such as OpenCode that allow for true local-to-local communication.

Personally, I have already switched to Zed as my primary editor.