mayros remote-control

Start a WebSocket server that allows controlling a Mayros session from another device such as a phone, tablet, or web browser. The server generates a random access code for basic authentication.

Options

OptionDescription
--port <port>Server port (default: 3456)
--host <host>Bind host (default: 0.0.0.0)

Server details

  • HTTP endpointhttp://<host>:<port> serves a basic status page and a /health endpoint returning JSON { "status": "ok" }
  • WebSocket endpointws://<host>:<port>/ws accepts WebSocket connections (RFC 6455)
  • Access code — a random 6-character hex code is generated on each start for basic authentication

The server runs until interrupted with Ctrl+C.

Examples

bash
mayros remote-control
mayros remote-control --port 8080
mayros remote-control --host 127.0.0.1
mayros remote-control --port 9000 --host 0.0.0.0
  • Devices — device management
  • QR — generate pairing QR codes