Sandbox-based agents (e.g., relationships agent) running in Docker containers cannot reach the gateway API because:
- Gateway binds to 127.0.0.1 (loopback)
- Container's 127.0.0.1 refers to itself, not the host
- network: host is blocked by OpenClaw security
- Tools like message, sessions_send require gateway access to work
This prevents sandbox agents from:
⢠Sending messages
⢠Calling other agents
⢠Using any gateway-provided functionality
Current workarounds:
⢠Use exec.host: gateway (less secure â gives agent full host access)
⢠Delegate to main agent for messaging (requires agent-to-agent communication which also needs gateway)
Related issues- #14061 (gateway connectivity:
for containers)
⢠#34121 (network namespace sharing)
⢠#8296 (browser bridge localhost fix)
Use case: Running sandboxed agents for untrusted users (friends messaging via WhatsApp) who need the agent to respond media (via message tool) â but sandbox can't reach gateway to send replies.