openclaw - 💡(How to fix) Fix Design input needed: cross-gateway messaging primitive for distributed OpenClaw deployments [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#72639Fetched 2026-04-28 06:33:46
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
1
Timeline (top)
commented ×1cross-referenced ×1subscribed ×1

There is no native primitive in OpenClaw today for sending a message from an agent on one gateway to an agent on a different gateway. sessions_send and related session-routing tools are gateway-local. Bridging two OpenClaw deployments today requires operator-built ad-hoc transport (HTTP between gateway RPC endpoints, custom tool plugins, generic external channels) — there is no canonical pattern.

Filing this to surface the architectural gap and invite community design input. We are explicitly not proposing a fix. There are real trade-offs (auth, transport, protocol, blast radius) and the right shape isn't obvious.

Root Cause

Multi-OC topologies show up naturally:

  • Multi-machine / VM — different OC instances per host, agents on each want to coordinate across.
  • Multi-tenant separation — per-team or per-user OC instances for isolation, but with cross-team workflows.
  • Sidecar specialist OC — one OC carries a heavy or specialized plugin (e.g. deep-observability tooling, a different model provider) and the main OC wants to delegate "investigate this" / "diagnose this" / "hand-off this user" messages to it, then receive results back.
  • Shared backend, separate front-ends — see #72016 for the exact scenario where one VM runs two gateways for family-member separation; cross-coordination would extend the same pattern to messaging.

Each of these requires the operator to invent their own bridge today. Each invention is independent, bespoke, and security-sensitive.

Fix Action

Fix / Workaround

  • Not a feature request — no specific implementation is being asked for.
  • Not a bug — single-gateway operation is correct and intentional today.
  • Not a tooling request — workarounds exist; we're asking about the canonical primitive.
RAW_BUFFERClick to expand / collapse

Summary

There is no native primitive in OpenClaw today for sending a message from an agent on one gateway to an agent on a different gateway. sessions_send and related session-routing tools are gateway-local. Bridging two OpenClaw deployments today requires operator-built ad-hoc transport (HTTP between gateway RPC endpoints, custom tool plugins, generic external channels) — there is no canonical pattern.

Filing this to surface the architectural gap and invite community design input. We are explicitly not proposing a fix. There are real trade-offs (auth, transport, protocol, blast radius) and the right shape isn't obvious.

Why this matters

Multi-OC topologies show up naturally:

  • Multi-machine / VM — different OC instances per host, agents on each want to coordinate across.
  • Multi-tenant separation — per-team or per-user OC instances for isolation, but with cross-team workflows.
  • Sidecar specialist OC — one OC carries a heavy or specialized plugin (e.g. deep-observability tooling, a different model provider) and the main OC wants to delegate "investigate this" / "diagnose this" / "hand-off this user" messages to it, then receive results back.
  • Shared backend, separate front-ends — see #72016 for the exact scenario where one VM runs two gateways for family-member separation; cross-coordination would extend the same pattern to messaging.

Each of these requires the operator to invent their own bridge today. Each invention is independent, bespoke, and security-sensitive.

What works today

  • Native sessions_send only within a single gateway.
  • Operator-built bridges:
    • HTTP bridge — agent on OC-A uses exec + curl to call OC-B's gateway RPC. Works, but every agent has to know the protocol and credentials.
    • Custom plugin tool — wraps the HTTP call as a registered OpenClaw tool. Cleaner per-agent surface, but bespoke and per-deployment.
    • Shared external channel — both OCs subscribe to the same chat platform or pub/sub bus. Works, but adds an external dependency, may be slow or lossy, and the message contract is the external channel's, not OpenClaw's.

None of these are wrong. None of them are standard.

The trade-off that makes this hard

A native cross-gateway primitive would standardize identity, auth, retries, and the message envelope — but it would also:

  • Open a new attack surface (one OC reachable from another → blast-radius implications under compromise).
  • Force a transport choice (direct ws? https? p2p? broker?).
  • Possibly conflict with what looks today like a "one gateway, one trust boundary" mental model.

So this isn't a "just add it" issue. It's a "how should this look, if it's added at all" issue.

Open questions for the community

  1. Is there demand for this from real deployments? We hit it the moment we ran two OC instances side-by-side. Would be curious whether others do.
  2. What's the right transport? Direct gateway-to-gateway, or always through a broker / shared service? Push-based or pull-based?
  3. What's the auth / identity model? Mutual API keys, mTLS, OIDC, capability tokens? How does the receiving agent know "this message came from OC-A's agent X" with confidence?
  4. What's the addressing scheme? Resolve gateway-host/agent-id directly, or via a registry / discovery service?
  5. Does this belong in core OpenClaw, or in a plugin? Plugin keeps core small but loses standardization. Core surface guarantees a contract but expands surface area.
  6. Is there a published pattern from other multi-agent / agent-to-agent frameworks (A2A protocol drafts, MCP server-to-server, distributed swarm patterns, etc.) worth borrowing?

What this issue is not

  • Not a feature request — no specific implementation is being asked for.
  • Not a bug — single-gateway operation is correct and intentional today.
  • Not a tooling request — workarounds exist; we're asking about the canonical primitive.

Repro / use case

Two OpenClaw instances on the same host: one main, one in a separate sandboxed stack with a different plugin set. Want an agent on Main to delegate an investigation to a specialist agent on the sandbox-side OC, then receive the result back as a usable response. Doable today with HTTP + curl glue, but no standard pattern exists. The same shape generalizes to multi-machine deployments.

extent analysis

TL;DR

The issue can be addressed by designing and implementing a native cross-gateway primitive for sending messages between OpenClaw agents on different gateways, considering factors like transport, authentication, and addressing scheme.

Guidance

  • Identify the requirements and constraints for the cross-gateway communication, including security, scalability, and compatibility with existing OpenClaw features.
  • Explore existing patterns and protocols for multi-agent communication, such as A2A protocol drafts or distributed swarm patterns, to inform the design of the native primitive.
  • Consider the trade-offs between implementing the primitive in core OpenClaw versus a plugin, weighing the benefits of standardization against the potential increase in surface area.
  • Develop a proposal for the native primitive, including the chosen transport, authentication model, and addressing scheme, and solicit feedback from the community.

Example

No code example is provided, as the issue is focused on designing a new feature rather than fixing a specific implementation.

Notes

The implementation of the native cross-gateway primitive will require careful consideration of security, scalability, and compatibility with existing OpenClaw features. The community's input and feedback will be crucial in shaping the design and ensuring that the solution meets the needs of various use cases.

Recommendation

Apply a workaround, such as using HTTP bridges or custom plugin tools, until a native cross-gateway primitive is designed and implemented, as this will allow for continued functionality while the community works towards a standardized solution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Design input needed: cross-gateway messaging primitive for distributed OpenClaw deployments [1 comments, 2 participants]