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
$ curl -fsSL https://krill.page/install.sh | bash
$ krill doctor $ krill hook install claude
$ id=$(krill new --agent claude) $ krill wait "$id" --for idle $ krill read "$id" --lines 40
$ krill attach "$id"
Sessions
krill ls [--json]List sessions and their statekrill new [--cwd <path>] [--worktree <name>] [--agent <profile> | -- <program>…]Create a session running an agent profile or any programkrill send <id> [--enter] [--text <text>] [--stdin]Send input to a sessionkrill read <id> [--lines N]Read the screen and recent outputkrill wait <id> --for idle|waiting|blocked|done|exited|pattern|quiet [--timeout <s>]Block until a state, regex pattern or quiet periodkrill 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 SSHkrill handoff --from <id> [--to-agent <agent>] [--prompt <text>]Hand a session's context to another agentWorktrees & 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 worktreekrill changes [--repo <path>]List changed fileskrill set --comment <text> | --workspace-status <…> | --pr <n>Worktree comment, status badge, PR/issue linkkrill reference list | add <url> | remove <url> | find [query]Attach reference URLs to a session or worktreekrill portsLocal URLs and ports found in terminal output, with reachabilityOrchestration
krill orchestration run-create --title <t>Create an orchestration runkrill orchestration task-create --run <r> --title <t> [--deps t1,t2]Add a task (DAG node) with dependencieskrill orchestration worker-start --run <r> [--task <t>] --worker <name> [--agent <a>] [--cwd <dir>] --prompt <text>Dispatch and boot a worker agent on a taskkrill orchestration send | check [--wait] | ask | replyCoordinator ↔ worker messages, blocking ask/replykrill orchestration gate-create --from <n> --question <q> [--options a,b]Open a human decision gatekrill orchestration gate-resolve <id> --decision <choice>Resolve a gatekrill orchestration worker-list | worker-read | worker-stopInspect, read and stop workersAgents & hooks
krill hook install|uninstall claude|codex|agy|cursor|opencodeInstall status hooks — notifications, badges, Needs Youkrill agent listDetected agent profileskrill account list|switch|add|rmList, switch, add, and remove agent accountskrill skills list|get|install <name>Install agent skillskrill schedule add <id> --cron '…' --prompt <text> -- <exe>Scheduled (UTC cron) agent runskrill statusline [install|uninstall]Claude Code status line integrationArtifacts live
krill artifacts share <file> [--title <t>]Publish HTML/Markdown to share.krill.pagekrill artifacts update|unshare <file>Update or withdraw the same linkkrill artifacts list | delete <slug>List and delete your sharesDiagnostics & updates
krill doctor [--bundle | --json]Diagnose holder, krilld, socket and hooks; support bundlekrill update [--check] [--json]Check for and install updates (sessions stay alive)krill history clearClear cold scrollback historykrill telemetry status|enable|disableTelemetry setting (on by default; disable with krill telemetry disable)Open Terminal on your Mac and paste this command.
curl -fsSL https://krill.page/install.sh | bashApple 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
Open PowerShell and paste this command.
irm https://krill.page/install.ps1 | iexWindows x64 · No admin rights needed. Unsigned builds may trigger a SmartScreen warning.
Before you install
Review the PowerShell script · GitHub Releases · Inspect first: Invoke-WebRequest https://krill.page/install.ps1 -OutFile $env:TEMP\krill-install.ps1; Get-Content $env:TEMP\krill-install.ps1
Linux is not currently supported.
Public desktop releases are available for Apple Silicon macOS and Windows x64.
Open the pairing QR code in Krill on Mac or Windows, then scan it with your phone.
Connect in your phone browser. Add it to the Home Screen to use it like an app.
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