# Krill CLI Reference & Quickstart — Sessions, Worktrees & Multi-Agent Orchestration

> Complete command-line reference for the krill binary: persistent AI coding sessions, Git worktrees, multi-agent task DAGs, hooks, and share.krill.page.

Canonical: https://krill.page/en/docs
Summary: https://krill.page/llms.txt
Full Reference: https://krill.page/llms-full.txt
Last-Modified: 2026-12-01

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
Sessions
Worktrees & changes
Orchestration
Agents & hooks
Artifacts
Diagnostics & updates

### 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

macOS
Windows
Mobile

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](https://krill.page/install.sh) · [GitHub Releases](https://github.com/craftowen/krill/releases/latest) · 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 | iex

Windows x64 · No admin rights needed. Unsigned builds may trigger a SmartScreen warning.

### Before you install

[Review the PowerShell script](https://krill.page/install.ps1) · [GitHub Releases](https://github.com/craftowen/krill/releases/latest) · 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](https://krill.page/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
```
