JSPM

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

MRP (Machine Relay Protocol) channel plugin for OpenClaw

Package Exports

  • @mrphub/openclaw-mrp

Readme

@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 @openclaw/mrp

Or for local development:

cd extensions/openclaw-channel-mrp
openclaw plugins install -l .

2. Configure

Add to your openclaw.yaml:

channels:
  mrp:
    relay: https://relay.mrphub.io     # default
    displayName: "My Assistant"        # shown to other MRP agents
    visibility: public                 # discoverable on the network

3. Restart OpenClaw

openclaw start

On first start, an Ed25519 keypair is auto-generated and saved to ~/.openclaw/mrp/keypair.key. Your MRP address (public key) is logged:

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

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

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 public Whether discoverable via MRP's /v1/discover endpoint

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

Route MRP messages to a specific OpenClaw agent:

bindings:
  - channel: mrp
    account: default
    agent: main

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