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 kit
Kit management commands
ak kit groups the commands for working with AgentKit content kits — discovery, validation, installing and building, install-path lookup, and cleanup.
When to use it: Use it as the entry point whenever you work with kits directly: list bundled or overridden kits with ak kit list-kits, schema-check local kit.yaml files with ak kit validate, install or build a kit, resolve where a kit installs with ak kit install-path, or remove one with ak kit uninstall. This group level is read-only; the individual subcommands document their own on-disk effects.
Examples
ak kit list-kits # show bundled or overridden kits
ak kit validate kits/ # schema-check local kit.yaml files
ak kit init engineer --remote --target claude-code --switch-to-plugin # authenticated project plugin
ak kit init engineer --remote --target codex # authenticated Codex install
ak kit init engineer --kits-dir ./kits --target codex # explicit local development source
ak kit init engineer --remote --switch-to-plugin --yes --json --no-interactive # scripted project install
ak kit refresh engineer --remote --yes # refresh a paid registry kit
ak kit install-path engineer --json # resolve install destination
ak kit uninstall engineer --dry-run # preview safe uninstallFlags
| Flag | Description |
|---|---|
-h, --help | help for kit |
--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 kit init— Install or build a kitak kit install— Install a kit into the current project or adapter user directoryak kit install-path— Print the resolved OS install path for a kitak kit list-kits— List available content kitsak kit refresh— Refresh an installed kit and remove stale generated filesak kit repair-install-mode— Repair mixed Claude Code native and project-plugin stateak kit uninstall— Remove an installed kit pluginak kit validate— Validate kit.yaml files in a kits directory