Ad space · Your tool here
PluginStack
Coding Agents · by OpenAI

Codex Security

Codex Security official site ↗

Last checked against the official docs:

What it does

OpenAI's open-source tool for finding and fixing security vulnerabilities with Codex. It scans a repository, selected paths or a diff for vulnerabilities, tries to validate each candidate finding against the source, and can generate a patch and later check whether a fix worked. Each scan saves a Markdown report with source evidence and coverage limits. It also drafts SECURITY.md policies, saves threat models, exports SARIF, JSON and CSV, and can send findings to Linear, Jira or GitHub. You can use it as a plugin inside Codex, as the cs command-line tool, from a TypeScript SDK or in a GitHub Action. Apache-2.0 licensed.

Who it's for

Developers and small teams who want an AI security review of their code with evidence for each finding, either inside Codex or as a scheduled scan in CI.

How to set it up

  1. You need Node.js 22.13 or later within 22.x, or Node 24 or 26, plus Python 3.10 or later. Install the CLI and sign in with ChatGPT (cs and codex-security are the same command):

    bash
    npm install --global @openai/codex-security
    cs login
  2. Run a scan from the repository folder, then open the Markdown file shown at the REPORT path. cs scans show finds the latest completed scan again:

    bash
    cs scan .
  3. Narrow or deepen the scan:

    bash
    cs scan . --path src --path tests
    cs scan . --diff origin/main
    cs scan . --mode deep
  4. Inside Codex instead: open your repository, find Codex Security in the desktop plugin browser or type /plugins in the Codex CLI, install and enable it, start a new chat and ask for a scan in plain language. For CI, set OPENAI_API_KEY or CODEX_API_KEY in the scan's environment instead of signing in.

  5. Scans run on OpenAI models (Amazon Bedrock and some other providers are also supported). With a ChatGPT sign-in, the scan progress shows how much of your account's allowance has been used; with an API key, the CLI shows a cost estimate at API rates. If the cs name clashes with another command, use codex-security or npx @openai/codex-security. Treat findings and patches as input for your own review.

Check the official Codex Security docs for the latest steps.

Example prompts

prompt
Run a Codex Security scan on this repository, focusing on authentication and authorization. Return the saved report, source evidence and coverage limits.
prompt
Use $security-diff-scan on the changes in this branch compared with main.
prompt
Use $check-skills on ../downloaded-skills before I install them in Claude Code.

Made Codex Security? Add the badge

If you like, show that Codex Security is listed and hand-checked here. It's optional: listings are free and we never ask for a link back.

Hand-checked on PluginStack
Get the Markdown or HTML

Markdown (for a GitHub README)

markdown
[![Hand-checked on PluginStack](https://www.pluginstackai.com/badge/hand-checked.svg)](https://www.pluginstackai.com/plugins/codex-security/)

HTML (for a website)

html
<a href="https://www.pluginstackai.com/plugins/codex-security/"><img src="https://www.pluginstackai.com/badge/hand-checked.svg" alt="Hand-checked on PluginStack" width="226" height="28"></a>

About the badge

Free: MCP Starter Checklist

After you set this tool up, use the one-page checklist so your next MCP server doesn't fail on first connect.

Markdown download + occasional PluginStack updates. No spam. Privacy policy.

See all Coding Agents on PluginStack