Configuration
In Cursor, go to Settings → Models → API Keys. Set:- Anthropic API Key:
wardin_sk_YOUR_KEY - OpenAI API Key:
wardin_sk_YOUR_KEY(same key works for both if you use the same virtual key)
- Anthropic Base URL:
https://gw.wardin.ai - OpenAI Base URL:
https://gw.wardin.ai/v1
x-api-key and Authorization: Bearer), so no extra configuration is needed.
Cursor’s UI for custom base URLs may vary by version. Check Cursor’s documentation if the fields are not visible.
What gets tracked
Every Cursor AI request — tab completions, chat, inline edits — passes through Wardin with full attribution:- Token usage per request type
- Model used
- Session grouping (Cursor sessions are grouped by idle timeout)
- Policy enforcement (model allowlist, PII redaction)
Using environment variables
If you’re running Cursor from a terminal (or using a.cursor/mcp.json setup), you can set:
Per-developer keys
Give each developer their ownwardin_sk_ key for individual cost tracking. All keys can point to the same provider credentials on the Wardin side.