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 run

Run a skill via the configured agent adapter

Resolve <kit>/<skill> against the kits directory and dispatch the invocation to the configured AgentAdapter. Streams stdout/stderr in pretty or NDJSON form. Honors SIGINT for clean cancellation and --timeout for hard caps.

Who it's for: Power devs scripting agent invocations; non-technical users via the matching dashboard surface.

When to use it: When you want to actually run a skill end-to-end. Use after ak kit list-kits to confirm the target exists; pair with --json for scripted consumers (CI, dashboards).

What changes on disk: Read-only on the kit content; the underlying adapter may write to its own working directory (e.g. .agentkit/cache/). The run command itself does not mutate.

Usage

ak run <kit>/<skill> [args...] [flags]

Examples

ak run engineer/scout                  # default adapter, pretty output
ak run engineer/scout --json | jq .    # scripted consumption
ak run engineer/scout --timeout 30s    # hard timeout
ak run engineer/scout --target codex   # route through Codex CLI Stream

Flags

FlagDescription
-h, --helphelp for run
--jsonEmit machine-readable JSON (implies --no-interactive)
--kits-dir stringKits directory (default: ./kits or $AGENTKIT_KITS_DIR)
--no-interactiveDisable interactive prompts (CI-safe)
-q, --quietSuppress non-error output on stderr
--target stringAdapter to dispatch to: claude-code | codex (default "claude-code")
--timeout durationPer-invocation timeout (e.g. 30s, 2m). Zero disables timeout.
-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)
4unmet dependency (missing skill env or backend binary)
5kit or skill not found
  • ak — AgentKit CLI

On this page