Cursor
Cursor is an AI code editor with agent mode, tab completions, and inline edits. Use Cursor’s OpenAI API Key + Override OpenAI Base URL flow to send eligible chat/agent requests through ApiGo.
Cursor’s BYOK surface changes over time. Treat this guide as the current recommended shape and re-check Cursor’s API key docs if the UI labels differ.
Prerequisites
- Cursor installed and signed in
- An ApiGo API key from Workspace → API Keys
Configure Cursor
- Open Cursor Settings (
Cmd/Ctrl + ,). - Go to Models, then expand API Keys.
- Enable OpenAI API Key and paste your ApiGo key (
sk-apigo-...). - Enable Override OpenAI Base URL and set:
https://api.apigo.ai/v1
- In Models, click Add model and enter ApiGo slugs from the Model Catalog, for example:
gpt-5.6-solqwen3.8-maxdeepseek-v4-flash
- Open the chat or agent model picker and select one of the models you added.
How it works
Cursor’s OpenAI provider override calls your configured base URL with OpenAI-compatible Chat Completions requests. ApiGo accepts those calls at /v1/chat/completions and bills them to your workspace.
Limitations
- Tab completions usually stay on Cursor’s built-in models and ignore BYOK.
- Auto / Composer modes may not route through your key — confirm in Cursor’s docs for your build.
- Tool-calling and agent features depend on the model you pick and Cursor’s request shape. If tool calls fail, switch models or verify the request in Call Logs.
Troubleshooting
| Symptom | Fix |
|---|---|
| Invalid API key | Use an ApiGo sk-apigo-... key, not an OpenAI key |
| Model not found | Paste the exact slug from Models |
| No traffic in Workspace | Confirm Override OpenAI Base URL is https://api.apigo.ai/v1 and the selected model is one you added |
