ReferenceCLI commands
BetaYou are reading docs for the beta channel (
2.4.1-beta.1) — updated automatically on every beta release.Switch to stable →CLI commands
ak agents
Per-agent management commands
List, install, remove, show, and search individual agents from any kit. Agents are the per-role markdown personas users install into the underlying agent runtime.
Who it's for: Both: power devs scripting installs (--json) and users browsing what's available.
When to use it: Use as the entry point for any per-agent operation; subcommands handle the action.
What changes on disk: Read-only at this group level; subcommands document their own effects.
Examples
ak agents list # show what's installed + available
ak agents search code # find agents matching a keyword
ak agents install engineer/researcher # install one agent
ak agents show engineer/researcher # inspect metadata
ak agents remove engineer/researcher # uninstallFlags
| Flag | Description |
|---|---|
-h, --help | help for agents |
--json | Emit machine-readable JSON (implies --no-interactive) |
--no-interactive | Disable interactive prompts (CI-safe) |
-q, --quiet | Suppress non-error output on stderr |
-V, --verbose | Extra diagnostic output on stderr (loses to --quiet) |
-y, --yes | Assume yes for all prompts |
Output modes
| Mode | Behavior |
|---|---|
pretty | default on TTY (colors, ASCII markers) |
plain | auto when stdout piped or --no-interactive |
json | --json (single-object envelope, NDJSON-safe) |
Exit codes
| Code | Meaning |
|---|---|
0 | success |
1 | runtime error |
2 | invalid flags |
3 | user-cancel (SIGINT, prompt-cancel) |
Related commands
ak— AgentKit CLIak agents install— Install a agentak agents list— List installed agentsak agents remove— Remove an installed agentak agents search— Search agentsak agents show— Show agent details