Get continuous code review with Codex
The CodeRabbit plugin for Codex creates autonomous AI development workflows. Codex can trigger CodeRabbit reviews directly through natural-language prompts, enabling you to build features, run code reviews, and fix issues without manual context switching. This integration makes AI coding more independent, with built-in quality gates that catch issues before they reach production.This guide covers using the CodeRabbit plugin with Codex. For standalone CLI
usage, see CLI overview.
Why integrate these tools
Expert issue detection
CodeRabbit spots race conditions, memory leaks, and logic errors that generic linters miss. Get the same pattern recognition that powers our PR reviews.
AI-powered fixes
Codex implements fixes with full context from CodeRabbitâs analysis. Complex architectural changes handled intelligently.
Context preservation
The plugin keeps review context inside Codex so findings can be turned into follow-up fixes without re-explaining the problem.
Continuous workflow
Stay in development flow - run reviews, apply fixes, and iterate without switching tools or losing mental context.
Installation
1
Install Codex
Install Codex following the platform-specific instructions. Ensure you can launch Codex from your terminal.
2
Install and authenticate CodeRabbit CLI
Install and authenticate the CodeRabbit CLI:If For a first login to an EU-hosted CodeRabbit account, use
- Install script
- Homebrew
- Windows
coderabbit is not available immediately after installation, start a new shell, or run the exact shell-specific reload command printed under Next steps. If the install script offers browser sign-in without first asking for a region, EU users should skip it and authenticate later with an explicit --region eu.Authenticate
coderabbit auth login --region eu. When no region is specified or saved, the CLI uses the US region.A browser window opens automatically. Sign in to CodeRabbit and the authentication completes in the browser.If you belong to multiple CodeRabbit organizations, the sign-in choice sets your default org only. Review attribution still depends on the current repository. See Organization selection.3
Install CodeRabbit plugin
- Codex app
- Codex CLI
Open the plugin marketplace, search for
coderabbit, and install the CodeRabbit plugin.If the plugin does not appear immediately after installation, reload or restart Codex so it refreshes the local plugin catalog.
4
Verify installation
Ask Codex to run a CodeRabbit review:The plugin will verify your CodeRabbit CLI installation and authentication when first used.
Usage
Running code reviews
- Natural language
- @ mention
Use natural language to trigger the plugin from Codex:
- verify CLI installation and authentication
- run the review
- summarize the diff first
- report how many findings CodeRabbit found
- present findings with severity, file path, impact, and recommended fix direction
--include-untracked flag when it runs CodeRabbit.
For longer reviews, Codex should wait quietly for completion rather than narrating intermediate polling or processing states.
Integration workflow
Use CodeRabbit while building new features
1
Request implementation + review
Ask Codex to implement a feature and run a CodeRabbit review:Key components:
Sample prompt
- Implement the feature: Codex codes the requested functionality
- Run CodeRabbit review: Uses the plugin to analyze code
- Fix issues: Codex addresses the problems CodeRabbit identifies
2
Codex implements and triggers review
Codex:
- Implements the requested feature
- Runs the CodeRabbit plugin review flow
- Waits for the analysis to complete
3
CodeRabbit analysis and task creation
When CodeRabbit completes, Codex:
- Summarizes the changes in the diff
- Reports how many findings were found
- Works through each finding with severity, file path, impact, and fix direction
4
Automated issue resolution
Codex systematically works through the findings, implementing fixes and iterating until the important issues are resolved.
Advanced usage
CLI review commands
When running the CodeRabbit CLI directly outside the plugin, use the review command that best fits your workflow:
The Codex plugin chooses the appropriate review flow automatically, so direct CLI usage is mainly useful for debugging or manual review.
Configure CodeRabbit for Codex
CodeRabbit automatically reads yourAGENTS.md file, so you can add context there on how code reviews should run, your coding standards, and architectural preferences.
Remove or turn off a plugin
To remove the CodeRabbit plugin, reopen it from the plugin browser and select Uninstall plugin.Uninstalling the plugin removes the plugin bundle from Codex, but the CodeRabbit CLI remains installed and continues to work independently.
~/.codex/config.toml to enabled = false, then restart Codex.
Troubleshooting
Plugin not found
If the plugin isnât available:- Reload Codex: Restart or reload Codex after installation so it refreshes the plugin catalog
- Check plugin installation: Confirm
CodeRabbitappears in the Codex plugin marketplace and is enabled - Reinstall if needed: Remove and reinstall the plugin from the marketplace
CLI not authenticated
If the agent cannot findcoderabbit, check the trusted CLI installation in your host terminal. A missing PATH entry does not mean it is uninstalled. Use the quoted absolute path to that installation for the commands below, not a repository-local executable or wrapper.
Codexâs default sandbox blocks the CLIâs saved sign-in, network access, and the local login callback. credentials_unavailable and callback_listener_unavailable indicate those local access failures, not proof that you are signed out. Older CLIs report the same failure as authentication_failed: Failed to start server. Is port 0 in use?; nothing is using port 0.
When Codex asks to run the coderabbit command outside the sandbox, approve it. To skip the prompt next time, choose the option that saves a rule for that command. A saved rule lets that CodeRabbit command run outside the sandbox with any flags, including --use-credits, but the plugin still asks before spending credits. You can also run the review in your own terminal.
For local sessions:
- Check host authentication: Run
"/absolute/path/to/coderabbit" auth status --agentin your host terminal. In a local agent sandbox, use approved command-scoped host execution for this status check and the review. Network permission alone does not expose host credentials. If host execution is unavailable or denied, stop and report that prerequisite; do not weaken global sandbox settings. - Recover a sandbox failure: If host status reports
authenticated: true, you do not need to log in again. When the original review failed authentication in the sandbox before analysis began, retry it once on the host with the same working directory and arguments. Do not retry a running or completed review, a failure after analysis began, or a review that already failed on the host. - Log in only when signed out: If the host check succeeds and reports
authenticated: false, run"/absolute/path/to/coderabbit" auth login --agentyourself in the host terminal, then confirm authentication before retrying. If status fails or remains unavailable, stop and report the error.
CodeRabbit not finding issues
If CodeRabbit isnât detecting expected issues:- Check git status: CodeRabbit analyzes tracked changes by default. Run
git statusto verify the scope; brand-new untracked files require--include-untracked. - Specify review scope: Ask Codex to review committed, uncommitted, or base-branch changes explicitly
- Run the CLI directly: Use
coderabbit reviewif you want to inspect findings outside the plugin flow
Review taking too long
CodeRabbit reviews may take several minutes depending on the scope of changes:- Review smaller changesets: Work on focused branches and smaller diffs
- Limit the scope: Ask Codex to review only committed or uncommitted changes
- Set the right base branch: Be explicit when your comparison point is not
main - Let the review finish: Long-running reviews are expected; the plugin should wait quietly rather than reporting intermediate polling states
The integration creates a more thorough review process than either tool alone.
Whatâs next
Claude Code integration
Compare the Codex plugin flow with the Claude Code plugin workflow and command surface.
Command-Line Review Tool
Use the standalone CodeRabbit CLI directly when you want manual review workflows outside Codex.
CodeRabbit Skills
Explore the skill-based integration path for other AI coding agents that support Skills.