moltbox-gateway is the control-plane and CLI repo for the Moltbox appliance.
This repo is the local source of truth for the current Gateway/OpenClaw operating model. Older remram docs are useful history, but they do not override this repo for Gateway implementation and operations.
Repository boundary:
moltbox-gatewayowns CLI, procedures, verification, and recovery workflowsmoltbox-servicesowns baseline service definitions and baseline config examplesmoltbox-runtimeholds the final deployable runtime artifacts consumed by the current release path
Follow the repo in this order:
docs/README.mddocs/guides/README.mddocs/design/README.mddocs/ai-context/README.md
Use the dated material under docs/decisions/, docs/reviews/, docs/plans/, and docs/runbooks/ only after the current guides and design docs.
Read these in order:
docs/guides/operator-guide.mddocs/guides/service-catalog.mddocs/design/README.mddocs/design/system-overview.mddocs/design/cli-and-gateway.mddocs/design/runtime-and-services.mddocs/design/backup-and-recovery.mddocs/design/host-and-operations.mddocs/design/web-tooling.md
Use these after the current docs:
docs/decisions/2026-04-04-openclaw-operating-model.mddocs/runbooks/2026-04-04-zfs-rebuild-ssh-takeover-runbook.mddocs/reviews/README.mddocs/plans/README.md
Import these first:
docs/ai-context/README.mddocs/ai-context/overview.mddocs/ai-context/current-state.mddocs/ai-context/future-state.mddocs/ai-context/operator-workflows.mddocs/ai-context/cortex-implementation-thread-prompt.mdif you are starting a Cortex implementation thread
Then add the task-specific context:
docs/ai-context/cli-gateway.mddocs/ai-context/runtime-services.mddocs/ai-context/host-ops.md
Public CLI:
moltbox
bootstrap gateway
gateway status|logs|update|repo-sync services|runtime|all|mcp-stdio
service list|status|deploy|restart|remove|logs <service>
test openclaw <native args>
test verify runtime|browser|web|sandbox
prod openclaw <native args>
prod verify runtime
ollama <native args>
secret set|list|delete <scope>
Current managed services:
gatewaycaddyollamasearxngdev-sandboxtestprod
Service authority:
- baseline service inputs and service docs live in
moltbox-services - the current deploy path still consumes final runtime artifacts from
moltbox-runtime
Runtime service mapping:
- public
test->openclaw-test - public
prod->openclaw-prod
Core operating model:
testandprodare managed-pet OpenClaw runtimesdev-sandboxis an image-backed service that supplies the sibling Docker sandbox image used by the non-defaultcoderagent path- normal runtime mutation happens through native
openclawCLI surfaces - routine runtime verification happens through
moltbox test verify ...andmoltbox prod verify runtime - routine repo promotion for service/runtime source happens through
moltbox gateway repo-sync services|runtime|all - replay and checkpoint are not part of the normal
test/prodlifecycle - service deploy, service restart, and mutating native runtime commands are snapshot-guarded
- ZFS snapshots are the first restore-point mechanism
- OpenClaw native backup create and verify are in use; native restore is not yet a proven primary recovery path
- baseline web capability is
web_search+ built-inweb_fetch - native
memory-coreis disabled in the default local lane - the previous Playwright detour is removed from the intended baseline and service inventory
- ordinary local chat is reliable for short answers, but web-tool choice through chat still needs human judgment on noisy pages
The dated docs under docs/reviews/ and docs/plans/ are retained as decision history and execution records.
Treat them as historical evidence, not as the current operator contract.