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

Flags

FlagDescription
-h, --helphelp for agents
--jsonEmit machine-readable JSON (implies --no-interactive)
--no-interactiveDisable interactive prompts (CI-safe)
-q, --quietSuppress non-error output on stderr
-V, --verboseExtra diagnostic output on stderr (loses to --quiet)
-y, --yesAssume yes for all prompts

Output modes

ModeBehavior
prettydefault on TTY (colors, ASCII markers)
plainauto when stdout piped or --no-interactive
json--json (single-object envelope, NDJSON-safe)

Exit codes

CodeMeaning
0success
1runtime error
2invalid flags
3user-cancel (SIGINT, prompt-cancel)

On this page