clawpacker
Guide for using the clawpacker CLI to export, import, inspect, and validate portable OpenClaw agent packages. Use this skill whenever the user wants to migrate, share, clone, package, export, import, restore, or move an OpenClaw agent between instances. Also use when the user mentions clawpacker, .ocpkg, agent portability, agent templates, workspace packaging, or asks how to transfer an OpenClaw agent to another machine or environment. Even if the user just says "package my agent" or "move this agent" or "set up a new instance from an existing agent" — this skill applies. --- # Clawpacker — OpenClaw Agent Portability CLI clawpacker exports the portable parts of an OpenClaw agent workspace into a `.ocpkg` package and imports that package into another OpenClaw setup. This is template portability, not full-instance backup. **CLI command:** `clawpacker` (via `npm install -g @cogineai/clawpacker`) **From source:** `node dist/cli.js` (after `npm install && npm run build` in the clawpack repo) ## Core Workflow The standard workflow has four steps. Always follow this order when doing a full migration: ``` inspect → export → import → validate ``` You can skip `inspect` if time is tight, but never skip `validate` after import. --- ## 1. Inspect — Assess Portability Before Export Inspect analyzes a workspace and reports what is portable, what gets excluded, and what needs attention. Run it to preview before committing to an export. ```bash clawpacker inspect \ --workspace <source-workspace-path> \ --config <openclaw-config-path> \ --agent-id <agent-id> \ --json ``` | Flag | Required | Description | |------|----------|-------------| | `--workspace <path>` | Yes | Source workspace directory | | `--config <path>` | No | OpenClaw config path (auto-discovered if omitted) | | `--agent-id <id>` | No | Override which agent to extract from config | | `--json` | No | Output machine-readable JSON instead of text | **What the report tells you:** - Which workspace files will be included -
Changelog: Source: GitHub https://github.com/cogine-ai/clawpack
No comments yet. Be the first one!