Short answer. In Cursor Settings → Models, put your Plugsky key in the OpenAI API Key field, enable Override OpenAI Base URL if your build shows it, and enter
https://api.plugsky.com/v1. Add eachplugsky-*model with Add Custom Model. Chat should work over Chat Completions; Agent depends on the Responses API and must be tested. Tab completion stays on Cursor’s own models, and Cursor’s public BYOK documentation does not describe the override, so verify it in your version and plan first.
What Cursor documents — and what it leaves out
Cursor’s official “Bring your own API key” page documents five provider slots: OpenAI, Anthropic, Google, Azure OpenAI and AWS Bedrock. It says own keys work with chat models only, that Tab keeps using Cursor’s built-in models, and that on Teams and Enterprise some third-party requests still carry Cursor’s token rate. It does not mention a custom base URL anywhere on that page, and we found no page for one in Cursor’s documentation index.
Two vendor documentation pages nevertheless describe the override. OpenAI’s help centre article on using OpenAI models in Cursor says Cursor can connect through “a custom OpenAI-compatible base URL” and lists the features that gateway credentials do not cover. Cloudflare’s AI Gateway guide for Cursor tells users to enable “Override OpenAI Base URL”, enter a custom endpoint and add model IDs by hand. A Cursor community forum thread describes the same behaviour.
That gap is the honest status: the capability exists in the product, but it is not part of Cursor’s documented provider contract. Treat it as a supported-in-practice setting that can change between releases, and keep a fallback client for the team if a Cursor update removes it. The protocol-level limits that apply to any OpenAI-compatible client — streaming, tools, JSON mode, embeddings and the Responses surface — are on the OpenAI-compatible API page.
Exact settings
Open Cursor Settings → Models and work down the API Keys section. The OpenAI group is the one that accepts a custom endpoint; the Anthropic, Google, Azure and Bedrock slots do not.
| Cursor field | Value | Notes |
|---|---|---|
| OpenAI API Key | Your Plugsky API key | Not an OpenAI key. Cursor sends it as a bearer token to the overridden host. |
| Override OpenAI Base URL | https://api.plugsky.com/v1 | Toggle on, then paste. Include /v1; no trailing slash and no /chat/completions. |
| Add Custom Model | plugsky-coder | Add one entry per model you intend to use, with the exact API ID. |
| Model toggle | Enabled | A custom model that is not enabled does not appear in the picker. |
| Plan | Paid tier with own keys | Cursor’s plan table lists own API keys on paid individual tiers; the entry tier excludes them. |
| Network | Public HTTPS | Requests originate from Cursor’s servers, not your laptop, so a private or localhost endpoint will not connect. |
Save the key, then add models. Cursor does not call GET /v1/models to populate the picker, so the list is manual and stale until you edit it. Start with two IDs: one coding model for daily work and one smaller model for cheap chats. Use GET https://api.plugsky.com/v1/models as the authority when an ID stops working.
Host note. This guide uses
https://api.plugsky.com/v1, the approved API host. Plugsky’s public documentation also showshttps://plugsky.com/v1in examples. Both responded on 20 November 2026, but pick one host and keep it across chat, agent and test scripts.
Step by step
- Create a dedicated key. One key per developer or per team, so a single revocation does not break every editor.
- Test the host outside Cursor. Run the cURL call below from a machine with internet access. If it fails, Cursor will fail the same way.
- Enter the key and override. Toggle the override on and paste the base URL exactly.
- Add the model IDs. Add
plugsky-coderand enable it; addplugsky-microif you want a cheap chat option. - Test Chat. Select the custom model and send a short prompt. A reply proves the key, host and model ID.
- Test Agent on a scratch repository. Agent is the mode most likely to fail, because it uses a different request shape.
curl https://api.plugsky.com/v1/chat/completions \
-H "Authorization: Bearer $PLUGSKY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "plugsky-coder",
"messages": [{"role": "user", "content": "Reply with the single word ready."}],
"max_tokens": 16
}'Chat and Agent are different compatibility tests. Cursor chat sends Chat Completions; Agent mode sends the OpenAI Responses API, according to Cloudflare’s Cursor integration guide. Plugsky responds on POST /v1/responses, but stateful Responses fields and OpenAI-hosted tools are not documented to the same depth as Chat Completions. Test the endpoint directly before you debug Cursor’s UI.
curl https://api.plugsky.com/v1/responses \
-H "Authorization: Bearer $PLUGSKY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "plugsky-coder",
"input": "Reply with the single word ready."
}'If the Responses call returns an error but Chat Completions works, the practical configuration is Chat-only until the Agent path is verified. Do not assume that a successful Chat test means Agent will complete a multi-file edit.
Model IDs that fit Cursor
Cursor is an editor with a chat pane and an agent, so the useful IDs are the coding and long-context ones. The catalogue has 39 public IDs; these are the sensible first entries, not a ranking.
| Workload | Model ID | Context | Note |
|---|---|---|---|
| Everyday coding chat | plugsky-coder | 262,144 | Coding-oriented ID; the default choice for most tasks. |
| Hard reasoning and refactors | plugsky-coder-ultra | 262,144 | Test tool-call reliability before using it in Agent mode. |
| Very large repository context | plugsky-longctx | 262,144 | The plan input ceiling can still be lower than the model window. |
| Cheap background chats | plugsky-micro | 262,144 | Free-tier eligible; good for short explanations, not long agent runs. |
| Screenshot or diagram input | plugsky-vision-fast | 131,072 | Vision-input model. Cursor’s own-key support is documented for standard chat models, so test image handling. |
Do not add the embedding IDs (plugsky-embed, plugsky-embed-nim, plugsky-embed-multilingual) to the model picker. They are not chat models, and a request in the chat shape will fail. The model catalogue gives the full list and the serving engine behind each alias.
What works, what does not
Cursor’s own-key surface is narrower than its subscription surface, and the base URL override narrows it again. The table separates the parts that should work from the parts that Cursor explicitly excludes.
| Feature | Status | What to expect |
|---|---|---|
| Chat with a custom model | Expected to work | OpenAI-format Chat Completions to the overridden base URL. |
| Agent edits | Test first | Agent uses the Responses API; verify multi-file edits and tool calls before relying on it. |
| Tab completion | Not included | Cursor documents Tab as using its built-in models; a custom key does not replace it. |
| Auto routing | Not included | Auto is a Cursor-managed mode, not a custom-model feature. |
| Cloud and background agents | Not included | OpenAI’s Cursor article lists gateway credentials as covering local Chat and Agent only. |
| Automations, CLI, API and SDK | Not included | The same article excludes these surfaces from custom gateway credentials. |
| Zero Data Retention | Does not apply | Cursor states ZDR does not apply with own keys; requests pass through Cursor and then the provider. |
| Model list refresh | Manual | Cursor does not read /v1/models from a custom host. |
Error table and fixes
Most failures are one of four things: the wrong path, the wrong key, a model ID Cursor has not enabled, or a request shape the endpoint does not serve.
| Symptom | Likely cause | Fix |
|---|---|---|
| 401 Unauthorized | OpenAI key left in the field, or a revoked Plugsky key | Paste the Plugsky key, save, and confirm the request is going to api.plugsky.com. |
| 404 Not Found | Base URL includes /chat/completions, or omits /v1 | Use https://api.plugsky.com/v1 exactly. |
| Model not found | ID typo, disabled model, or an embedding ID | Re-add the exact ID from GET /v1/models and enable its toggle. |
| Custom model missing from picker | Model added but not enabled | Turn on the model toggle in Settings → Models. |
| Override field absent | Cursor version or plan does not expose it | Update Cursor, check the plan, or use Cline or Continue for a direct endpoint. |
| 400 context length | Repository context exceeds the model or plan window | Open fewer files, start a new chat, or move to a larger plan ceiling. |
| 429 | RPM or concurrency exhausted | Wait, reduce parallel requests, or move to a plan with higher concurrency. |
| Chat works, Agent fails | Responses API parity or a stateful field | Keep Chat-only until the Responses path passes a direct test. |
| Connection refused or timeout | Private, localhost or firewalled endpoint | Cursor cannot reach it from its servers; use a client that runs locally. |
Limitations before you standardise on it
It is not an official provider contract. Cursor documents own keys for five providers, not a general OpenAI-compatible gateway. A future release can change the field, move it, or gate it by plan. Keep the configuration documented and have a second client ready.
The override is not per-model. Cursor’s community forum reports that when the override is enabled, OpenAI-family requests go to the custom endpoint even when a Cursor-managed OpenAI model is selected, so switching back means disabling the override. Plan for one mode at a time rather than per-model routing.
Data takes an extra hop. Cursor’s own documentation says the key is sent to its backend with every request because all requests are routed through Cursor’s servers for final prompt building, and that its Zero Data Retention policy does not apply with own keys. If code cannot transit a third party, this path is the wrong one regardless of the model provider.
Features are gated by mode. Tab, Auto, cloud agents, automations, the CLI and the API/SDK are outside the custom-credential surface. A team that relies on those features will still need Cursor’s own models for them, which means two billing relationships and two data paths.
Plan ceilings still apply. Cursor can send a large repository context; Plugsky’s plan caps input at 64K on Hobby, 128K on Starter and 256K on Builder, with Scale advertising 512K while the model window applies. Concurrency is also per account: 4 requests on Hobby, 6 on Starter, 10 on Builder and 16 on Scale. The pricing page has the current terms.
Governance belongs elsewhere. If the goal is central keys, policy and logging across many clients, a gateway layer is a better fit than an editor setting. The AI gateway overview covers that architecture, and private AI deployment covers VPC and air-gapped options that Cursor’s cloud relay cannot reach.
When Cursor is the wrong client for Plugsky
Choose a local client instead when any of these is true: the endpoint is private, the code cannot transit Cursor’s servers, Tab completion must use the same provider, or the team needs the CLI and API to share one credential. Cline and Continue both run on the developer’s machine and call the endpoint directly, so a VPC reachable from the laptop or office network can work where Cursor’s relay cannot.
Cursor remains the better choice when the team values its editor experience, Tab completion and managed agents more than endpoint purity. In that case, use Cursor’s own models for the managed surfaces and Plugsky for the work that benefits from the flat-rate API, rather than forcing every feature through one credential.
What we did not verify
- We did not run Cursor against Plugsky in this research pass. The field name and behaviour come from OpenAI’s Cursor help article, Cloudflare’s Cursor gateway guide and Cursor’s community forum, all checked 20 November 2026.
- We did not confirm which Cursor versions and plans expose the override, or whether Cursor’s current BYOK page will add it. Check your own build before planning a rollout.
- We did not test Agent mode, image input, tool calls or multi-file edits through the Responses path.
- We did not review a SOC 2 report or Cursor’s security documentation. Public Plugsky material describes SOC 2 readiness; request the current report under NDA and confirm scope and period.
- We used the API host
https://api.plugsky.com/v1throughout. Plugsky’s public docs also showhttps://plugsky.com/v1; pick one host and keep it.
Frequently asked questions
Can Cursor use Plugsky as a custom OpenAI endpoint?
Cursor exposes an OpenAI-compatible base URL override for own-key OpenAI traffic in some versions and plans. Set it to https://api.plugsky.com/v1, put your Plugsky key in the OpenAI API Key field and add each plugsky-* model manually. Cursor's own BYOK page does not document this override, so confirm the setting exists in your build before you plan around it.
What base URL should I enter in Cursor?
Enter https://api.plugsky.com/v1, including /v1 and without a trailing slash. Cursor appends /chat/completions for chat traffic, so pasting the full endpoint path produces a doubled path and a 404.
Why do my Plugsky models not appear in Cursor's picker?
Cursor does not read the model list from a custom endpoint. Add each ID with Add Custom Model, enable it, and select it in the picker. The ID must match exactly, such as plugsky-coder, not a display name.
Does Cursor Tab use the custom endpoint?
No. Cursor documents own keys as chat-model credentials only, and Tab completion continues to use Cursor's built-in models. A custom base URL does not replace the Tab model or its quota.
Why does Cursor Agent fail when Chat works?
Chat and Agent do not send the same request shape. Cursor chat uses Chat Completions, while Agent mode uses the OpenAI Responses API according to Cloudflare's Cursor integration guide. Plugsky responds on /v1/responses, but Responses parity with OpenAI's stateful features is not verified, so test Agent before relying on it.
Does Cursor's zero data retention policy apply with a Plugsky key?
No. Cursor states that its Zero Data Retention policy does not apply when you use your own API keys, and that requests are routed through Cursor's servers for final prompt building. Data handling then follows Cursor's terms and the provider's terms, so review both before sending sensitive code.
Is a local Plugsky endpoint supported in Cursor?
Not through the base URL override. Cursor sends requests from its servers, so the endpoint must be reachable over public HTTPS. localhost, private VPC addresses and air-gapped hosts are not reachable that way; use a client that runs on your machine, such as Cline or Continue, for those deployments.
Related pages
Test the endpoint before you configure the editor
Start on the free plan, run the Chat and Responses smoke tests, then decide whether Cursor or a local client is the right surface.
Start Free → Read the docsSources
Cursor behaviour below was checked on the linked pages on 20 November 2026. Where Cursor’s own documentation is silent on the override, the page says so and attributes the claim to the source that describes it.
| Source | Page checked | Checked |
|---|---|---|
| Cursor | cursor.com — Bring your own API key | 20 Nov 2026 |
| Cursor | cursor.com — Models and pricing | 20 Nov 2026 |
| Cursor forum | forum.cursor.com — custom OpenAI-compatible API in Cursor | 20 Nov 2026 |
| OpenAI | help.openai.com — Using OpenAI models in Cursor | 20 Nov 2026 |
| Cloudflare | developers.cloudflare.com — Cursor and AI Gateway | 20 Nov 2026 |
| Plugsky | plugsky.com/models and plugsky.com/pricing | 20 Nov 2026 |
Last checked 20 November 2026. Plugsky’s canonical plan numbers live at /pricing; this page explains the integration and does not replace the plan terms.