Use Prune with Cursor
BYOK only. Override the OpenAI base URL, paste a prune_ key, vault the provider. Cache and cheaper-model routing sit in front of the model.
Quick answer
Pasting a provider sk-… into Cursor means settings sync, screenshots, and shared machines all hold the real key. Put the provider key in the Prune vault. In Cursor, paste only prune_, override base URL to https://api.withprune.com/v1, and enable the model you vaulted. Cache and cheaper-model routing apply to BYOK traffic.
Why BYOK without a vault is reckless
Cursor Pro stays on Cursor. Your own key path is different: that key can spend until the provider stops you. A vaulted key plus Shield caps and signed receipts means a stuck session or leaked settings paste is not an open checkbook.
1. Get a Prune key
- Join at withprune.com.
- Connect → Providers: vault OpenAI, Anthropic, or OpenRouter.
- Copy your
prune_…key. Never paste a providersk-…into Cursor.
2. Cursor settings
Settings, then Models. Paste the three fields below. Turn built-in model names off before Verify so Verify hits a model the gateway serves.
Override OpenAI Base URL: https://api.withprune.com/v1
OpenAI API Key: prune_your_key
Model: gpt-4o-miniThis covers chat and inline edit on that key. Cursor's subscription, Tab, and indexing stay on Cursor. Some requests still pass through Cursor before they reach the base URL.
3. Prove the path without Cursor
One curl. Look for prune_metadata and receipt_signature in the response. Check it at /verify.
curl https://api.withprune.com/v1/chat/completions \
-H "Authorization: Bearer prune_your_key" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-4o-mini","messages":[{"role":"user","content":"ping"}],"max_tokens":16}'With a single line of code, Prune cuts your AI bill and protects your team from runaway spend, leaked keys and dangerous calls.