Skip to Content
ReferenceConfiguration

Configuration

Environment variables

VariableDefaultMeaning
BOTPAGER_CONFIG~/.botpager/config.jsonSelected profile file.
BOTPAGER_API_URLSaved origin; otherwise https://botpager-api.reostack.comAPI origin. An override to another origin is rejected when the profile has pairings.
BOTPAGER_DEVICESaved default device IDDestination override for commands that resolve the default.

Destination resolution

An explicit command reference takes precedence over BOTPAGER_DEVICE, which takes precedence over the profile default. Resolution checks an exact device ID, then a unique exact alias, then a unique exact device name. Matching is case-sensitive. There is no fuzzy match. Ambiguous names fail.

Local files

FileContents
~/.botpager/config.jsonAPI origin, default destination, and saved pairing records including bearer tokens.
~/.botpager/computer-idPersistent computer identity shared across profiles for this OS user.
Selected profile path plus .pairingUnfinished session, including its session secret.

Configuration writes use a temporary file and atomic rename. Newly created configuration files use mode 0600 and directories use 0700 on systems that honor these modes. These files must not be committed, shared, or attached to support requests.

Separate server profiles · About credentials

Last updated on