Plugins
Enable Claude Code plugins in Claude Code and Copilot CLI from kasetto.yaml - Kasetto declares the marketplace, the tool installs the plugin.
Kasetto can enable plugins from a Claude Code plugin marketplace. Unlike every other section of
kasetto.yaml, this one installs no files: Kasetto declares the marketplace under
extraKnownMarketplaces and turns each plugin on under enabledPlugins in the tool's settings
file, and the tool clones the marketplace and installs the plugin itself at its next session start.
Kasetto never copies plugin files, so the plugin keeps the tool's own update, cache, and uninstall
behavior.
Two tools read these keys today: Claude Code and the GitHub Copilot CLI.
Config
| Key | Required | Description |
|---|---|---|
source | yes | Git host URL or local path of a repository holding .claude-plugin/marketplace.json |
branch | no | Branch to track, written to the tool as ref |
ref | no | Tag (or branch) to pin, written to the tool as ref; takes priority over branch. Avoid a commit SHA, see Caveats |
sub-dir | no | Directory inside the source that holds .claude-plugin/marketplace.json, when it is not the repository root (sub_dir alias supported) |
plugins | yes | "*" for every plugin in the marketplace, or a list of plugin names |
A plugin name is the name of its entry in marketplace.json, which is the key the tool enables,
even when the plugin's own plugin.json says something else. Unlike skills and subagents, there is
no { name, path } form: the marketplace already says where each plugin lives. A name the
marketplace does not list is reported as broken, with the names it does list, and a source without a
.claude-plugin/marketplace.json is broken too.
kst add <source> --plugin <name> and kst remove <source> --plugin <name> edit the list for you,
kst list --type plugins shows what is enabled, and extends: merges plugins sources by the same
identity as every other list.
What Kasetto Writes
For the first entry above, Kasetto fetches cursor/plugins once, reads its marketplace name from
.claude-plugin/marketplace.json, and merges this into ~/.claude/settings.json:
Every other key in the file is left alone, and an existing entry for the same marketplace keeps the
fields the tool added to it, such as autoUpdate.
The plugin id is <plugin>@<marketplace>, and the marketplace name always comes from the name in
marketplace.json, never from the URL: both tools key a declared marketplace by that name, and
the extraKnownMarketplaces key must match it. cursor/plugins is named cursor-plugins, so the id is
pstack@cursor-plugins. This is why Kasetto fetches the source at least once, even though the tool
does the install: it needs the name, it validates the plugin names you listed, and it hashes each
plugin into the lock.
Source Mapping
The source object Kasetto writes depends on where the marketplace lives:
Config source | Written source object |
|---|---|
A github.com repository | {"source": "github", "repo": "<owner>/<repo>"} |
| Any other git host | {"source": "git", "url": "<source as written in the config>"} |
| A local path | {"source": "directory", "path": "<absolute path>"}, resolved against the config file's directory |
refcarries the config'sref, or itsbranchwhen there is noref, verbatim. With neither,refis omitted and the tool tracks the repository's default branchsub-dirbecomes"path": "<sub-dir>/.claude-plugin/marketplace.json"for a git source; for a local path it is joined into the directorypathitself- The tool clones a
githuborgitmarketplace with your own git credentials (credential helpers, SSH keys). Kasetto's host tokens only cover its own fetch ofmarketplace.json
Supported Tools
Global paths are relative to $HOME, project paths to the project root.
| Tool | Global settings file | Project settings file | Docs |
|---|---|---|---|
| claude-code | ~/.claude/settings.json | .claude/settings.json | Claude Code |
| github-copilot | ~/.copilot/settings.json | .github/copilot/settings.json | Copilot CLI |
The Copilot CLI reads the same two keys with the same shape, documented as "declarative plugin auto-install", and installs a Claude-format marketplace as is (plugin reference). VS Code is covered through it: VS Code discovers the plugins the Copilot CLI installed.
Tools Without Declarative Plugin Install
Every other tool is skipped for plugins. kst doctor lists a configured one as an advisory warning
without changing its exit code. Several of these tools have a plugin system, and some even read
Claude marketplaces, but none has a file Kasetto can write that makes the tool fetch and install a
Claude marketplace plugin by itself.
| Tool | Why not | Docs |
|---|---|---|
| amp | Plugins are TypeScript or JavaScript programs run by Bun, a different kind of plugin | Amp |
| antigravity | Installs through agy plugin install or a hand-placed plugin with a root plugin.json; no enablement file. agy plugin import claude is a one-off migration | Antigravity |
| augment | Reads Claude marketplaces and enabledPlugins, but only from a marketplace already cloned under ~/.augment/plugins/marketplaces/; the settings never trigger a fetch | Augment |
| cline | Plugins are TS/JS modules or Agent Plugins packages placed on disk; there is no enable key and no Claude format | Cline |
| codex | Reads Claude marketplaces, but config.toml enables only a plugin already cloned and cached; installing takes codex plugin marketplace add and codex plugin add, and github-source entries are skipped | Codex |
| continue | No plugin or bundle concept; hub blocks are referenced one by one in config.yaml | Continue |
| cursor | No documented settings file installs a marketplace plugin: the project key is described only on the forum and user scope has none. Cursor does import plugins Claude Code installed, from ~/.claude/plugins/marketplaces/, while "Include Third-Party Plugins, Skills, and Other Configs" is on | Cursor |
| gemini-cli | Extensions are a Gemini-only format, either placed on disk or installed with gemini extensions install | Gemini CLI |
| goose | Open Plugins placed under ~/.agents/plugins/ or cloned by goose plugin install without a ref; no Claude manifest support | Goose |
| junie | Reads Claude marketplaces through extensions.json, but its git source has no ref field, and whether it fetches uncached extensions on start is undocumented | Junie |
| kiro-cli | Powers are Agent Plugins or POWER.md packages installed with kiro-cli powers install; no config file | Kiro |
| openclaw | Reads Claude bundles and marketplaces, but installs only through openclaw plugins install, recording machine state rather than config | OpenClaw |
| opencode | Plugins are npm or git JS modules listed in opencode.json, a different kind of plugin | OpenCode |
| openhands | Reads Claude plugins, but the CLI and GUI load only directories already on disk; a self-fetching marketplace registration exists only for the agent server | OpenHands |
| pi | packages in its settings install at startup, but a pi package bundles extensions, skills, prompts, and themes, not a Claude plugin | Pi |
| replit | No plugin concept; skills and account-level MCP only | Replit |
| roo | Discontinued, and the repository is archived | Roo Code |
| trae | A curated in-app marketplace with UI-only install and no custom sources | Trae |
| warp | No plugin system for its own agent; skills and MCP only | Warp |
| windsurf | Devin Desktop uses Devin's plugins: the user list lives in Devin Cloud behind a login, and the project requiredPlugins key is contradicted by Devin's own config reference | Devin |
| zcode | Uses the same key names (plugins.extraKnownMarketplaces, plugins.enabledPlugins), but a declaration never triggers a download; installing takes the UI or zcode plugins install | ZCode |
Ownership
kasetto.lock records exactly what Kasetto wrote, as two kinds of entry:
plugin: one per enabled plugin, keyedplugin::<source>::<name>, with theplugin@marketplaceid, every settings file it was enabled in, and a content hash (the marketplace entry, plus the plugin's tree when it lives inside the marketplace repository, as pstack does)plugin-marketplace: one per marketplace Kasetto declared, keyedplugin-marketplace::<source>, with the marketplace name, a hash of thesourceobject it wrote, and only the settings files it declared it in
Before writing to a settings file, Kasetto checks what that file already declares under the marketplace name:
- Nothing: Kasetto declares the marketplace and records it
- The entry Kasetto wrote (the lock's hash still matches): Kasetto updates it
- An entry you added by hand with the same source: Kasetto uses it and enables the plugins, but never records it, so it never removes it either
- An entry with a different source: Kasetto never overwrites it. Every plugin from that config
entry is reported broken (
marketplace `X` is already declared in <path> with a different source; Kasetto does not overwrite it) and nothing is written for it. That includes an entry another configured source declared under the same marketplace name
The same rule covers a plugin's own enabledPlugins key. A key you set before Kasetto owned it is
left alone: a true is used as is and never claimed, so pruning leaves it, and a false is never
flipped, so the plugin is
reported broken (turned off by hand in <path>) until you change or remove the key.
If the marketplace is renamed upstream, the next fetch retires the old plugin@old and
extraKnownMarketplaces.old keys Kasetto wrote and writes the new ones. A settings file Kasetto
cannot parse marks that source's plugins broken and is left untouched, while the rest of the sync goes
on.
Pruning and Clean
Drop a plugin from the config, or run kst clean, and Kasetto removes only what it recorded: the
enabledPlugins keys first, then its own extraKnownMarketplaces entries, each only while its
source still hashes to what Kasetto wrote. An entry whose source you changed since is left in
place, and a map left empty is dropped from the file. If a settings file cannot be edited (for
example, it no longer parses), the lock keeps its record so the next sync or clean can retry, and
the plugin is reported broken instead of removed.
A source that cannot be read on a run, such as a missing or malformed marketplace.json, keeps the
plugins it already enabled rather than pruning them, and an invalid plugin name in the marketplace
skips that one entry instead of failing the rest.
A sync also repairs drift without the network: if you delete a locked plugin's enabledPlugins key
by hand, the next kst sync writes it back from the lock. To turn a plugin off for good, remove it
from the config.
Caveats
- A local marketplace is machine-specific. For a
source:that is a local directory, Kasetto writes its absolute path into the settings file and hashes that path into the lock, because Claude Code needs a resolvablepath. Keep a local marketplace to personal or global scope; in a project that commitskasetto.lockand.claude/settings.json, each machine rewrites both. Point shared setups at a git source instead - Settings keys come back sorted. Kasetto rewrites the settings file with its keys in
alphabetical order, so the first plugin sync can reorder an existing
.claude/settings.json. Values are unchanged and later syncs leave the order alone, but review that first diff knowing why it is larger than the two keys Kasetto added - No commit SHA pins. Kasetto writes the config's tag or branch as
refand never a resolved commit, because Claude Code before 2.1.324 passesreftogit clone --branch, so a commit SHA fails silently and the plugin disappears from the session. Kasetto still records the resolved revision in the lock. Aref:you set to a SHA yourself (orkst add <source>@<sha>) is written as is, so keep plugin sources on a tag or a branch unless every user runs Claude Code 2.1.324 or later. Branch refs were verified on Claude Code 2.1.311; tags take the samegit clone --branchpath - Updates are the tool's. Kasetto leaves
autoUpdateto the tool, which keeps it off by default for third-party marketplaces, so an installed plugin stays on the version the tool installed. A plugin moves when thesourceKasetto writes changes (for example, you bumprefto a new tag and sync), which makes Claude Code re-fetch the marketplace, or when you runclaude plugin marketplace update. On a branch,kst sync --updaterefreshes the lock but writes the samesource, so the tool's clone does not move on its own. Claude Code also keeps a cached plugin until its manifestversionchanges. The Copilot CLI ignoresautoUpdatein a repository settings file - Project scope. Claude Code applies a project
.claude/settings.jsononly after you accept the folder's trust dialog, and silently ignores it in an untrusted folder. A plugin that lives inside the marketplace repository (pstack) then loads, but a plugin whose marketplace entry points at another repository is never fetched from a committed file: each user still runsclaude plugin install <plugin>@<marketplace> --scope project. The Copilot CLI also reads project.claude/settings.json, so with bothclaude-codeandgithub-copilotconfigured it sees the same plugin declared twice, with identical entries - First session. The tool installs at session start, in the background. The plugin is not in a
session that was already open, and may not be in the next one until the install finishes: run
/reload-pluginsor restart. A headlessclaude -pwaits for it withCLAUDE_CODE_SYNC_PLUGIN_INSTALL=1 - Key order. Kasetto rewrites the settings file with its keys in alphabetical order and two-space
indentation, as it does for MCP configs. Values and unknown keys are kept; only the order moves.
Claude Code's own
claude plugincommands also rewrite the file when they change it - Audit.
kst auditand the sync gate list plugins, always as unverified (no audit source for plugins): a plugin can run hooks and MCP servers, and no provider judges a marketplace plugin. They never breach a severity threshold and fail only underfail-on-unverified - Silent without a target. With
plugins:configured but neitherclaude-codenorgithub-copilotinagent:, sync does nothing for plugins and prints nothing about it;kst doctorwarns about each configured tool that cannot take them