CLI Command Reference
Every Kasetto command: kst add, remove, lock, sync, list, doctor, init, clean, and self-update, with their flags and exit codes.
kst init
Generates a starter config file: local ./kasetto.yaml by default, or global config with --global.
Options
| Flag | Description |
|---|---|
--global | Write $XDG_CONFIG_HOME/kasetto/kasetto.yaml (or ~/.config/kasetto/kasetto.yaml) |
--force | Overwrite an existing config file without prompting |
kst add
Appends a source to your local kasetto.yaml and syncs it in, the cargo/uv-style way to grow a config without hand-editing YAML. Comments and formatting in the file are preserved; only the targeted lists gain a new entry.
Kind-tagged flags --skill, --mcp, --command, --instruction, --agent, and --plugin (each repeatable) name the entries to add. Because skills, MCPs, commands, instructions, subagents, and plugins are separate lists, a single add can write to several of them at once, which is handy for a repository that ships more than one kind. A lone * value (--skill "*") is a wildcard. With no kind flags, the source is added as skills: "*".
Deep browse URLs. Paste the URL you're looking at on GitHub/Gitea/GitLab, and add decomposes a blob/tree URL into the repository, ref, and sub-directory (and, for a SKILL.md link, the skill name):
writes:
A 40-char hex ref is pinned as ref:; any other ref (e.g. main) becomes branch: so --update keeps tracking it. Explicit --ref/--branch/--sub-dir override the derived pieces. For example, add a tree/ URL for the sub-dir and name the skills yourself with --skill.
Options
| Flag | Description |
|---|---|
--skill <name> | Skill to add (repeatable; * for all). Default kind when none given |
--mcp <name> | MCP to add (repeatable; * for all) |
--command <name> | Command to add (repeatable; * for all) |
--instruction <name> | Instruction to add (repeatable; * for all) |
--agent <name> | Subagent to add (repeatable; * for all) |
--plugin <name> | Plugin to enable (repeatable; * for all) |
--ref <ref> | Pin to a git tag, commit SHA, or ref (conflicts with --branch) |
--branch <branch> | Track a specific branch (conflicts with --ref) |
--sub-dir <dir> | Subdirectory inside the source to use as the root (skills/commands/instructions/subagents), or that holds a plugin marketplace |
--config <path> | Config file to edit (default: ./kasetto.yaml); must be a local file |
--no-verify | Skip the upfront fetch that validates the source resolves |
--no-sync | Edit the config without installing |
--dry-run | Preview the edit without writing the config or syncing |
--locked, --frozen | During the follow-up sync, never fetch; honor the lock |
--json | Print the edit summary as JSON |
-q, --quiet | Suppress non-error output (repeat for stricter silence) |
--color <when> | auto (default), always, or never |
--project | Sync into the current project |
--global | Sync globally (default) |
Before writing, add fetches the source once to confirm it resolves (and, for a named skill list, that the names exist). Skip that with --no-verify. Adding a source whose (source, ref/branch, sub-dir) identity already exists in a list is rejected; edit it directly or kst remove it first. MCP entries never carry sub-dir (the schema has none there). Remote configs (HTTPS) can't be edited in place.
The <SOURCE>@<REF> shorthand (cargo/uv-style) splits the trailing @<ref> off the positional and is equivalent to --ref <REF>. Passing both the shorthand and --ref/--branch is rejected. SSH (git@host:org/repo) and URLs with userinfo (https://user@host/repo) round-trip unchanged.
kst remove
Deletes entries from your local kasetto.yaml, then syncs so the now-unconfigured skills, MCPs, commands, subagents, and instructions are pruned from disk and the lock, and the now-unconfigured plugins are disabled. Aliased as kst rm.
remove mirrors add. The kind-tagged flags --skill, --mcp, --command, --instruction, --agent, and --plugin (each repeatable) subtract named entries from a list; when the last name goes, the whole entry is dropped. A lone * value drops that kind's entry outright. With no kind flags, the source is removed from every list it appears in.
Deep blob/tree browse URLs are accepted too. They resolve to the same repository-root source add would have written, so you can paste the URL you're looking at.
Options
| Flag | Description |
|---|---|
--skill <name> | Skill to remove (repeatable; * drops the whole skills entry) |
--mcp <name> | MCP to remove (repeatable; * drops the whole mcps entry) |
--command <name> | Command to remove (repeatable; * drops the whole commands entry) |
--instruction <name> | Instruction to remove (repeatable; * drops the whole instructions entry) |
--agent <name> | Subagent to remove (repeatable; * drops the whole agents entry) |
--plugin <name> | Plugin to remove (repeatable; * drops the whole plugins entry) |
--ref <ref> | Disambiguate by pinned ref when a URL appears more than once |
--branch <branch> | Disambiguate by tracked branch |
--sub-dir <path> | Disambiguate by sub-dir (or pass a deep blob/tree URL) |
--config <path> | Config file to edit (default: ./kasetto.yaml); must be local |
--no-sync | Edit the config without pruning installed assets |
--dry-run | Preview the edit without writing the config or pruning |
--locked, --frozen | During the follow-up sync, never fetch; honor the lock |
--json | Print the edit summary as JSON |
-q, --quiet | Suppress non-error output (repeat for stricter silence) |
--color <when> | auto (default), always, or never |
--project | Prune from the current project |
--global | Prune globally (default) |
Subtracting a name from a "*" wildcard entry is an error (there are no named entries to drop; use --<kind> "*" to remove the whole entry); so is naming a skill that isn't in the list. When several entries share a source URL, pass --ref or --branch to pick one. Entries inherited via extends: live in the parent config and must be removed there.
kst sync
Reads your config, fetches any remote skills, and brings your local install up to date.
Options
| Flag | Description |
|---|---|
--config <path-or-url> | Path or HTTPS URL to a YAML config (default order: $KASETTO_CONFIG, ./kasetto.yaml, source: in config.yaml, $XDG_CONFIG_HOME/kasetto/kasetto.yaml) |
--dry-run | Preview what would change without writing anything |
-q, --quiet | Suppress non-error output (repeat for stricter silence) |
--json | Print the sync report as JSON; its audit key carries the gate's verdict, or null when the gate did not run |
--color <when> | auto (default), always, or never |
-v, --verbose | Increase detail (-v, -vv, -vvv); per-skill action list at -v |
--audit [level] | After installing, fail the run if a skill or MCP is at or above level (low, medium, high, critical; default high). Overrides audit.fail-on |
--no-audit | Skip the security gate even when audit.fail-on is configured |
--fail-on-unverified | Fail closed: when the gate runs, an asset it cannot verify fails the run instead of only warning. Needs --audit or audit.fail-on; --no-audit still wins |
--project | Install into the current project directory |
--global | Install globally (default) |
Missing skills are reported as broken but won't stop the rest of the run: every other asset still syncs. The exit code is non-zero if anything ended up broken, so a partial sync fails CI rather than passing quietly.
When the security gate runs, the --json report gains an audit object: threshold, fail_on_unverified, violations (one {kind, name, source, level, provider} row per asset at or above the threshold, worst first), unverified (how many assets could not be fully verified), and passed. The gate's verdicts still print on stderr, and kst doctor lists a failed gate under failed assets until the next sync.
When a subagent is installed or updated and a target tool cannot carry some of its fields, the run prints one warning line per subagent and tool naming what was dropped, and --json lists them in a warnings array. See Subagents.
Plugins report as plugin:<plugin>@<marketplace>. Sync installs no plugin files: it declares the marketplace and enables the plugin in each tool's settings, and Claude Code or the Copilot CLI installs it at its next session start. See Plugins.
kst lock
Re-resolves every source and pins it into kasetto.lock without installing to your agent directories, the equivalent of cargo generate-lockfile / uv lock. Like sync --update, it re-resolves moving refs (branches and the default HEAD).
Options
| Flag | Description |
|---|---|
--config <path-or-url> | Path or HTTPS URL to a YAML config (same default order as sync) |
--json | Print the result as JSON |
--check, --locked, --frozen | Verify the lock matches the config without writing; exit 1 on drift |
-P, --upgrade-package <name>... | Only re-resolve sources providing these skills (mirrors sync --update <name>...) |
-q, --quiet | Suppress non-error output (repeat for stricter silence) |
--color <when> | auto (default), always, or never |
--project | Lock the project scope (./kasetto.lock) |
--global | Lock the global scope (default) |
Skills are hashed from the materialized source tree. Because a skill installs as a verbatim copy, that hash equals the one a later sync computes at the destination, so after kst lock a plain kst sync --locked succeeds with zero fetches. Inline MCP entries need no fetch, so lock pins them fully. Source-based MCP, command, instruction, subagent, and plugin entries can't be hashed without applying their merge/transform, so lock only refreshes their resolved revision pins. When a pin moves, lock clears that entry's content hash, so the next real sync fetches the new ref and fills it in; until then sync --locked refuses those entries rather than trusting content it never saw. Any source that fails to resolve aborts the lock before writing.
kst list
Prints a uv-style table of installed assets from the lock file: name, scope, and source per row.
Options
| Flag | Description |
|---|---|
--type <kind> | all (default), skills, mcps, commands, instructions, agents, or plugins |
--json | Output as JSON |
-q, --quiet | Suppress output (unless --json is set) |
--color <when> | auto (default), always, or never |
--project | Only read the project lock (./kasetto.lock) in the current directory |
--global | Only read the global lock (under XDG data) |
With no --project or --global, Kasetto merges both scopes so you can see global and project installs together. Each row includes a scope column. The --json shape always includes top-level skills, mcps, commands, instructions, agents, plugins, and merged_scopes keys; --type filters the contents of each list but never drops the key.
kst audit
Reports a security verdict for every installed skill, MCP, subagent, and plugin in the scope's lock. It is read-only: nothing on disk or in the lock changes.
- Skills take the verdicts skills.sh publishes from several independent partners (Snyk, Socket, Gen Agent Trust Hub, and others). They often disagree, so the row shows the worst one and
--verboselists each. These verdicts describe the source repository, not the commit your lock pins, and onlygithub.comsources are indexed; anything else shows asnot on skills.sh. - MCPs are judged from the definition installed in your agent's config. Kasetto checks it offline for risky launch options, then looks up the npm or PyPI package it runs on OSV, which also lists known malicious packages, and on deps.dev for whether it is deprecated and how its source repository scores on the OpenSSF Scorecard.
- Subagents are listed but always unverified (
no audit source for agents): skills.sh verdicts belong to one skill, not to the repository that ships it, so nothing judges an agent file. They never breach a--fail-onthreshold and fail the run only under--fail-on-unverified.--jsonlists them in anagentsarray. - Plugins are listed the same way, always unverified (
no audit source for plugins): a plugin can run hooks and MCP servers, and no provider judges a marketplace plugin. They fail the run only under--fail-on-unverified.--jsonlists them in apluginsarray
| MCP check | Severity | Flags |
|---|---|---|
pipe-to-shell | critical | A shell -c script that downloads a script and pipes it into a shell |
docker-socket, host-root-mount | critical | A container that mounts the Docker socket or the host's / |
insecure-transport | high | A remote server reached over plain http:// (loopback is exempt) |
tls-verification-disabled | high | NODE_TLS_REJECT_UNAUTHORIZED=0 or PYTHONHTTPSVERIFY=0 in its environment |
privileged-container, host-namespace, added-capability | high | --privileged, --network/--pid/--ipc host, or --cap-add ALL/SYS_ADMIN |
inline-shell | medium | Any other inline shell script as the launch command |
unpinned-package, unpinned-image | low | npx/uvx/pnpm dlx/... without an exact version, or an image without a tag or digest |
| OSV advisory | from the advisory | A known vulnerability in the pinned package version |
OSV MAL- entry | critical | A known malicious package, pinned or not |
deprecated | low / medium | The pinned version is deprecated (low), or the latest version is, so the package is abandoned (medium) |
low-scorecard | low / medium | The source repository scores below 5 (low) or below 3 (medium) on the OpenSSF Scorecard |
unmaintained | low | The source repository fails the Scorecard Maintained check |
Verdict summaries never echo env values, headers, URL paths, or scripts, because the installed definition already has its secrets resolved.
Options
| Flag | Description |
|---|---|
NAME... | Only audit these skills, subagents, plugins, MCPs, or MCP packs (default: all) |
-v, --verbose | Show every provider's verdict, not only the worst |
--fail-on <level> | Exit non-zero if any asset is at or above low, medium, high, or critical |
--fail-on-unverified | Exit non-zero if any asset could not be verified; works with or without --fail-on |
--refresh | Bypass the 24h cache and re-fetch every verdict |
--json | Output as JSON |
-q, --quiet | Do not print anything (unless --json); --fail-on still sets the exit code |
--color <when> | auto (default), always, or never |
--project | Audit the project lock (./kasetto.lock) |
--global | Audit the global lock (default) |
The summary line sorts every asset into exactly one of three buckets. flagged is any asset with a verdict at medium or above, even if another lookup for it failed, safe is a fully verified asset whose worst verdict is safe or low, and unverified is everything else the audit could not fully judge: no audit yet, a non-github.com skill source, a lookup that failed, or an audited asset with a lookup unavailable tail or no usable verdict. An unverified asset never counts as safe. It also never trips --fail-on on its own; --fail-on-unverified is the opt-in that makes it fail the run, and it also counts a flagged asset with a failed lookup, since the missing verdict could be worse (kst audit reads only the flag, not the config). The same two switches drive the gate that kst sync --audit and audit.fail-on run after installing; see Configuration. The --json summary carries the three buckets plus unaudited and errors, which break unverified down by outcome. Lookups are cached for 24h under $XDG_CACHE_HOME/kasetto/audits/; KASETTO_NO_CACHE bypasses the cache and kst clean clears it.
kst doctor
Prints a local health check: your version, lock file location, install paths, last sync time, and any skills that failed. It exits non-zero when it reports issues (failed assets, or locked skills missing on disk), so kst doctor works as a CI gate; -q runs the same checks and sets the same exit code without printing.
It also reports untracked entries, assets sitting in a Kasetto-managed install path that the lock file does not track: stray skills, command files, subagent files, per-directory instruction rules, orphaned instruction blocks left in a shared CLAUDE.md/AGENTS.md, and MCPs in an agent's settings file. This is purely advisory and read-only. Kasetto never deletes files it does not own, and the check never changes the exit code.
It also prints advisory warnings that never change the exit code, such as a configured tool that has no subagent support (windsurf has no subagent support; agents are skipped for it). With plugins configured it adds a Plugins inventory row, and its warnings cover a configured tool with no declarative plugin install, a locked plugin no longer enabled in a settings file (kst sync restores it), a marketplace declared by hand with a different source (Kasetto leaves it alone), and when the tool will actually install the plugin: at its next session start (/reload-plugins), and at project scope only once each user trusts the folder. --json carries them under plugins and plugin_drift.
Options
| Flag | Description |
|---|---|
--json | Output as JSON |
-q, --quiet | Do not print anything (unless --json) |
--color <when> | auto (default), always, or never |
--project | Show project-scoped diagnostics |
--global | Show globally-scoped diagnostics (default) |
kst clean
Removes everything Kasetto installed for the given scope: skills, commands, subagents, MCP configs, instructions, and lock file entries. For plugins it removes only the enabledPlugins keys and marketplace entries Kasetto wrote (plugins_removed in --json); Claude Code keeps its own clone and cache, see Plugins. It also drops the machine-local runtime state and the cached audit lookups, so the next kst audit asks every provider again.
Options
| Flag | Description |
|---|---|
--dry-run | Preview what would be removed (lists skill paths and MCP packs) |
--json | Print output as JSON |
-q, --quiet | Suppress non-error output |
--color <when> | auto (default), always, or never |
--project | Clean project-scoped assets |
--global | Clean globally-scoped assets (default) |
kst self
Manage Kasetto itself: update to a new version or remove it completely.
kst self update
Fetches the latest release from GitHub, verifies the SHA256 checksum against checksums.txt from the same release, and swaps out the binary in-place.
Options
| Flag | Description |
|---|---|
--json | Output as JSON |
Update Notifications
Kasetto prints a yellow New version available: x.y.z → a.b.c line at the end of any command when a newer release exists on GitHub. The check runs in a background thread at most once every 24 hours and stores the result under $XDG_CACHE_HOME/kasetto/update-check.json (default: ~/.cache/kasetto/update-check.json).
The notice is suppressed when:
- output is
--json,--color never, or--quiet - the command emits machine-readable content (
completions,self update) - stdout is not a TTY (e.g. piped to a file)
kst self uninstall
A full teardown: removes installed skills, commands, subagents, instructions, and MCP configs, removes the plugin keys Kasetto wrote from each settings file, clears Kasetto's data directories, and deletes the binary.
Options
| Flag | Description |
|---|---|
--yes | Skip the confirmation prompt (required in non-interactive use) |
kst completions
Generates completion scripts for your shell.
Supported shells: bash, zsh, fish, powershell.