We're on OpenClaw 2026.4.20, Windows 11 host, OpenClaw deployed as a Docker Compose stack (build: .), gateway running in a Linux container.
We're building a three-tier agent architecture:
Tier 1 — main user-facing agent (inside container)
Tier 2 (orchestrator) — coordinates operational commands (inside container)
Tier 3 (HostOps) — intended host-side agent with Docker access, handles container lifecycle (restart, rebuild, upgrade)
Our upgrade skill scripts need to run docker compose up --build, docker exec, git fetch/checkout — all requiring host-level access. A few questions before we finalize the design:
- Can an agent run outside the gateway container? Is there a supported pattern for a host-side agent node in 2026.4.20, or do all agents always execute within the gateway container's exec environment?
- Docker access from inside the container — if HostOps must run inside, is bind-mounting /var/run/docker.sock the expected pattern, or is there a native OpenClaw mechanism?
- Subagent exec context — when an orchestrator spawns HostOps via sessions_spawn and it runs a script via exec, is execution always in the gateway container, or can it target a different exec context?
- Is there a first-class "host node" concept in 2026.4.20 that an agent can target for exec — separate from the gateway container?
Our fallback is bind-mounting the Docker socket, but want to know if there's a cleaner native pattern first.