Skip to main content
This guide gets you from zero to a reviewed diff in under five minutes.
1

Install

Requires Node.js 22.19.0 or later.
Verify the install:
2

Authenticate

Pick the path that matches your situation. You can also skip auth and run kodus review directly — it works in trial mode with hourly limits.
Sign in with a personal account:
The CLI opens the Authorize Kodus CLI page in your browser and prints its URL in case the browser doesn’t open. Check the Device, Mode, and Expires details, click Authorize CLI, then return to the terminal.If you aren’t signed in to Kodus in that browser, you first land on the sign-in page, and after signing in on the dashboard. Open the URL from the terminal again to reach Authorize CLI. The CLI waits for up to 10 minutes.On a machine without a browser, run kodus auth login --device-code in a private terminal. The CLI shows the authorization page (https://app.kodus.io/cli/authorize on Kodus Cloud) and a one-time code. In your browser’s address bar, add the code to the URL as the code query parameter and click Authorize CLI. The code expires after 10 minutes. Keep the code and the full link out of logs and shared messages. For CI, store a team key as the KODUS_TEAM_KEY secret.Your login is stored in ~/.kodus/credentials.json and refreshed automatically.
Self-hosting Kodus? Point the CLI to your API before authenticating:
HTTPS is required except for localhost.
Confirm the auth state:
3

Run your first review

Inside any git repository with uncommitted changes:
The CLI analyzes your working tree diff and prints a summary. In an interactive terminal on macOS and Linux, the findings open in the Hunk diff viewer next to the code. On Windows, or with --no-hunk, you browse a file-by-file list, preview suggested fixes, and apply them.Common variations:
With a login or team key, working-tree reviews (default) and --staged send the contents of the changed files with the diff. --branch, --commit, and --fast send the diff alone, since the backend can read those commits itself. That is why they work well on huge branches. Trial reviews always send the diff alone.
Only tracked changes are reviewed. Run git add on a new file to include it.
4

Choose what's next

Depending on your goal:

Automate on every push

Install the pre-push hook with kodus hook install. It reviews the branch you push and blocks the push on critical findings.

Run reviews in CI

GitHub Actions, GitLab CI, and generic pipeline examples.

Plug into an AI agent

Feed --prompt-only into Claude Code, Cursor, or Codex for autonomous fix loops.

Configure the repo

Read and change review settings from the CLI.

Environment Variables

These env vars configure the CLI across all commands. For self-hosted setups and Cloudflare Access, see Self-Hosted Setup.

Troubleshooting

Ran into an error? Check the Troubleshooting guide for common symptoms and fixes.