Skip to Content
prxy.monster v1 is in early access. See what shipped →
CLIConfig file

Config file

The CLI persists a single JSON config file. Schema:

{ "endpoint": "https://api.prxy.monster", "token": "prxy_xxx", "user": { "id": "u_xxx", "email": "you@example.com" } }

Only endpoint is required at read time. token and user are populated by prxy login.

Location

PlatformDefault path
macOS / Linux~/.prxy/config.json
Windows%APPDATA%\prxy\config.json

Override with PRXY_CONFIG_DIR=/path/to/dir.

Permissions

On Unix, the file is written with mode 0600 (owner read/write only) and the directory with 0700. Writes are atomic — the CLI writes to a .tmp sibling and renames into place, so a crash mid-write can’t leave you with a half-written config.

On Windows, the default ACL on %APPDATA%\<app>\ is already user-only, so no explicit chmod is needed.

Hand-editing

Editing the file by hand is supported — prxy doctor will tell you if anything’s wrong. Common cases:

# Switch to staging $EDITOR ~/.prxy/config.json # Change "endpoint" to "https://api.staging.prxy.monster" # Or use the env var override (no edit needed): PRXY_CONFIG_DIR=~/.prxy/staging prxy doctor

Wipe

prxy logout # removes the file entirely rm -rf ~/.prxy # nuke everything if logout misbehaves

Environment variable overrides

VariablePurpose
PRXY_CONFIG_DIROverride config directory.
PRXY_REGISTRY_URLOverride the registry index URL for prxy modules.
NO_COLORDisable colored output (https://no-color.org ).

The endpoint can also be overridden per-command with --endpoint=... on prxy login. Once saved, the endpoint sticks until the next login.

Last updated on