IDE · about 3 minutes

Cursor with 9Coding

Cursor supports custom OpenAI-compatible endpoints. Override the base URL in settings and every model call inside Cursor bills through 9Coding — same models, an order of magnitude off the invoice.

Step 1 · Get a key

Create an API key in the 9Coding console; keys start with sk-9c-. Sign up first if you don't have an account.

Step 2 · Override the base URL

  1. Open Cursor Settings (++J / Ctrl++J) → Models
  2. In the API Keys section, tick Override OpenAI Base URL
  3. Enter the address below as the base URL
Override OpenAI Base URL
https://api.9coding.com/v1
  1. Paste your 9Coding key (sk-9c-…) into the OpenAI API Key field and click Verify
Note: overriding the base URL leaves Cursor's own bundled quota untouched — only calls made with your key bill through 9Coding. The two coexist; whichever entry you pick in the model dropdown decides the route.

Step 3 · Pick a model and verify

Tick the models you want in the list (for example claude-fable-5 or gpt-5.6), send a message in chat, then open the Logs page in the 9Coding console to confirm the call was recorded.

Troubleshooting

  • Verify fails — check that the base URL ends in /v1 and the key has no stray whitespace.
  • Model missing from the list — click Add model and type the model name manually.
  • Switching back — untick Override; your settings are kept.