@dcprotocol/relay
Encrypted transport relay for remote DCP agents.
Hosted Relay
The hosted relay is:
wss://relay.dcp.1ly.storeMost users should use the hosted relay through Desktop and the remote install command.
What The Relay Does
- Routes encrypted envelopes between Desktop and remote agents.
- Tracks active vault and agent connections.
- Stores short-lived pairing claims and pending relay state.
- Does not receive wallet private keys.
- Does not need plaintext vault records.
Self Hosting
Only self-host if you are operating your own DCP environment.
npm install -g @dcprotocol/relay
dcp-relay --host 0.0.0.0 --port 8422Requires Node.js 22.
Options
| Option | Use |
|---|---|
--host | Host to bind. |
--port | Port to listen on. |
--debug | Enable debug logging. |
--rate-limit | Requests per minute. |
Operational Note
Remote invite registration is relay state. If a relay restarts before pairing completes, create a fresh Desktop invite before pairing a VPS.