IDEs and editors · Cursor
Use Cursor with open-source models hosted in the EU
Cursor lets you add your own OpenAI-compatible endpoint for Chat and Agent. Point it at inference.eu and those requests are answered by open-weight models in European data centres. This page shows the setup and is clear about what still passes through Cursor's own servers.
- 01API format: OpenAI
- 02EU data centres
- 03Covered by one DPA
Set it up in a few minutes
- 1
Create an API key in your inference.eu account.
- 2
Open Cursor Settings, go to Models, paste the key into OpenAI API Key and turn on Use OpenAI API Key.
- 3
Turn on Override OpenAI Base URL and enter the inference.eu base URL ending in
/v1. - 4
Add each model you want as a custom model, using the exact inference.eu model id.
- 5
Open a new Chat or Agent session, select the custom model and send a short prompt to confirm it answers.
# API Keys section
OpenAI API Key: <your inference.eu key> # value of INFERENCE_EU_API_KEY
Use OpenAI API Key: on
Override OpenAI Base URL: on
Base URL: https://api.inference.eu/v1
# Models section → Add custom model (use the exact model id)
Custom models:
- qwen3-coder-480b-a35b-instruct
- glm-5.3
- kimi-k3What Cursor is
Cursor is an AI code editor built on VS Code, made by Anysphere. It combines Tab completion, a chat panel, inline edits and an Agent mode that plans changes across files and runs terminal commands. By default it uses models that Cursor provides under its own subscription.
Cursor also accepts your own API keys, and for OpenAI-format providers it offers a base URL override. That is how you connect a custom OpenAI-compatible endpoint such as inference.eu and use open-weight models in Chat and Agent.
How the configuration works
In Settings, Models, the OpenAI API Key field takes your inference.eu key and Override OpenAI Base URL takes our base URL. Then add custom models by id. Cursor sends requests for those models in the OpenAI Chat Completions format to the overridden URL.
Two details matter. First, the override is global: while it is on, OpenAI-family requests go to your endpoint, so turn it off when you want to use Cursor's own models. Second, on Business and Enterprise teams an admin must allow personal API keys under Team Settings, Models, or custom models are refused. Avoid model names that start with claude-, which Cursor treats as Anthropic models.
Which models to choose
Agent mode makes many tool calls in a row, so use models that are reliable with tools. qwen3-coder-480b-a35b-instruct is a strong default for edits, refactors and tests. glm-5.3 and kimi-k3 handle longer plans and explanations of unfamiliar code well.
For quick questions in Chat, gpt-oss-120b responds fast. You can add several custom models and switch between them in the model picker. Cursor's Tab completion is not affected by any of this: it always runs on Cursor's own completion model and cannot be pointed at a custom endpoint.
Troubleshooting
"Invalid API key" or a 401 means the key is wrong or Cursor is still sending your inference.eu key to OpenAI because the override is off. "Model not found" or "This model does not support custom API keys" usually means the custom model name differs from the inference.eu id, or your team admin has not enabled personal OpenAI keys.
If Cursor's own models stop working after setup, that is the global override at work; switch it off to use them. If the Settings fields do not take focus in some 3.15 builds, update Cursor. When Agent describes changes without applying them, the model is not returning tool calls; switch to one of the coding models above.
Where your code goes
Be clear about the path. Cursor routes every request through its own servers for final prompt building, including requests that use your key and custom base URL. Your code therefore passes through Cursor's backend before it reaches inference.eu. Cursor's zero data retention policy does not apply to requests made with your own keys. Tab completion and other features keep using Cursor's own models.
What inference.eu covers is the model step: requests we receive are processed in EU data centres, never used for training, and covered by our Article 28 GDPR data processing agreement and subprocessor list, billed in euros. If no traffic may pass a US service, choose an editor that calls the endpoint directly.
Cursor: common questions
The questions buyers, developers and legal teams ask us most. Something missing? Ask us directly.
Related
- ContinueConfigure the Continue extension for VS Code and JetBrains to use open-weight models processed in EU data centres, role by role, in config.yaml.IDEs and editors
- ClineConnect the Cline coding agent for VS Code and the terminal to open-weight models processed in EU data centres with the OpenAI Compatible provider.Coding agents
- Kilo CodeAdd inference.eu as a custom OpenAI-compatible provider in Kilo Code for VS Code and the CLI, and run its agents on open-weight models processed in the EU.Coding agents
- ZedAdd inference.eu as an OpenAI-compatible provider in the Zed editor and run its Agent Panel on open-weight models processed in EU data centres.IDEs and editors
Move your AI workloads to EU infrastructure
Tell us which models you use and roughly how much traffic you have. We reply within one working day with pricing and next steps.
- Reply within one working day
- Pricing for your volume
- DPA ready to sign