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 kit init

Install or build a kit

Load a kit (e.g. engineer, marketing) and emit its content via one or more target adapters. INSTALL writes runtime-native project content by default; --switch-to-plugin selects a Claude Code project plugin; --build-only writes without installing.

Who it's for: Both: power devs (scripted via flags) and non-tech users (interactive wizard on TTY).

When to use it: After ak licenses confirms access to a paid kit. Run when you want the kit's agents, skills, and commands available locally for adapters (e.g. Claude Code and Codex).

What changes on disk: Project-native mode merges AgentKit-owned resources into ./.claude and stores lifecycle metadata under ./.agentkit. Unknown and user-modified files are preserved. --switch-to-plugin writes a project plugin; --global writes native user-runtime files; --force authorizes tracked overwrite after a snapshot.

Usage

ak kit init <kit-name> [flags]

Examples

ak kit init engineer --yes --no-interactive # remote registry is the release default
ak kit init engineer --local --kits-dir kits/ --yes # dev/CI explicit source
ak kit init engineer --target claude-code                    # entitled project-native Claude Code install
ak kit init engineer --remote --target claude-code --switch-to-plugin # entitled Claude Code project plugin
ak kit init engineer --remote --target codex                     # authenticated Codex project install
ak kit init engineer --remote --target codex --global            # install under ~/.codex
ak kit install engineer --skills ak-cook,ak-plan --yes  # install selected skills
ak kit install engineer --exclude-skills ak-video --yes # exclude selected skills
ak kit init engineer --remote --switch-to-plugin --yes --json --no-interactive # scripted project install
ak kit init engineer --local --kits-dir kits/ --global --yes --no-interactive # native install from explicit source
ak kit init engineer --local --kits-dir kits/ --target claude-code --yes # project-native install from explicit source
ak kit init engineer --kits-dir kits/ --build-only --out /tmp/out --json # local development build

Flags

FlagDescription
--build-onlyBuild plugin to a local directory instead of installing
--channel stringRemote registry channel (beta requires explicit opt-in) (default "stable")
--exclude-skills stringComma-separated skill names to skip while installing the rest of the kit
--forceOverwrite existing output directory
-g, --globalInstall into the adapter user directory instead of the current project
-h, --helphelp for init
--jsonEmit machine-readable JSON (implies --no-interactive)
--kits-dir stringExplicit local kits directory for --local or local build development
--localInstall from an explicit --kits-dir or AGENTKIT_KITS_DIR source instead of the remote registry (dev/CI)
--no-backupSkip the pre-install snapshot + ClaudeKit takeover on a global install (power users only — leaves CK content active)
--no-interactiveDisable interactive prompts (CI-safe)
--out stringOutput root directory (requires --build-only)
-q, --quietSuppress non-error output on stderr
--registry-url stringAgentKit registry base URL (default: $AGENTKIT_REGISTRY_URL, then dev/staging https://staging.agentkit.best or release https://agentkit.best)
--remoteInstall from the authenticated remote registry (default; explicit use will be deprecated soon) (default true)
--select-skillsInteractively choose kit skills before install
--skills stringComma-separated skill names to install from the kit
--switch-to-pluginExplicitly select Claude Code project plugin mode (and replace native mode when present)
--target stringEmitter target ID or comma-separated IDs (e.g. claude-code,codex) (default "claude-code")
-V, --verboseExtra diagnostic output on stderr (loses to --quiet)
--version stringRemote kit version (defaults to channel latest)
-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)
5kit not found in --kits-dir
6target directory exists without --force
  • ak kit — Kit management commands

On this page