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
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):
bashnpm install --global @openai/codex-security cs loginRun 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:
bashcs scan .Narrow or deepen the scan:
bashcs scan . --path src --path tests cs scan . --diff origin/main cs scan . --mode deepInside 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.
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
Run a Codex Security scan on this repository, focusing on authentication and authorization. Return the saved report, source evidence and coverage limits.Use $security-diff-scan on the changes in this branch compared with main.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.
Get the Markdown or HTML
Markdown (for a GitHub README)
[](https://www.pluginstackai.com/plugins/codex-security/)HTML (for a website)
<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>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.
More Coding Agents
- Aider
Aider
Open-source AI pair programming in your terminal. It edits code in your local git repo and works with many LLMs (Claude, DeepSeek, OpenAI models and more).
- Anthropic
Claude Code
Anthropic's agentic coding tool. It reads your codebase, edits files, runs commands, works with git and connects to MCP servers. It runs in the terminal, with VS Code/JetBrains extensions, a desktop app and a web version too.
- OpenAI
Codex CLI
OpenAI's open-source coding agent that runs locally in your terminal. It reads and edits your code, runs commands and connects to MCP servers. Codex also comes as an IDE extension (VS Code, Cursor, Windsurf), a desktop app and a cloud version. Apache-2.0.
- Agentic AI Foundation (Linux Foundation)
goose
An open-source, general-purpose AI agent that runs on your machine as a desktop app (macOS, Linux, Windows), a CLI and an API. It isn't only for code: it also handles research, writing and automation. It supports 15+ model providers and connects to tools through MCP extensions. Originally from Block, now part of the Agentic AI Foundation. Apache-2.0.
- Anomaly
OpenCode
An open-source AI coding agent with a terminal UI, plus a desktop app (beta) and IDE support. It works with API keys from many LLM providers, and also has an optional curated model service called OpenCode Zen. It ships a full-access build agent and a read-only plan agent you switch between with Tab. The code is on GitHub at anomalyco/opencode (the older sst/opencode address redirects there). MIT licensed.
- OpenHands
OpenHands
An open-source platform for running coding agents. Its Agent Canvas app (labeled beta) is a self-hosted control center where you start agent conversations and set up automations (for example with Slack, GitHub or Linear). It runs the OpenHands agent by default and can also run Claude Code, Codex, OpenCode and other ACP-compatible agents, locally, in Docker, on VMs or in OpenHands Cloud. MIT licensed.