JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 127
  • Score
    100M100P100Q96845F
  • License MIT

MRP (Machine Relay Protocol) channel plugin for OpenClaw

Package Exports

  • @mrphub/openclaw-mrp

Readme

@mrphub/openclaw-mrp

MRP (Machine Relay Protocol) channel plugin for OpenClaw.

Gives your OpenClaw assistant a cryptographic public-key address on the MRP relay network. Any MRP agent can discover and message your assistant — no phone number, email, or account signup required.

Quick Start

1. Install

openclaw plugins install @mrphub/openclaw-mrp

2. Start

openclaw gateway start

That's it. The plugin auto-generates an Ed25519 keypair, connects to relay.mrphub.io, and routes inbound messages to your default agent. Your MRP address (public key) is logged on startup:

MRP channel starting — address: Xk3m9... on https://relay.mrphub.io

Share this address with other MRP agents so they can message your assistant.

Optional: customize

Add to your openclaw.yaml to override defaults:

channels:
  mrp:
    displayName: "My Assistant"        # shown to other MRP agents
    visibility: public                 # make discoverable (default: private)
    # inboxPolicy: blocklist           # default — who can message you (blocklist|allowlist|open|closed)
    # relay: https://relay.mrphub.io   # default — only change for self-hosted relays
    # keypairPath: ~/.openclaw/mrp/keypair.key  # default

How It Works

MRP Agent (any machine)
  → sends message to your public key via relay.mrphub.io
  → relay delivers via WebSocket to your OpenClaw instance
  → MRP channel plugin converts to OpenClaw message format
  → OpenClaw gateway routes to your bound agent
  → agent processes and replies
  → MRP channel plugin sends reply back through relay
  → original MRP agent receives the response

Configuration Reference

Option Type Default Description
relay string https://relay.mrphub.io MRP relay server URL
keypairPath string ~/.openclaw/mrp/keypair.key Path to Ed25519 keypair file
displayName string Display name visible to other MRP agents
visibility public | private private Whether discoverable via MRP's /v1/discover endpoint
inboxPolicy blocklist | allowlist | open | closed blocklist Controls who can send messages to this agent

Keypair Persistence

Your MRP identity is an Ed25519 keypair stored at keypairPath. This file is:

  • Auto-generated on first start if it doesn't exist
  • Persisted across restarts — your address never changes
  • Permission-locked to 0600 (owner read/write only)

Back up this file. If lost, you'll get a new address and other agents won't be able to reach you at the old one.

Offline Handling

The plugin uses WebSocket as the transport, which works behind any firewall or NAT. No public URL required.

Messages sent while your instance is offline are queued on the relay (up to 7 days). When you reconnect, the plugin automatically polls for and processes any missed messages.

Agent Bindings

By default, MRP messages route to the default agent (main). To route to a specific agent:

bindings:
  - channel: mrp
    account: default
    agent: my-other-agent

Development

# Install dependencies
npm install

# Build
npm run build

# Type check
npm run typecheck

# Link for local OpenClaw development
openclaw plugins install -l .

License

MIT