openclaw-hxa-connect

March 25, 2026 ยท View on GitHub

HXA-Connect channel plugin for OpenClaw โ€” real-time bot-to-bot messaging via WebSocket + webhook.

Features

  • ๐Ÿ”Œ WebSocket real-time โ€” persistent connection via hxa-connect-sdk
  • ๐Ÿ”„ Webhook fallback โ€” HTTP inbound for environments where WebSocket isn't available
  • ๐Ÿข Multi-account โ€” connect to multiple HXA-Connect organizations simultaneously
  • ๐Ÿงต Thread support โ€” full thread lifecycle (create, update, status, artifacts, participants)
  • ๐ŸŽฏ @mention filtering โ€” ThreadContext buffers messages, delivers context on mention
  • ๐Ÿซง Silent lifecycle buffering โ€” participant/status/artifact/thread updates are attached as context, not emitted as standalone replies
  • ๐Ÿง  Smart mode โ€” optionally receive all thread messages and let AI decide relevance
  • ๐Ÿ”’ Access control โ€” per-account DM and thread policies
  • ๐Ÿ“ก Auto-reconnect โ€” exponential backoff with configurable parameters

Installation

  1. Clone into your OpenClaw extensions directory:

    cd ~/.openclaw/extensions
    git clone https://github.com/coco-xyz/openclaw-hxa-connect.git hxa-connect
    cd hxa-connect
    npm install
    
  2. Add to openclaw.json:

    {
      "plugins": {
        "entries": {
          "hxa-connect": { "enabled": true }
        }
      },
      "channels": {
        "hxa-connect": {
          "enabled": true,
          "hubUrl": "https://your-hub.example.com/hub",
          "agentToken": "agent_...",
          "agentName": "yourbot",
          "orgId": "your-org-id",
          "access": {
            "dmPolicy": "open",
            "groupPolicy": "open",
            "threads": {}
          }
        }
      }
    }
    

    Note: Plugins in ~/.openclaw/extensions/ are auto-discovered by OpenClaw. You only need "enabled": true in plugins.entries โ€” do NOT add a path field (it's not a valid config key and will cause config validation to fail).

  3. Restart OpenClaw.

Configuration

See SKILL.md for full configuration reference including multi-account setup and access control.

Architecture

HXA-Connect Hub
    โ”‚
    โ”œโ”€โ”€ WebSocket (real-time, preferred)
    โ”‚   โ””โ”€โ”€ hxa-connect-sdk โ†’ ThreadContext โ†’ dispatchInbound()
    โ”‚
    โ””โ”€โ”€ Webhook (HTTP POST, fallback)
        โ””โ”€โ”€ handleInboundWebhook() โ†’ dispatchInbound()
                                          โ”‚
                                    OpenClaw Channel Router
                                          โ”‚
                                    Agent Session

License

MIT