You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Align runtime posture with openclaw: process-first default, sandbox as opt-in #42
jsclaw already aligns with openclaw on terminology (agentId, #36), wire shape, identity files, skills, and bindings. The remaining divergence is runtime posture:
jsclaw inherited nanoclaw's container-first default; openclaw is process-first with sandboxing as the explicit hardening step. Now that local mode exists, the question is whether jsclaw should flip to openclaw's posture.
Proposed alignment
Default to local/process mode when no container engine is detected (or outright, like openclaw) — npx jsclaw gateway works on a clean machine with zero setup.
Adopt openclaw's sandbox config shape rather than our runtime-flavored naming: something like sandbox: { mode: "off" | "all" | "non-main", runtime: "docker" | "podman" } per agent or global, replacing/wrapping containerRuntime. Per-agent sandboxing (main trusted on host, others contained) is openclaw's most useful pattern and jsclaw can't express it today — ours is all-or-nothing.
Onboard wizard asks the sandbox question explicitly, with the trade-off spelled out, instead of assuming docker.
The trade-off to decide deliberately
Flipping the default trades nanoclaw's safety posture for openclaw's convenience. An autonomous agent (heartbeat, scheduled tasks, untrusted input) on the host runs as the user — that's the no-isolation warning from #38 becoming the default experience. Mitigation: per-agent sandbox config (point 2) means the dangerous configurations (autonomous + untrusted) can still demand a container, and docs/wizard push that hard.
Breaking changes are still cheap (v0.0.x, no users). Depends on #38 (shipped). Related: jsclaw/docs#2 should document whichever posture wins.
Activity