Server Commands
Commands for managing the Exposr relay server.
exposr server init-token
Initialize the server with an agent authentication token. The server must have a token configured before it can accept agents.
bash
exposr server init-token PASTE_TOKEN_HEREThis writes the token to ~/.exposr/config.json on the server while preserving other configuration values.
exposr server start
Start the Exposr relay server:
bash
exposr server startThe server starts listening on the control port (9000) and data port (9001).
Warning
The server must be initialized with
exposr server init-token before starting. Without a token, the server cannot authenticate connecting agents.Server configuration
The server stores its configuration in ~/.exposr/config.json:
~/.exposr/config.json
{
"server_host": "",
"agent_token": "YOUR_AGENT_TOKEN"
}The agent_token field must match the token used by connecting clients.