Skip to content

Quickstart

Run kluster.ai code reviews straight from your terminal. Install kluster-cli, authenticate with your API key, and review your first changes. No IDE or CI pipeline required.

Prerequisites

You need:

1. Install

curl -fsSL https://cli.kluster.ai/install.sh | sh

curl -fsSL https://cli.kluster.ai/install.sh | sh Downloading kluster-cli... Installing to ~/.kluster/cli/bin/kluster... ✅ kluster-cli installed successfully Run 'kluster login' to authenticate

irm https://cli.kluster.ai/install.ps1 | iex

irm https://cli.kluster.ai/install.ps1 | iex Downloading kluster-cli... Installing to %USERPROFILE%.kluster\cli\bin\kluster.exe... ✅ kluster-cli installed successfully Run 'kluster login' to authenticate

For installer options, supported platforms, and troubleshooting, see Installation.

2. Login

Authenticate the CLI with your API key:

kluster login
kluster login Get your API key at: https://platform.kluster.ai/cli Enter your API key: ************************************ → Validating API key... ✓ Successfully authenticated Time to ship better code, try one of these: kluster review staged # Review staged changes kluster hooks install pre-push # Auto-review on git push/commit

When prompted, paste the API key from platform.kluster.ai/cli.

3. Review your code

Stage some changes and run your first review:

kluster review staged
kluster review staged → Reviewing code [████████████████████████████████████████] 100% ✓ Reviewing code complete! Review: 507f1f77bcf86cd799439011 Found 2 issue(s) #1 CRITICAL [P0] security SQL injection vulnerability detected in user input handling. User-provided data is concatenated directly into SQL query without sanitization. at src/db/queries.go:45-52 More details The function buildQuery() takes user input from the request body and concatenates it directly into the SQL string. Fix Use parameterized queries: db.Query("SELECT * FROM users WHERE id = ?", userID) ──────────────────────────────────────────────────────────────────────── #2 HIGH [P1] logical Potential null pointer dereference. The variable 'config' may be nil when accessed on line 78. at cmd/server.go:78 Fix Add a nil check before accessing config properties.

That's it. kluster.ai analyzes your code and flags issues with severity levels, explanations, and suggested fixes.

Want a deeper scan? Re-run the same command with --mode deep.

The CLI can do more than review staged changes—you can also review diffs against branches, review individual files, or set up git hooks to automate reviews on every commit or push.

Next steps

  • Installation: Shell completions, update system, and advanced install options.
  • Review commands: Review diffs, branches, and individual files.
  • Git hooks: Automate reviews on every commit or push.
  • Reference: Configuration, exit codes, and full command reference.