Ship with oiap sync
Most agent hosts install plugins straight from a git repository:
claude plugin marketplace add owner/repocodex plugin marketplace add owner/repocopilot plugin marketplace add owner/repogemini extensions install <url>agy plugin install <url>They read their own manifest and component files from the default branch, so
those files have to be committed there. oiap sync generates them from your
OIAP definition, the same way a lockfile or generated client is committed next
to its source.
bunx @oiap/cli sync # reads oiap.plugin.ts, writes host files, commit the resultbunx @oiap/cli sync --check # CI: exit 1 if the committed files are out of dateWith @oiap/cli installed in the project, npx oiap sync does the same.
Which targets
Section titled “Which targets”oiap sync writes every target in the manifest’s supportedTargets that
installs from git: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot CLI,
VS Code Copilot, OpenClaw and Antigravity. Pass --target to choose a subset:
npx oiap sync --target claude-code,codexCline, Windsurf and OpenCode install into a project; ship them with install-agent-plugin.
Layout
Section titled “Layout”- Hosts that only install the repository root (Gemini CLI, Antigravity,
OpenClaw) go at the root and share files such as
skills/when their copies match. - Other hosts share the root when no host would load another host’s files, and
move to
plugins/<target>/otherwise.--layout pluginsalways usesplugins/<target>/for them.
npx oiap sync --layout pluginsWhat it writes
Section titled “What it writes”- Each host’s plugin files.
- The marketplace catalogs that point each host at its plugin:
.claude-plugin/marketplace.json,.agents/plugins/marketplace.json,.cursor-plugin/marketplace.json,.github/plugin/marketplace.json. .oiap/sync.json, which records the generated files so later syncs remove stale ones.
It never overwrites a file it did not write unless you pass --force, and it
leaves your README.md alone. Versions come from manifest.version, so every
host manifest stays in lockstep.
Caveats
Section titled “Caveats”- OpenClaw needs its own
package.jsonand entry file at the repository root. If your repository already has apackage.json, sync stops rather than overwrite it; leave OpenClaw out with--target, or publish it from a separate repository. - Gemini CLI installs the latest GitHub Release instead of the default branch when a repository has releases. Keep releases off a plugin repository that targets Gemini CLI, or attach the full tree to them.
- Updates: bump
manifest.versionwhen you release. Codex, Antigravity, and Claude Code (when the manifest has a version) only update installed plugins when it changes.
Output
Section titled “Output”oiap sync prints one line per target with its location and status, then any
issues:
claude-code: repository root (ok)With --check, it writes nothing and lists missing, changed or stale files:
Generated plugin files are out of date. Run `oiap sync` and commit the result:It exits with status 1 when a target is unsupported, when sync hits an error,
or, with --check, when files are out of date. --json prints a
machine-readable summary.
Keep it in sync in CI
Section titled “Keep it in sync in CI”Add the OIAP GitHub Action to run
oiap sync --check on every pull request.
All flags: CLI reference.