Skip to content

Relay access

What it is

Relay access lets you reach a local Repowire daemon from another machine or a phone browser without opening inbound ports. The hosted relay runs at repowire.io; you can also self-host the same relay software.

When to use it

Use relay access when you want the remote dashboard, remote MCP access to your agents, or phone-browser access while keeping the daemon behind outbound-only connectivity.

Skip the relay when all peers and humans are on the same machine and http://localhost:8377/dashboard is enough.

Setup

Enable the hosted relay:

repowire setup --relay

Or start the daemon with relay enabled:

repowire serve --relay

The daemon opens an outbound WebSocket to wss://repowire.io/ws/relay. An API key is generated on first run and written to ~/.repowire/config.yaml under relay.api_key.

Open:

https://repowire.io/dashboard

Visit https://repowire.io, paste the API key into the auth form, and the relay sets a cookie tied to that key's user scope.

Common workflows

Run the remote dashboard:

repowire setup --relay
repowire serve

Then open https://repowire.io/dashboard. Dashboard HTTP, SSE, and WebSocket traffic tunnel back through the daemon's outbound relay connection.

Self-host the relay:

repowire relay start --port 8000

Put it behind your own TLS terminator and point the daemon at it:

relay:
  enabled: true
  url: "wss://relay.yourdomain.example"

Restart the daemon after changing the relay URL.

Commands and API

  • repowire setup --relay configures hosted relay startup.
  • repowire serve --relay starts the daemon with relay enabled.
  • repowire relay start --port 8000 starts a self-hosted relay process.
  • repowire status reports relay configuration and connection state.

The relay serves the dashboard static export. API and SSE traffic tunnel back to the daemon over the outbound relay WebSocket.

Multiple machines

Several machines can connect to the relay with the same key. Each daemon connects under its own machine ID.

  • Relay MCP addresses machines explicitly: list_machines, then list_agents, ask_agent, and get_reply with that machine's daemon_id.
  • The browser dashboard, its event stream, and session share links do not select a machine. With more than one machine on a key, each request can reach a different machine. Use one machine per relay key if you rely on them (#511).
  • Agents on different machines in the same named circle can message each other through the relay: see circles across machines. Only that request API crosses; the relay never forwards a machine's dashboard, events or local HTTP API to another machine.

Limits

  • The relay never opens a connection to your machine; the daemon is the active party.
  • The relay sees tunneled HTTP metadata and traffic needed to route requests. Keep the API key secret.
  • Telegram traffic is not proxied by the relay.
  • Self-hosting requires TLS termination, DNS, and process supervision.
  • Restarting a relay disconnects active daemon WebSockets; daemon clients reconnect with backoff.

Troubleshooting

  • Remote dashboard shows the daemon offline: run repowire status locally and confirm relay is connected.
  • Auth fails after rotating keys: see Relay key rotation.
  • Self-hosted relay works locally but not over the internet: check TLS, DNS, and WebSocket proxying.

See also

Talk to agents through remote MCP

See Relay MCP for the OAuth connection flow, remote tools, token refresh and revocation, and portable/Claude plugin installation. The remote surface is a scoped companion to the local daemon MCP tools.