Integrations / Coding agents

SecureAI + Codex

Your developers keep Codex. SecureAI stops a prompt carrying a secret before it reaches OpenAI, denies the tools your policy forbids, and shows you the model and tokens of each request.

Everyone wins

Codex
acme/apirepoacme/webrepoacme/infrarepo

Developers keep Codex

Same CLI, same repositories. SecureAI works through the hooks OpenAI provides for administrators.

git diff

Security keeps secrets in

Secrets and your DLP rules block the prompt, and the guard denies tools such as reading a .env file.

Without SecureAI0tokens billed
With SecureAI0tokens billed

Finance pays less

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

How it works

From the developer’s terminal to your console

  1. 01

    SecureAI configures Codex

    The SecureAI Agent adds its hooks to Codex’s managed configuration, in requirements.toml. The developer installs nothing.

  2. 02

    A key in the prompt stays on the laptop

    A developer pastes an AWS key. The hook blocks the prompt before Codex sends it, and the developer sees why.

  3. 03

    Also in the Codex app

    The Codex desktop app goes through the same hooks: a prompt carrying a key stops before it reaches OpenAI.

  4. 04

    A .env file stays closed

    Codex reaches for the .env file. The guard denies the tool and tells the developer why.

  5. 05

    Each request in your console

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

What you get

OpenAI’s managed hooks

SecureAI adds its hooks to Codex’s managed configuration for every user on the machine.

Model and tokens

Each model request reports the model and its tokens.

Secrets and DLP block the prompt

SecureAI checks the prompt for secrets and your DLP rules before Codex sends it.

Tools denied by policy

The guard denies tools such as reading a .env file.

Risky commands denied

The guard denies commands such as piping a download into the shell or a git force-push before they run.

Each step of the session

SecureAI records each session step by step: the commands, the files and the MCP calls. Of the prompt it keeps only the length.

Requirements

  • The SecureAI Agent on each machine.
  • Tested with Codex CLI 0.169.