Codex has a plugin + marketplace model. Install the Oplane plugin (skills + MCP server) from the Oplane marketplace, then authenticate over OAuth — no tokens to copy.
This plugin connects your agent to Oplane, giving you:
- Codebase analysis: identify security threats across your entire project
- PR review: analyze pull requests for security implications
- Implementation assessment: check if security requirements are properly implemented
- Severity grading: grade each requirement's severity from its impact and reachability, with a rationale
Results are saved to Oplane and visible in the Gravity web interface.
codex plugin marketplace add oplane/oplane-openai-pluginStart Codex, open the plugins picker, select oplane, and install it:
codex
/pluginsRestart your Codex session after installing so the bundled skills and MCP server load.
The Oplane MCP server uses OAuth. Sign in when prompted, or trigger it manually:
codex mcp login oplaneA browser opens where you log in; tokens are issued and refreshed automatically.
Ask Codex to run a security analysis (e.g. "analyze this project for security threats") and it
loads the analyze skill; point it at a pull request for analyze-pr. Codex discovers skills by
their description.
If you only want the Oplane tools without the bundled skills:
codex mcp add oplane --url https://gravity.oplane.io/mcp/Codex detects that Oplane uses OAuth and opens a browser to sign in when you add the server — no
tokens needed. If you aren't prompted, authenticate manually with codex mcp login oplane.
For a self-hosted Oplane instance, use your server's /mcp/ endpoint (and edit the URL in the
plugin's .mcp.json if you installed via the marketplace).
The single highest-impact step is making threat modeling a standing instruction your agent
reads every session, so security-relevant changes are modeled before each commit or PR,
not just reviewed after a PR opens. Add this to your project's CLAUDE.md (and/or
AGENTS.md):
For changes that could affect security, you MUST threat-model the change using Oplane MCP
before committing. Threat-model the actual diff (e.g. the PR threat model), not a written
summary of it - a model built from your own description only re-tests risks you already
considered. Explicitly consider untrusted-input-inbound (log/audit/template/SQL injection
from external data), not only outward data leakage.
The plugin connects your agent to the Oplane MCP server, which provides the tools the skills use (create a threat model, get implementation advice, record assessments, and more). For the full list, see the MCP tool reference.
The plugin connects your agent to Oplane's MCP server at https://gravity.oplane.io/mcp/.
When you run an analysis, your agent sends Oplane:
- titles and descriptions of the code or change it is threat modeling, which can include short code excerpts
- git details such as the repository URL, branch, commit SHA and pull request URL
- the severity it grades for each security requirement, with the impact, reachability and note behind it
- the assessment it records for each security requirement, with file and line references
The plugin sends nothing to any other service. It has no hooks or scripts that run on your machine: the skills are instructions your agent follows. Oplane stores the results in your account, as described in the privacy policy.
See the Oplane agent plugins documentation or email [email protected].
Apache License 2.0. See LICENSE.