1
Install
- Skill Installer (Recommended)
- npm
- npx (No Install)
Installs or updates the CLI, then installs the Kodus skills into the AI agents it finds on your machine (Claude Code, Cursor, Codex, and others — see AI Agents).macOS and Linux:Windows PowerShell:
Requires Node.js 22.19.0 or later.
2
Authenticate
Pick the path that matches your situation. You can also skip auth and run Confirm the auth state:
kodus review directly — it works in trial mode with hourly limits.- Solo developer
- AI agent
- CI/CD
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.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: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.