一键导入
ocm-operator
OCM/OpenClaw envs: create, clone, upgrade, runtimes, services, logs, cleanup.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
OCM/OpenClaw envs: create, clone, upgrade, runtimes, services, logs, cleanup.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | ocm-operator |
| description | OCM/OpenClaw envs: create, clone, upgrade, runtimes, services, logs, cleanup. |
Use OCM as the control plane for OpenClaw. Treat an OCM environment as the
isolation boundary: it owns OPENCLAW_HOME, state, config, workspace, gateway
port, runtime/launcher binding, and service policy.
Prefer OCM commands over raw OpenClaw commands whenever the task touches:
Run OpenClaw inside an env with:
ocm @<env> -- <openclaw args>
Use ocm env exec <env> -- <command> only when you need a non-OpenClaw command
inside the env, such as env, node, or shell tooling.
ocm env list
ocm service status
ocm runtime list
ocm help start
ocm help env
ocm help runtime
ocm help service
ocm help logs
ocm help upgrade
For detailed command patterns, read
references/command-cookbook.md.
For destructive operations, service boundaries, or real user state, read
references/safety-and-state.md before acting.
For this machine's common paths and release-test defaults, read
references/local-paths.md.
ocm start <env> --runtime <runtime>
or ocm start <env> --version <version>.ocm start <env> --runtime <runtime> first;
use --onboard only when testing interactive onboarding specifically.ocm dev <env> --repo <repo>.
Do not use this as proof of release packaging.ocm runtime build-local <runtime> --repo <repo> --force, then test envs
against that runtime.ocm @<env> -- ....ocm logs <env>.ocm service status/start/stop/restart.ocm env destroy <env> --yes; this removes env snapshots,
OCM service policy, and OCM-created dev worktrees.Violet and Shaks as durable state.
Clone first for testing unless the user explicitly asks to mutate them.ocm env destroy.ocm service.OPENCLAW_SERVICE_REPAIR_POLICY=external for env-run
OpenClaw processes, so openclaw doctor --fix should repair normal env
state but skip OpenClaw-owned service lifecycle repair.ocm dev, pnpm openclaw, or a source worktree as release
validation. For release behavior, build and use a package runtime.Finish by exercising the relevant command path. Prefer these checks:
ocm env list
ocm service status <env>
ocm logs <env> --tail 100
ocm @<env> -- --version
ocm @<env> -- status
ocm @<env> -- doctor --fix
Add plugin/model/TUI checks when the task touches plugins, model auth/catalog, onboarding, or gateway connectivity:
ocm @<env> -- plugins list
ocm @<env> -- plugins update --all --dry-run
ocm @<env> -- models list
ocm @<env> -- tui
Keep reports quiet and useful:
Use this failure shape:
Failure:
- Command: `<exact command>`
- Expected: <expected state>
- Actual: <observed state/output>
- Impact: <why it matters>
- Likely owner: OCM | OpenClaw | test setup | external dependency
- Paste to fixer: <short actionable summary>