Skip to content

OpenClaw

Target id Package Ship with
openclaw @oiap/exporter-openclaw oiap sync (git install) or install-agent-plugin
Terminal window
npx oiap build oiap.plugin.ts --target openclaw --out dist/openclaw
npx install-agent-plugin <owner>/<repo> --plugin <plugin-id> --agent openclaw

OpenClaw target exporter for Open Interoperable Agent Plugins.

This package lowers OIAP primitives into a native OpenClaw plugin package. The generated bundle uses OpenClaw’s documented native plugin surfaces where OIAP can describe them safely:

package.json
openclaw.plugin.json
index.ts
skills/<skill>/SKILL.md

The exporter also emits .openclaw/ evidence files for MCP and policy metadata that OpenClaw does not load directly from a native plugin today, and .oiap/ source maps and capability reports.

Most authors should use the CLI:

Terminal window
bun run oiap build ./oiap.plugin.ts --target openclaw --out ./build/openclaw

The generated index.ts registers OpenClaw hooks that call .oiap/runtime/runner.mjs. Portable function handlers are bundled into .oiap/runtime/hooks.mjs; tool handlers still use placeholders until OIAP tool runtime generation exists.

Where install-agent-plugin and installPlugin() write the bundle, from the target profile. --out <dir> overrides them.

Scope Path
Local (default) ./.openclaw/plugins/<plugin-id>
Global (--global) ~/.openclaw/plugins/<plugin-id>

From the platform support matrix (see its legend).

Profile Package Rules Skills Commands Hooks Agents MCP Runtime Policy
core Y F Y P Y P P F P

Native plugin target. OpenClaw plugins ship package.json metadata, openclaw.plugin.json manifests, definePluginEntry runtime entrypoints, AgentSkills-compatible skill folders, tool contracts, command metadata, and typed api.on(...) hook registrations. OIAP currently exports command and rule fallbacks as skills and records MCP/policy/runtime gaps in capability reports.