This feature is currently in open beta. We are actively improving it based on your feedback. If you encounter any issues or have suggestions, please share them on our Discord community or reach out to our support team.
Review local changes
The CodeRabbit CLI analyzes your uncommitted changes using the same pattern recognition that powers our PR reviews. Review code as you write it, apply suggested fixes instantly, and catch critical issues while you still have full context in memory.Key features
Review uncommitted changes
Catch bugs before they reach your repository. CodeRabbit scans your working directory for race conditions, null pointer exceptions, and logic errors before you commit.
Apply fixes in one step
Fix simple issues like missing imports or syntax errors instantly. For complex architectural problems, send the full context directly to your AI coding agent.
Context-aware reviews
Paid plans unlock reviews powered by your team’s codebase history: error handling conventions, architectural patterns, and coding preferences applied automatically to every review.
Getting started
Install CLI
Download and install the CodeRabbit CLI using your preferred method.After installation, restart your shell or reload your shell configuration:
- Install script
- Homebrew
Authenticate
Link your CodeRabbit account to enable personalized reviews based on your team’s patterns.Follow the browser redirect to sign in and copy the access token back to your CLI.
Review your code
Analyze your Git repository for issues using the CodeRabbit CLI.If your main branch is not CodeRabbit scans your working directory and provides specific feedback with suggested fixes.
Git repository required: The CLI must be run from within an initialized Git repository. The
--cwd flag changes the working directory but that directory must also contain a Git repository.main, specify your base branch:Review modes
The CLI offers different output formats to fit your workflow:Working with review results
CodeRabbit analyzes your code and surfaces specific issues with actionable suggestions. Each finding includes the problem location, explanation, and recommended fix. Example findings include:- Race condition detected: “This goroutine accesses shared state without proper locking”
- Memory leak potential: “Stream not closed in error path - consider using defer”
- Security vulnerability: “SQL query uses string concatenation - switch to parameterized queries”
- Logic error: “Function returns nil without checking error condition first”
Browse and apply suggestions
In interactive mode, use the arrow keys to navigate to a finding and press enter to see the detailed explanation and suggested fix inline in your CLI. For simple issues like missing imports, syntax errors, or formatting problems, choose Apply suggested change to fix immediately.Use AI coding agents
For AI agent integration, see the AI agent integration section for detailed workflow guidance and integration guides.Managing comments
- Ignore: Hide findings you want to address later
- Restore: Click collapsed findings in the sidebar to show again
AI agent integration
CodeRabbit detects the problems, then your AI coding agent implements the fixes.Claude Code users: Claude Code now supports CodeRabbit through a native
plugin. See the Claude Code integration guide
for the recommended plugin-based setup using
/coderabbit:review instead of
the CLI commands shown below.Integration guides
See detailed workflows for specific AI coding agents:CodeRabbit Skills
The fastest way to get started — install agent-native Skills and trigger reviews with natural language: “Review my code.”
Claude Code integration
Automated workflow with background execution and task-based fixes
Codex integration
Integrated code review and fix implementation with Codex CLI
Example prompt for your AI agent
Here’s a complete prompt you can use with Cursor, Codex, or other AI coding agents:Sample prompt
Components of a good prompt
Breaking down what makes an effective CodeRabbit + AI agent workflow:1. Run CodeRabbit CLI
1. Run CodeRabbit CLI
Tell your AI agent to run CodeRabbit with the You can also specify review types or branches:
--prompt-only flag:2. Run in the background
2. Run in the background
CodeRabbit reviews can take 7-30+ minutes depending on the scope of changes. Instruct your AI agent to run CodeRabbit in the background and set up a timer to check periodically:
Prompt
3. Evaluate and implement fixes
3. Evaluate and implement fixes
Once CodeRabbit completes, have your AI agent evaluate the findings and prioritize:This keeps your agent focused on meaningful improvements rather than minor style issues.
Prompt
4. Verify with a second pass
4. Verify with a second pass
Run CodeRabbit one more time to ensure fixes didn’t introduce new issues:
Prompt
5. Set loop limits
5. Set loop limits
Prevent infinite iteration by setting clear completion criteria:This ensures your AI agent completes the task efficiently and provides a clear report.
Prompt
Pricing and capabilities
Free tier
Basic static analysis with limited daily usage. Catches syntax errors, logic issues, and security vulnerabilities. Perfect for individual developers trying out the CLI workflow.
Paid plans
Enhanced reviews powered by learnings from your codebase history plus higher rate limits and more files per review. Paid users with linked GitHub accounts get:
- Learnings-powered reviews: Remembers your team’s preferred patterns for error handling, state management, and architecture
- Full contextual analysis: Understands your imports, dependencies, and project structure
- Team standards enforcement: Applies your documented coding guidelines automatically
- Advanced issue detection: Spots subtle race conditions, performance bottlenecks, and security vulnerabilities
Usage-based Add-On (Pay-as-you-Go)
Allows unrestricted access to CodeRabbit CLI
- Unlimited code reviews across every agentic coding loop
- Full control over usage and scaling through the dashboard
- Flexible purchase options (one-time & monthly subscription)
| Plan | Reviews per hour |
|---|---|
| Free | 3 |
| OSS | 2 |
| Trial | 4 |
| Pro | 8 |
| Enterprise | 12 |
Rate limits are per developer seat and subject to change.
CLI with Usage-based Add-on
Buy credits
Go to Subscription and Billing and open the Usage-based add-on tab to purchase credits.For full setup details, see Manage your subscription.
Create an Agentic API Key
Once your purchase is complete, navigate to the API Keys section and generate your Agentic API key.
Command reference
See the CLI Command Reference for a complete list of commands and options.Uninstall
Remove CodeRabbit CLI based on how you installed it.If installed using install script
If installed using Homebrew