Why it doesn’t work
- No Anthropic base-URL field. Cursor only exposes an OpenAI base-URL override. There is no equivalent for Anthropic, so you cannot point Claude requests at the Wardin gateway.
- The OpenAI override breaks Claude. If you set Cursor’s OpenAI base URL,
Cursor sends Claude traffic to it too and the payloads don’t match — Anthropic
models start failing with
422errors. - Cursor routes through its own servers. Even where a base-URL override
exists, Cursor proxies API traffic through Cursor’s backend, so the target must
be a public URL — a local gateway (
http://localhost:8080) is unreachable. - The Wardin gateway speaks the Anthropic Messages API (
/v1/messages) and embeddings only — it does not expose an OpenAI/v1/chat/completionsendpoint, so the OpenAI-override path has nothing to talk to either.
What to use instead
To send governed requests through Wardin today, use a client that honorsANTHROPIC_BASE_URL:
- Claude Code — set
ANTHROPIC_BASE_URL+ANTHROPIC_AUTH_TOKENand every session flows through Wardin. - curl / the Anthropic SDK — point
base_urlat the gateway (see the onboarding Point a client step for copy-paste snippets).
When this will change
A Cursor integration becomes possible once either lands:- Cursor ships an Anthropic base-URL override (track the feature request above), or
- Wardin exposes an OpenAI-compatible endpoint so Cursor’s OpenAI override can target the gateway.