ocm-self-hosted
Skill59 starsChanged 6 months agoApache-2.0View on GitHub
Plan, implement, or review local/operator/self-hosted OpenClaw Machines work without leaking secrets or smuggling hosted-only assumptions into public core.
In this repository3 other files it gives its agents.
- ocm-debuggingSkill
- ocm-reviewSkill
- ocm-testingSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill for local profile, operator profile, host enrollment, self-hosted deployment, Cloudflare Worker/KV, Firebase, Cloudflare …
- Distinctive: line 36
Start with discovery. Inspect branch, dirty state, env examples, docs, and config without printing secrets.
- Distinctive: line 41
Ask before changing live Cloudflare, DNS, Tunnel, Worker, KV, Firebase, Cloudflare Access, host enrollment, or running services.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
OCM Self-Hosted
Use this skill for local profile, operator profile, host enrollment, self-hosted deployment, Cloudflare Worker/KV, Firebase, Cloudflare Access, domain, cookie, and public-core portability work.
Read First
AGENT.md.docs/control-plane-profiles.md.docs/self-hosted-control-plane.md.docs/local-setup.md.docs/local-firecracker-e2e.mdfor single-box KVM flow.llms/self-hosted-setup.txtfor operator-oriented setup..agents/maintainer-notes/routing.md..agents/maintainer-notes/runtime.md.
Profile Contract
local: trusted localhost development. Dev auth may be enabled. Do not expose publicly.operator: self-hosted production-like deployment on operator-managed infrastructure. It should preserve the hosted architecture: edge protection, control plane, OCM session token, Worker/KV data plane, enrolled KVM workers, and Firecracker VMs.hosted: hosted/operator profile. Do not introduce private Mathaix defaults into public core.
Workflow
- Start with discovery. Inspect branch, dirty state, env examples, docs, and config without printing secrets.
- Identify operator inputs: domains, auth mode, Cloudflare account/zone/KV, Worker routes, control-plane URL, cookie domain, artifacts, and KVM hosts.
- Produce a redacted plan listing resources to create, update, or leave alone.
- Ask before changing live Cloudflare, DNS, Tunnel, Worker, KV, Firebase, Cloudflare Access, host enrollment, or running services.
- Implement neutral public-core primitives only. Leave private hosted policy, billing, and commercial admin behavior out of this repo.
- Validate with the smallest smoke that matches the change:
login,
/api/auth/me,ocm_token, host online, machine create/start, route resolution, terminal/gateway, optional SSH, stop/delete.
Review Checks
- Worker origin hosts must be distinct backend origins, not routed hostnames served by the same Worker.
- Cookie domains must work for operator domains and omit localhost domains.
/api/internal/resolvemust be protected by service-token or equivalent operator controls in production-like deployments.- Worker and backend config examples must not encourage routing loops.
- No-tunnel local routes still need persisted VM signing keys.
- Worker hosts are infrastructure and must use enrollment/agent tokens, not Firebase human auth.
Output Habit
Report:
- profile and deployment shape assumed
- operator inputs used or missing
- files/config touched
- commands/proof run
- live infrastructure actions skipped or performed
- remaining deployment risks
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

