LinuxCommandLibrary

coderabbit

AI-powered code review tool for the terminal

TLDR

Review all changes interactively
$ coderabbit
copy
Review all changes with plain text output
$ coderabbit --plain
copy
Review only uncommitted changes
$ coderabbit --type uncommitted
copy
Compare current branch against a base branch
$ coderabbit --base [develop]
copy
Provide custom review instructions
$ coderabbit --config [./claude.md]
copy
Authenticate with CodeRabbit
$ cr auth login
copy
Update CLI to latest version
$ coderabbit update
copy

SYNOPSIS

coderabbit [review] [options]
cr [review] [options]

DESCRIPTION

CodeRabbit CLI brings AI-powered code reviews directly into the terminal. It analyzes code changes -- whether uncommitted, staged, committed, or across branches -- and provides line-by-line review comments identifying potential issues such as security vulnerabilities, performance problems, code smells, logical errors, and missed unit tests. cr is a short alias for coderabbit.
The tool operates in three output modes: interactive mode (default) with a browsable TUI, plain text mode (--plain) with detailed feedback for scripting, and prompt-only mode (--prompt-only) for integration with AI coding agents.

PARAMETERS

--plain

Output detailed feedback in plain text format.
--prompt-only
Show minimal output optimized for AI agents.
-t, --type type
Review type: all, committed, uncommitted (default: all).
-c, --config files...
Additional instruction files for the AI.
--base branch
Base branch for comparison.
--base-commit commit
Base commit hash on the current branch for comparison.
--cwd path
Set working directory (must contain a Git repository).
--api-key key
API key for usage-based access.
--self-hosted
Enable self-hosted authentication mode.
--no-color
Disable colored terminal output.

SUBCOMMANDS

review

Run AI-driven code review (default when no subcommand given).
auth login
Authenticate with CodeRabbit account.
auth logout
Log out from CodeRabbit.
auth status
Show current authentication status.
auth org
Switch between organizations.
update
Check for and install the latest CLI version.

CAVEATS

Requires an initialized Git repository in the working directory. Authentication is recommended for enhanced analysis but the tool can be used without it (with rate limits). Free tier has rate limits; Pro plan provides higher limits. Available on macOS and Linux natively; Windows is supported via WSL. The CLI tool is closed-source.

HISTORY

CodeRabbit was founded in 2023 by Harjot Gill. The company initially launched as a GitHub/GitLab bot for reviewing pull requests. The CLI tool was launched on September 16, 2025, extending the platform to support pre-commit reviews directly in the terminal. CodeRabbit is headquartered in El Dorado Hills, California.

SEE ALSO

gh(1), git(1), semgrep(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard