Configuration

Configure the Exposr client.

Set server address

Before using exposr expose, you must configure the relay server address:

bash
exposr config set-server YOUR_SERVER_IP

For example:

bash
exposr config set-server 20.198.81.254

The address is saved to ~/.exposr/config.json and used for all subsequent expose commands. You can override it per-run with --server-host.

Agent token

When you run exposr config set-server, a random agent token is generated and saved to:

text
~/.exposr/agent_token.txt

This token is sent with every control registration request. The server must be configured with the same token — it will reject connections with mismatched tokens.

Note
Copy the contents of ~/.exposr/agent_token.txt and use exposr server init-token PASTE_TOKEN_HERE on the relay server to complete the authentication setup.

Configuration files

FilePurpose
~/.exposr/config.jsonServer address and client settings
~/.exposr/agent_token.txtAgent authentication token