Skip to Content
Kipivo Docs

CLI reference

Enroll a local runner and dispatch, watch, and review workspace runs from your terminal.

Sign in

kipivo login --api-url https://your-kipivo.example enrolls the local runner. Run kipivo auth login separately to authorize your user session in a browser. It uses the runner's endpoint by default if no user session or explicit API URL is configured. Both accept --no-open to print the browser address and code.

kipivo auth status checks the user session. Revoke it with kipivo auth logout or from Account Security → Sessions. kipivo logout or kipivo logout --all removes both local credentials and attempts to revoke them on the server. Use --runner-only or --user-only to select one. Stop the daemon before removing runner credentials.

Manage the local runner

CommandBehavior
kipivo linkLink the current Git checkout using its origin and default branch.
kipivo link --scan <dir> [--depth <n>] [--dry-run]Find and batch-link local Git repositories. Preview the candidates with --dry-run. The default depth is two.
kipivo unlink [<project-id> | --path <dir> | --all]Remove a binding locally and on the server. With no argument, use the current repository. Stop the daemon first. Use --local-only while offline.
kipivo daemon [--executor <name>] [--label <label>...]Run the daemon in the foreground.
kipivo service <install|uninstall|start|stop|restart|status>Manage the macOS LaunchAgent or Linux systemd user unit. Set the executor and repeatable labels on service install. Install starts the service.
kipivo init [--force]Scaffold a repository's .kipivo.toml. Use --force to replace the existing file.
kipivo validate [--path <dir>] [--dry-run]Parse the checkout's configuration. Use --dry-run to explicitly execute its check commands locally with runner timeouts.
kipivo worktrees list|pruneInspect managed worktrees or remove safe orphans with the daemon stopped. prune --force can discard changes in orphaned worktrees. Active runs and Git-locked worktrees are protected.
kipivo status, kipivo doctor, kipivo logs --followInspect local state, run redacted diagnostics, or follow daemon logs.
kipivo hooks, kipivo awayManage terminal hooks and away mode. Use --help for options.
kipivo completions <bash|zsh|fish>Write a shell completion script to stdout.
kipivo backup export --workspace <id> --output <file>Export a workspace archive through separate browser authorization.

Dispatch and review from the terminal

Run kipivo workspaces list to find workspace IDs and kipivo workspaces use <id> to set a saved default. --workspace <id> takes precedence over KIPIVO_WORKSPACE_ID. With neither override, the CLI uses the selected project's workspace or the linked checkout's workspace, then your saved default or personal workspace.

kipivo run "Update the status page" --watch
kipivo runs list --status awaiting_review --limit 10
kipivo runs show <run-id> --json
kipivo runs checks <run-id>
kipivo runs diff <run-id> --stat
kipivo runs diff <run-id>
kipivo runs approve <run-id> --keep-branch
kipivo runs reject <run-id> -m "Add a regression check"

Outside a linked checkout, pass --project <id>. Choose an executor or model with --executor and --model. --flow accepts run, analyze_then_do, and wait_for_go. Repeat --label <label> to require routing labels. Use --bot <id-or-name> to dispatch via a bot. Cloud bots use their configured model and executor. Routing labels apply to runner bots. kipivo runs watch <run-id> follows an existing run. Use runs cancel and runs retry to manage its lifecycle.

Use --confirm-truncated after reviewing a truncated diff. You can pin the reviewed commit with runs approve --head-sha <sha>. Without --keep-branch, approval applies the project's merge strategy.

Approvals and bots

  • kipivo approvals list --pending lists pending workspace approvals. approvals show <id> displays details. Use approvals approve <id> [--keep-branch] [--allow] [--confirm-truncated] or approvals reject <id> [-m <note>] [--block]. --allow and --block save exact-target rules for supported actions. Open agent questions, plan reviews, and takeover requests in Kipivo Web or Desktop.
  • kipivo bots list lists workspace bots. bots show <id-or-name> displays details and recent messages. bots send <id-or-name> "<message>" --watch follows the spawned run or bot reply.

Use --json for machine-readable query results. Watch commands emit one JSON event per line. Interactive login guidance and diff-preview warnings use stderr where applicable.

On this page