Integrations / Coding agents

SecureAI + Cursor

Your developers keep Cursor. SecureAI checks the prompt and the files attached to it before Cursor sends them, and shows you the model and tokens of each turn.

Everyone wins

Cursor
acme/apirepoacme/webrepoacme/infrarepo

Developers keep Cursor

Same IDE, same repositories. The hooks run on the machine and do not change how they work.

invoice.ts

Security sees what goes out

SecureAI checks the prompt and its attachments for secrets and your DLP rules, and blocks personal accounts in company repositories.

Without SecureAI0tokens billed
With SecureAI0tokens billed

Finance pays less

A blocked prompt never leaves Cursor, so nobody pays tokens for it or for the answer asking you to rotate the key.

How it works

From the developer’s chat to your console

  1. 01

    SecureAI installs Cursor’s hooks

    The SecureAI Agent writes Cursor’s hooks machine-wide, in C:\ProgramData\Cursor. The developer installs nothing.

  2. 02

    A key in an attached file stays on the laptop

    A developer attaches a file with an AWS key and sends the prompt. SecureAI checks the text and the attachment, and Cursor shows the block instead of sending it.

  3. 03

    Company repositories, company accounts

    SecureAI reads the account the developer signed in with. A personal account in a repository you marked corporate gets blocked.

  4. 04

    Each turn in your console

    You see each session with its account, repository, model and tokens per turn, next to what SecureAI blocked.

What you get

Machine-level hooks

SecureAI configures Cursor’s hooks for every user on the machine, the mechanism Cursor documents for administrators. No TLS inspection.

Model and tokens per turn

Each turn reports the model and its input, output and cache tokens.

DLP on the prompt and its attachments

SecureAI checks the prompt and the files attached to it for secrets and your DLP rules.

The prompt stops before it goes out

When a rule blocks, Cursor does not send the prompt and shows the developer why.

Personal or corporate, per repository

A rule per repository decides whether personal accounts can work in it.

The account behind each session

SecureAI records the account each developer signs in with, and uses its domain to tell personal from corporate.

Requirements

  • The SecureAI Agent on each machine.
  • Tested with Cursor 3.15 and 3.29.