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 install

Install a agent

Resolve a agent by <kit>/<agent> and copy it into the user-level install location. If the asset declares a runtime block and skill runtime is not opted out, the per-asset env is created via the runtime manager.

Who it's for: Power devs scripting (--yes --json) and users picking from list/search output.

When to use it: After confirming the agent exists with ak agents show.

What changes on disk: Writes files under ~/.claude/plugins/<kit>/. Unless AGENTKIT_SKILL_RUNTIME=0, runtime-bearing assets also write ~/.agentkit/skills/<kit>/<name>/ and ~/.agentkit/cache/<hash>/.

Usage

ak agents install <kit>/<agent> [flags]

Examples

ak agents install engineer/agent-browser
ak agents install engineer/agent-browser --force
ak agents install engineer/agent-browser --yes --json

Flags

FlagDescription
--forceOverwrite existing install
-h, --helphelp for install
--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)
5agent not found
6already installed (re-run with --force)
  • ak agents — Per-agent management commands

On this page