kodus status shows the CLI version, auth mode, repository, hook, and skills. --verbose prints the URL and status of each API request.
kodus auth status reads the credentials the CLI stored. It says “No credentials found” when the only credential is KODUS_TEAM_KEY or KODUS_TOKEN in the environment. kodus status reports those.
Common Errors
Command not found: kodus
Command not found: kodus
PATH. Reinstall with your package manager’s global flag, or use npx @kodus/cli <command> for one-off runs.npm install -g @kodus/cliyarn global add @kodus/clipnpm add -g @kodus/clibun add -g @kodus/cli
curl -fsSL https://review-skill.com/install | bash to fix PATH entries.Requires a logged-in user
Requires a logged-in user
pr reviews, agents, cockpit, usage, rules pause, rules resume, rules delete, and the config remote subcommands unset, model, messages, language, and skills don’t accept a team key. Run kodus auth login. A KODUS_TEAM_KEY in your environment doesn’t get in the way of these commands.Access denied when configuring repositories or Kody Rules with a team key
Access denied when configuring repositories or Kody Rules with a team key
kodus auth login uses your role’s permissions in the web app instead.NOT_IN_GIT_REPO
NOT_IN_GIT_REPO
kodus review requires a git working directory. cd into a repo or initialize one with git init. For kodus config remote commands, you can pass owner/repo explicitly instead of ..No changes to review
No changes to review
git add on it. Try:kodus review --stagedfor staged changes onlykodus review --branch <base>for the commits on your branch (use this in CI, where the checkout has no uncommitted changes)kodus review --commit <sha>for one commitkodus review src/file.tsfor specific files
Review takes very long or seems to hang
Review takes very long or seems to hang
- Use
--verboseto confirm requests are going out. - For very large diffs, prefer
--branch <base>or--commit <sha>over working-tree mode: they send the diff without the file contents. - Split work across smaller branches when practical.
The review is too large, or the API answers 403 or 413
The review is too large, or the API answers 403 or 413
--branch, --commit, or --fast, which send the diff without the file contents.Files are being skipped from the review
Files are being skipped from the review
- A new file that isn’t tracked yet is not in any diff. Run
git addon it. - A file whose diff is over 500,000 characters or whose content is over 2,000,000 characters is skipped in reviews that send file contents (not with
--branch,--commit, or--fast). The CLI prints which files and why. - A review sends at most 500 files. The CLI warns when it cuts the list.
Rate limit reached / Trial exhausted
Rate limit reached / Trial exhausted
kodus auth login or configure a team key with KODUS_TEAM_KEY to raise the limit. In trial mode, kodus auth status prints your usage and when it resets. It labels the limit “daily” and shows “Files limit: 10 per review”; the server applies neither: the limit is hourly, and no file limit applies to a trial review. When the trial limit is reached, kodus review prints a “Daily limit reached” notice and exits with code 0, whatever --fail-on says.A signed-in team is limited to 1,000 requests per hour. Reviews, business validation checks, and Kodus Trace session events count toward it. The CLI then says “Rate limit exceeded. Please try again later.”The login page doesn't open or the login times out
The login page doesn't open or the login times out
- The CLI prints the URL when the browser doesn’t open. Paste it into a browser.
- For a private SSH session or a machine without a browser, use the device-code sign-in steps. In CI, configure
KODUS_TEAM_KEYas a secret. - When you aren’t signed in to Kodus in that browser, the page sends you to the sign-in page, and after you sign in you land on the dashboard, not on Authorize CLI. Open the URL again; the CLI keeps waiting.
- The login waits up to 10 minutes. “Authorization timed out”, “expired”, or “denied” means you need to run
kodus auth loginagain. - To force the code flow, run
kodus auth login --device-code.
The Hunk viewer doesn't open
The Hunk viewer doesn't open
kodus review opens the Hunk viewer only in an interactive terminal on macOS and Linux, with the default terminal output. It shows the interactive list instead with --no-hunk, --interactive, --agent, --output, a non-terminal --format, output that isn’t a terminal, or on Windows. When you would expect the viewer and it is skipped (on Windows, with --commit together with --branch, or when no finding has a file and line), the CLI prints a one-line note that says why. kodus diff is not available on Windows.Skills aren't installed in my agent
Skills aren't installed in my agent
kodus skills install reports “No compatible local agent directories were detected” when it finds none of the agent config folders listed in AI Agents. Run the agent once so it creates its folder, then run the command again.API returned invalid response (expected JSON, got HTML)
API returned invalid response (expected JSON, got HTML)
KODUS_API_URL is hitting a reverse proxy or Cloudflare Access page instead of the API. Check:- The URL path (no stray
/api,/v1, etc.). - Cloudflare Access credentials (
CF_ACCESS_CLIENT_ID,CF_ACCESS_CLIENT_SECRET) if applicable. - That the proxy forwards the
Authorization,X-Team-Key, andCF-Access-*headers intact.
HTTPS required for API URL
HTTPS required for API URL
localhost and 127.0.0.1, prints “Security Error: API URL must use HTTPS protocol”, and falls back to https://api.kodus.io. Provision a valid TLS certificate for your self-hosted instance, or use http://localhost:<port> for local development.Pre-push hook is not running
Pre-push hook is not running
- Confirm installation:
kodus hook status. - Make sure
.git/hooks/pre-pushis executable. - Other hook managers (Husky, Lefthook, pre-commit) may overwrite
.git/hooks/pre-push. Either chain them or reinstall withkodus hook install --force. - The hook reviews only the branch you have checked out, and skips a new branch and a branch deletion. It also skips
git push origin HEAD, because Git passesHEADto the hook instead of the branch name. Push the branch by name:git push origin my-branch. - Skip the hook for a single push:
KODUS_SKIP_HOOK=1 git push.
A push is blocked by the pre-push hook
A push is blocked by the pre-push hook
--fail-on severity (critical by default), and also when the review itself fails, for example when the API can’t be reached. Read the message above Git’s “failed to push some refs” line. Use kodus hook status to see the severity, and reinstall with kodus hook install --fail-on error to change it.A push that doesn’t run in an interactive terminal, such as one from an IDE or a Git GUI, can’t open the Hunk viewer. The hook then shows the interactive list, which needs a terminal, and ends with “User force closed the prompt”. Any finding blocks that push, whatever the --fail-on severity. Push from a terminal, or skip the hook for that push with KODUS_SKIP_HOOK=1.Device limit reached
Device limit reached
CLI_DEVICE_LIMIT setting; 0, the default, means no limit).Exit Codes
Use these in scripts and CI pipelines.Error codes in agent mode
With--agent, a failure prints an envelope with ok: false and an error.code:
Debugging Tips
--verboseon any command prints each API request’s method and URL, and error details. Output goes to stderr.kodus schemaoutputs the machine-readable command schema, which helps when your agent reports a missing flag.--agentprints deterministic JSON on the commands that support it; combine with--fieldsto keep it small.
Getting Help
- Report bugs: github.com/kodustech/kodus-ai/issues
- Feature requests, configuration questions: your Kodus account manager, or
support@kodus.io. - For self-hosted deployments, include the output of
kodus statusand your CLI version (kodus --version) when filing an issue.