Use Cursor with Open-source LLMs

You need to register on OpenRouter, then create your API key. After that, you need to add it in Cursor and override the base URL to this address: https://openrouter.ai/api/v1, and add the model name to the list of models. Yes, it will work in agent mode.

2 Likes