Files and settings
Where IdlePay keeps its settings, status and logs, and what's in them.
Where the files are
All files sit in one folder, next to config.json. Which folder depends on how IdlePay runs:
| How it runs | Settings folder | Log |
|---|---|---|
| Linux, background service (or any sudo command) | /etc/idlepay/ | journalctl -u idlepay |
| Linux, as your user | ~/.config/idlepay/ | The terminal |
| macOS | ~/Library/Application Support/idlepay/ | ~/Library/Logs/IdlePay.log |
| Windows app | %AppData%\idlepay\ | %AppData%\idlepay\idlepay.log |
| Windows, command-line background task (or any admin command) | C:\ProgramData\IdlePay\ | C:\ProgramData\IdlePay\idlepay.log |
| Windows, command line as your user | %AppData%\idlepay\ | The terminal |
| Docker | /etc/idlepay/ (the volume) | docker logs idlepay |
On Linux and Windows, the system folder (/etc/idlepay or C:\ProgramData\IdlePay) is used whenever it exists or the command runs as administrator. Otherwise the per-user folder is used. On Linux, $XDG_CONFIG_HOME/idlepay replaces ~/.config/idlepay when that variable is set. Windows logs roll over to idlepay.log.old at 10 MB.
To use another settings file, pass --config /path/to/config.json to any command, or set IDLEPAY_CONFIG.
What each file holds
| File | Contents |
|---|---|
config.json | Your settings and this device's sign-in. Secret: it holds the device token and proxy passwords, and is readable only by its owner. |
status.json | A summary of what's shared right now, rewritten at least every 10 seconds. idlepay status reads it. No secrets. |
nodes.json | Every connection with its state, public IP and today's traffic. No secrets. |
update-state.json | Versions that were rolled back and won't be installed again. |
config.lock, agent.lock | Lock files that stop two copies from running or writing at once (agent.lock is Linux and macOS only). |
config.json settings
Change settings with the commands or the Windows app rather than by hand. If you do edit the file, stop IdlePay first or keep the JSON valid. A running copy picks up changes within a few seconds.
| Key | Meaning | Changed with |
|---|---|---|
device_id, token | This device's number and secret token | login, logout |
disable_direct | true stops sharing this machine's own connection | direct on|off |
vpns | Shared VPNs and extra IPs: source_ip and label | vpn add|remove |
proxies | Shared proxies: url and label | proxy add|remove |
paused | true pauses all sharing | The Windows app; setup resumes |
max_streams | Caps how many customer connections each of your connections carries at once. 0 or missing means no cap. A low cap reduces how much bandwidth IdlePay can use, and how much you earn. | By hand only |
api_url | The IdlePay API. Leave it alone. | --api |
config.json or copy it to another machine. Anyone with the token can act as your device, and the same token on two machines is flagged as a cloned device.