Docs

Krill CLI reference

krill is a single binary that talks to the session daemon (krilld) over a Unix socket. Every command works with the app closed.

Run these examples inside a local Git repository. Install and authenticate agents separately. When creating a worktree, review the repository setup commands or skip setup.

Quickstart

Install — /Applications/Krill.app + ~/.local/bin/krill
$ curl -fsSL https://krill.page/install.sh | bash
Health check · install agent hooks
$ krill doctor
$ krill hook install claude
Start an agent — no app needed
$ id=$(krill new --agent claude)
$ krill wait "$id" --for idle
$ krill read "$id" --lines 40
Attach from any terminal Ctrl-] detach
$ krill attach "$id"

Sessions

krill ls [--json]List sessions and their state
krill new [--cwd <path>] [--worktree <name>] [--agent <profile> | -- <program>…]Create a session running an agent profile or any program
krill send <id> [--enter] [--text <text>] [--stdin]Send input to a session
krill read <id> [--lines N]Read the screen and recent output
krill wait <id> --for idle|waiting|blocked|done|exited|pattern|quiet [--timeout <s>]Block until a state, regex pattern or quiet period
krill attach <id>Attach a regular terminal (Ctrl-] detaches)
krill kill <id>Terminate a session (HUP → TERM → KILL)
krill --host <user@host> lsDrive a supported Mac host over SSH
krill handoff --from <id> [--to-agent <agent>] [--prompt <text>]Hand a session's context to another agent

Worktrees & changes

krill worktree new <name> [--repo <path>] [--base <ref>] [--setup run|skip]Create a git worktree (optionally run repo setup)
krill worktree rm <path> [--force]Remove a worktree
krill changes [--repo <path>]List changed files
krill set --comment <text> | --workspace-status <…> | --pr <n>Worktree comment, status badge, PR/issue link
krill reference list | add <url> | remove <url> | find [query]Attach reference URLs to a session or worktree
krill portsLocal URLs and ports found in terminal output, with reachability

Orchestration

krill orchestration run-create --title <t>Create an orchestration run
krill orchestration task-create --run <r> --title <t> [--deps t1,t2]Add a task (DAG node) with dependencies
krill orchestration worker-start --run <r> [--task <t>] --worker <name> [--agent <a>] [--cwd <dir>] --prompt <text>Dispatch and boot a worker agent on a task
krill orchestration send | check [--wait] | ask | replyCoordinator ↔ worker messages, blocking ask/reply
krill orchestration gate-create --from <n> --question <q> [--options a,b]Open a human decision gate
krill orchestration gate-resolve <id> --decision <choice>Resolve a gate
krill orchestration worker-list | worker-read | worker-stopInspect, read and stop workers

Agents & hooks

krill hook install|uninstall claude|codex|agy|cursor|opencodeInstall status hooks — notifications, badges, Needs You
krill agent listDetected agent profiles
krill account list|switch|add|rmList, switch, add, and remove agent accounts
krill skills list|get|install <name>Install agent skills
krill schedule add <id> --cron '…' --prompt <text> -- <exe>Scheduled (UTC cron) agent runs
krill statusline [install|uninstall]Claude Code status line integration

Artifacts live

krill artifacts share <file> [--title <t>]Publish HTML/Markdown to share.krill.page
krill artifacts update|unshare <file>Update or withdraw the same link
krill artifacts list | delete <slug>List and delete your shares

Diagnostics & updates

krill doctor [--bundle | --json]Diagnose holder, krilld, socket and hooks; support bundle
krill update [--check] [--json]Check for and install updates (sessions stay alive)
krill history clearClear cold scrollback history
krill telemetry status|enable|disableTelemetry setting (on by default; disable with krill telemetry disable)
Install

Open Terminal on your Mac and paste this command.

curl -fsSL https://krill.page/install.sh | bash

Apple Silicon only · Includes the app and CLI. Intel Macs are not supported.

Before you install

Builds are not notarized by Apple; the installer verifies SHA-256 and code signatures before removing quarantine. Review the install script · GitHub Releases · Inspect first: curl -fsSL https://krill.page/install.sh -o /tmp/krill-install.sh && less /tmp/krill-install.sh

Installer

/install.sh fetches the release installer and runs it: ZIP SHA-256 check → codesign --verify --strict → in-place /Applications/Krill.app update → ~/.local/bin/krill symlink. Arguments pass through. Current macOS builds are not Developer ID notarized; the installer removes quarantine. Source installation builds the CLI and daemons only; the GUI requires separate bundling.

$ curl -fsSL https://krill.page/install.sh | bash
$ curl -fsSL https://krill.page/install.sh | bash -s -- --no-open

Intel Mac and Linux are not currently supported.

Connect a phone (PWA)

In Krill on Mac or Windows, open Settings → Mobile, pick a path (Relay · Tailscale), generate a QR code and scan it with your phone camera. Add the page to your Home Screen to use it like an app (not an app-store app). Traffic is end-to-end encrypted with ChaCha20-Poly1305.

Windows (x64)

Paste the command below into PowerShell to download the latest app, verify SHA-256, and install per user into %LOCALAPPDATA%\Programs\Krill — no admin rights. Builds are not Authenticode-signed yet, so SmartScreen may warn.

> irm https://krill.page/install.ps1 | iex