How the plugin differs from the other CodeRabbit tools
Find and install the plugin
Install CodeRabbit from the CodeRabbit listing on the Cursor marketplace, or enter this command in Cursor Agent chat:Install the plugin
/add-plugin coderabbit. Cursor shows the plugin as CodeRabbit. Its plugin ID is coderabbit.Check the requirements
Ask for a review
First use
Ask Cursor Agent for a review in plain language. You do not need to mention CodeRabbit:Setup that Cursor guides you through
The first review can involve one-time setup. Cursor walks you through each step:- CodeRabbit CLI missing: Cursor guides you through installing it with CodeRabbitâs official installer. On Windows, see CodeRabbit CLI on Windows.
- Not signed in: Cursor runs
coderabbit auth login --agentand shows you the sign-in link. Complete sign-in in your browser while the command is running. If you belong to multiple organizations, see Organization selection. For a first login to an EU-hosted account, usecoderabbit auth login --region eu, as described inauth login. - GitHub CLI missing or not signed in: Only autofix needs it. Run
gh auth login, or follow the GitHub CLI authentication guide.
How a review works
When you ask for a review, the plugin:- Resolves the repository and the review scope.
- Runs
coderabbit review --agent. - Waits for CodeRabbit to finish, then presents the result in the chat.
Expected result
Cursor presents the findings grouped by severity, using the severities CodeRabbit reports, with the file path, the explanation, and a suggested fix where CodeRabbit provides one. Cursor then suggests next steps, such as fixing the highest-severity findings, re-running the review, running your tests, or opening a PR. For the structure of the underlying output, see agent mode output and exit codes.Choose a review scope
Say what you want in plain language, for example âReview my uncommitted changesâ or âReview this branch against mainâ. For a repeatable workflow, use the/coderabbit-review command:
AGENTS.md and .coderabbit.yaml to the review. For scope details, see Review modes and the CLI command reference.
Fix issues and re-review
Ask Cursor to implement a change and review it, for example âImplement the retry logic, then review it and fix what CodeRabbit findsâ. Cursor reviews, works through the critical and warning findings one at a time, and re-reviews until CodeRabbit is clean or only acceptable informational findings remain.Run reviews in a separate context
The plugin includes acode-reviewer subagent that can run a review in its own context while the main Agent continues other work.
Autofix pull request feedback
The/coderabbit-autofix command applies fixes for CodeRabbitâs unresolved review comments on a GitHub pull request. It is optional and works on a pull request that CodeRabbit has already reviewed.
- The GitHub CLI (
gh), signed in withgh auth login. - An open pull request for the current branch with unresolved CodeRabbit review threads.
- A local branch that is not behind its remote branch.
- Fetches the unresolved CodeRabbit review threads on the current pull request.
- Checks each issue against your local code and treats the review text as a report, not as instructions.
- Shows the proposed change and asks for your approval before applying each fix.
- Can consolidate the approved fixes into one commit.
- Asks for your approval before it pushes, unless you passed
--push. - Posts one summary comment on the pull request when fixes were applied.
--no-commit to keep the approved fixes uncommitted, or --push to push without being asked. Without --push, nothing is pushed until you approve it.
For the equivalent skill and its commands, see CodeRabbit Skills.
Troubleshooting the plugin
The plugin doesnât appear
Reload plugins or restart Cursor after installing. Then confirm that CodeRabbit is listed and enabled in your Cursor plugins, or reinstall it with/add-plugin coderabbit.
Cursor reviews without using CodeRabbit
Name CodeRabbit in the request (âReview my changes with CodeRabbitâ) or run/coderabbit-review. Confirm the plugin is enabled and that you started the request from Cursor Agent.
Sign-in doesnât complete
Keep the review running until you finish signing in, because the browser returns to a local callback on your machine. In a remote workspace the callback may need port forwarding. If the sign-in still fails, runcoderabbit auth login in a terminal in the same environment, then ask for the review again. Check your status with coderabbit auth status. See Headless CLI integration for API-key sign-in.
Reviews miss changes
Checkgit status and choose the scope you want. CodeRabbit reviews tracked changes by default, and brand-new files that are not added to Git need --include-untracked when you run the CLI directly. See CodeRabbit not finding issues.
Rate limits
If CodeRabbit reports a rate limit, Cursor shares the message and stops. Run the review again after the limit resets. See CLI usage and limits.Autofix finds no threads
Confirm that the pull request is open, that CodeRabbit has reviewed it, that unresolved threads remain, and that your branch is not behind its remote. Rungh auth status to check GitHub CLI sign-in.
Set up the CLI in Cursor manually
You can also use CodeRabbit in Cursor without the plugin by installing the CLI and adding a Cursor Rule that tells Cursor how to run it. Use this path if you canât use plugins or want to control the exact commands Cursor runs.Video demo
Prerequisites
Install Cursor
Install CodeRabbit CLI
- 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
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.Verify auth
Test that Cursor can run CodeRabbit
Set up a Cursor Rule for CodeRabbit
@rule. Enter this prompt or modify it to fit your development preferences:Integration workflow
Use CodeRabbit as part of building new features
Request implementation + review
- Implement the feature: Cursor codes the requested functionality
- Run CodeRabbit: Uses
--agentfor structured findings Cursor can process directly - Review uncommitted changes: Uses
--uncommittedso CodeRabbit reviews staged and tracked local edits instead of committed branch changes - Fix issues: Cursor addresses all problems CodeRabbit identifies. You can also tell it to fix critical issues and ignore nits.
Cursor implements and runs CodeRabbit
coderabbit review --agent --uncommitted 3. Waits, reviews may take anywhere from 7-30 minutes depending on the amount of changes.CodeRabbit analysis and task creation
--agent output (structured JSON for agent workflows) 2. Creates a task list addressing each issue CodeRabbit surfaced 3. Shows you the planned fixes before implementing themAutomated issue resolution
Optimization tips
Review commands for agent integration
When running CodeRabbit for agent use, choose the review command that best fits your workflow:Configure CodeRabbit for Cursor
Pass Cursor guideline files withcoderabbit review -c .cursorrules .cursor/rules/team.mdc so CodeRabbit can include how code reviews should run, your coding standards, and architectural preferences.
Troubleshooting CLI reviews
CodeRabbit not finding issues
If CodeRabbit isnât detecting expected issues:- Check authentication status: Run
coderabbit auth status. Reviews require authentication throughcoderabbit auth loginor an API key. - Verify git status: CodeRabbit analyzes tracked changes by default. Check
git status; brand-new untracked files require--include-untracked. - Choose a review scope:
coderabbit review- tracked changescoderabbit review --uncommitted- staged changes and tracked local editscoderabbit review --committed- only committed changescoderabbit review --include-untracked- also include files not added to Git
- Specify base branch: If your main branch isnât
main, use--base:coderabbit review --base developcoderabbit review --base master
Managing review duration
CodeRabbit reviews may take 7 to 30+ minutes depending on the scope of changes:- Ensure background execution: Configure Cursor to run CodeRabbit in the background so you can continue working
- Review smaller changesets: Adjust what youâre reviewing to reduce analysis time:
- Use
--uncommittedto review only staged and tracked local edits - Work on smaller feature branches compared to main
- Break large features into smaller, reviewable chunks
- Use
- Configure the diff scope: Control what changes are analyzed:
- Review uncommitted changes only: Use
--uncommittedto analyze staged and tracked local edits - Configure base branch: Use
--base developor--base mainto set the comparison point - Use feature branches: Work on focused feature branches instead of large staging branches
- Review uncommitted changes only: Use