Cursor can send its chat and agent requests to any OpenAI-compatible endpoint. Point the base URL override at the WebikAI gateway and your custom-model requests get routing, budgets, and receipts.
wk_live_… key (shown once).Cursor Settings → Models
1. Add a custom model named: auto/code
2. OpenAI API Key: wk_live_...
3. Override OpenAI Base URL: https://gateway.webik.ai/v1
4. Click Verify| auto/code | Coding route ranked under your policy |
| auto/cheap | Aggressively minimize cost |
| auto/frontier | Premium frontier route under your policy |
| z-ai/glm-5.2 | Pin an exact model (OpenRouter-style slug) |
Cursor routes some built-in features (Tab completion, some agent modes) through its own backend regardless of this override. Only requests made with your custom model go through the WebikAI gateway — those are the ones that carry receipts and stop at your budgets.
Every response carries five x-webik-* headers naming the request id, the model and provider
that actually served it, the credential used (byok/managed), and whether a fallback fired. Requests
stop at your per-key and per-client budget caps — before forwarding, never after.
Full reference: docs · live scores: benchmarks · start free