Skip to main content
kRouter
All integrations

Use Cursor with any AI provider

Cursor AI Code Editor. Pointing Cursor at kRouter gives it 100+ providers behind a single local endpoint — free tiers, subscriptions you already pay for, and paid APIs — with automatic failover when one runs out. Cursor is configured through its own settings UI.

Heads up: Requires Cursor Pro account to use this feature.

Needs a public URL: Cursor routes requests through its own server, so local endpoint is not supported. Please enable Tunnel or Cloud Endpoint in Settings.

Setup

  1. Open Settings

    Go to Settings → Models

  2. Enable OpenAI API

    Enable "OpenAI API key" option

  3. Base URL

    {{baseUrl}}
  4. API Key

  5. Add Custom Model

    Click "View All Model" → "Add Custom Model"

  6. Select Model

What changes for Cursor

Nothing about how you use Cursor changes — same interface, same workflow. What changes is where its requests land. Instead of being tied to one vendor and one bill, every request goes through your own machine first and out to whichever provider you mapped: a free tier for routine edits, a subscription you already pay for on the heavy turns, a paid API only when nothing else fits. When one account hits a limit, the next takes over mid-session rather than failing the task. And because the router runs locally, your prompts are not passing through a third-party service on the way.

Troubleshooting Cursor

Cursor rejects the endpoint URL

Most editors validate the URL by calling it. Make sure kRouter is running first (`krouter -t`), and that you entered the /v1 suffix — the base URL is http://localhost:20128/v1.

It works locally but not from another machine

The default endpoint is loopback-only by design. Enable the tunnel or a cloud endpoint in Settings if the tool needs to reach kRouter over the network.

Cursor + kRouter FAQ

Can Cursor use providers other than its default?

Yes — that is the point of routing it through kRouter. kRouter presents one OpenAI-compatible endpoint that fans out to 100+ providers, so Cursor can reach any of them without knowing they exist.

How is Cursor pointed at kRouter?

Through its own settings UI. Nothing about Cursor itself changes — it still speaks the same API.

Does routing Cursor through kRouter cost anything?

kRouter is free and MIT-licensed and adds nothing to your bill. What you pay is whatever the provider you routed to charges — which is often nothing, if you route to a free tier or a subscription you already hold.

What happens when a provider runs out of quota mid-session?

kRouter parks that account until its real reset time and fails over to the next one you have connected, so Cursor keeps working instead of erroring out mid-task.

Get Cursor routing in two minutes

kRouter is free, MIT-licensed, and runs entirely on your machine — no account, no proxy in the middle.

Install kRouter