Editors & IDE extensions

Connect Cursor

AI code editor. Point it at AgentKeyRoute so every request follows your governance profile and is recorded.

Get a key with the right protection
In the console, open Connect an app (opens in a new tab) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test.

Setup

  1. Install Cursor
    Install
    Download and install it from cursor.com.
    Sign in, then open the project you want to work on.
  2. Point it at the gateway
    Cursor settings
    1. Cursor Settings → Models.
    2. OpenAI API Key:  <your API key>
    3. Turn on Override OpenAI Base URL:  https://gateway.agentkeyroute.com/v1
    4. Add custom model:  gpt-4.1
    5. Click Verify, then pick gpt-4.1 in chat.

    Replace <your API key> with your AgentKeyRoute key. gpt-4.1 is an example: use a model your key may use (GET /v1/models lists them).

  3. Check it works

    Open Cursor's chat, choose the model you configured and send a message. The request appears in Requests (opens in a new tab) with the policy decision, the model that answered and what was redacted.

Good to know

  • The wizard marks this as a coding tool and adds Source code to its data. The recommended profile is usually Coding agents & developer tools.
  • It uses the OpenAI-compatible API, so the base URL ends in /v1.
  • If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. X-AIGov-Model names it.
  • Refused? See Why was a request blocked?