agentleFS
mathaixmathaix/OpenClawMachines/.agents/skills/ocm-self-hosted/SKILL.md

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.

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
  1. Distinctive:

    Use this skill for local profile, operator profile, host enrollment, self-hosted deployment, Cloudflare Worker/KV, Firebase, Cloudflare …

    line 8
  2. Distinctive:

    Start with discovery. Inspect branch, dirty state, env examples, docs, and config without printing secrets.

    line 36
  3. Distinctive:

    Ask before changing live Cloudflare, DNS, Tunnel, Worker, KV, Firebase, Cloudflare Access, host enrollment, or running services.

    line 41

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.md for single-box KVM flow.
  • llms/self-hosted-setup.txt for 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

  1. Start with discovery. Inspect branch, dirty state, env examples, docs, and config without printing secrets.
  2. Identify operator inputs: domains, auth mode, Cloudflare account/zone/KV, Worker routes, control-plane URL, cookie domain, artifacts, and KVM hosts.
  3. Produce a redacted plan listing resources to create, update, or leave alone.
  4. Ask before changing live Cloudflare, DNS, Tunnel, Worker, KV, Firebase, Cloudflare Access, host enrollment, or running services.
  5. Implement neutral public-core primitives only. Leave private hosted policy, billing, and commercial admin behavior out of this repo.
  6. 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/resolve must 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.