anoman
Agent Integration Guides
IDE

Connect Cursor to Anoman AI

Route Cursor's AI completions and chat through Anoman by setting the OpenAI base URL in Cursor settings. Guardrails apply to every code completion and Cmd+K request.

Prerequisites

  • An Anoman AI account with an active API key
  • Cursor installed (cursor.sh)

Step 1: Open Cursor Settings

Go to Cursor Settings → Models → OpenAI API Key. Cursor supports a custom base URL on the OpenAI provider.

Step 2: Set the Anoman endpoint

Enter your Anoman API key and set the base URL to Anoman's OpenAI-compatible endpoint:

API Key:   anm-sk-your-key-here
Base URL:  https://api.anoman.io/v1

Step 3: Select a model

Choose any model available on Anoman. Cursor passes the model name directly to the base URL — Anoman routes it to the correct provider.

# Supported model names in Cursor with Anoman:
gpt-4o
gpt-4o-mini
claude-sonnet-4-6
claude-haiku-4-5

Alternative: environment variables

If Cursor reads from environment variables in your shell, you can set these instead:

export OPENAI_API_KEY=anm-sk-your-key-here
export OPENAI_BASE_URL=https://api.anoman.io/v1

Guardrail transparency headers

Every response includes guardrail result headers. Check these in your Anoman dashboard traces to confirm the pipeline is active on Cursor requests.

X-Anoman-Guardrail-Injection: pass score=0.03
X-Anoman-Guardrail-Pii: pass
X-Anoman-Guardrail-Content: pass
X-Anoman-Cache: none

Need help with your integration?

Join the Founding 50 for early access and direct support from the Anoman team.

Join Founding 50