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

Install

Requires Node.js >= 20.0.0.
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 daily limits.
Sign in with a personal account:
Tokens are stored in ~/.kodus/credentials.json and auto-refreshed.
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, prints a summary, and (in interactive mode) lets you browse file-by-file, preview suggested fixes, and apply them.Common variations:
Working-tree reviews (default) and --staged inline file contents so the backend sees your uncommitted changes. --branch and --commit modes skip inlining since the backend can fetch those commits itself — this is why those modes work well on huge branches.
4

Choose what's next

Depending on your goal:

Automate on every push

Install the pre-push hook with kodus hook install.

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

Manage ignored files, base branches, and review settings from the CLI.

Environment Variables

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

Troubleshooting

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