Command-line reference
Every idlepay command and flag. The command line works the same on Linux, macOS, Windows (idlepay.exe) and inside Docker (docker exec idlepay idlepay …).
sudo on Linux, or an administrator terminal on Windows. On macOS, never use sudo. See permissions. Run idlepay help <command> or add --help to any command for its built-in help.All commands
| Command | What it does |
|---|---|
idlepay | Guided setup the first time; afterwards, shows the status |
idlepay setup | Go through setup again: sign in, choose what to share, keep it running |
idlepay login | Link this machine to your account |
idlepay logout | Forget this machine's device token |
idlepay run | Share in the foreground until Ctrl+C |
idlepay status | Show what this machine shares right now |
idlepay nodes | List the connections this machine is set to share |
idlepay direct | Share or stop sharing this machine's own connection |
idlepay vpn / ip | Share a VPN or another IP address on this machine |
idlepay proxy | Share, list, remove and export your own proxies |
idlepay service | Install or remove the background service |
idlepay update | Install the latest release now |
idlepay uninstall | Remove IdlePay, its settings and its logs |
idlepay completion | Print a shell completion script (bash, zsh, fish, PowerShell) |
Global flags
| Flag | Meaning |
|---|---|
--config <path> | Use this settings file instead of the default. See Files and settings. The IDLEPAY_CONFIG environment variable does the same. |
-v, --version | Print the version, for example idlepay version X.Y.Z |
-h, --help | Help for any command |
--api <url> | Use another IdlePay API origin. Only for testing; leave it out. |
idlepay (guided setup)
Run idlepay with no command (sudo idlepay on Linux). If this machine isn't set up yet, it walks you through three steps:
Step 1 of 3 · Sign in Your browser is opening so you can approve this computer. If it doesn't, go to: https://app.idlepay.io/link?code=ABCD-EFGH and approve the code ABCD-EFGH ✓ Signed in. This computer is device #12. Step 2 of 3 · Choose what to share Share this computer's internet connection? [Y/n] Found VPN: wg0 (10.8.0.2). Share it too? [y/N] Do you have proxies to share? [y/N] Step 3 of 3 · Keep it running Keep IdlePay running in the background, even after a restart? [Y/n]
- Press Enter to take the default, shown in capitals.
- If you answer yes to proxies, paste them one per line and finish with an empty line.
- Keeping it running installs the background service. It asks for sudo, or shows a Windows administrator prompt, once. If you answer no, IdlePay runs in that window until you close it or press Ctrl+C.
Once the machine is set up and running, idlepay just shows the status and a few hints.
idlepay setup
Runs the guided setup again, even on a machine that's already set up, so you can change what you share. It keeps your sign-in and skips step 1. It also resumes sharing if it was paused in the Windows app.
idlepay login
idlepay login idlepay login --key ipk_...
Links this machine to your account and prints "Linked as device #N". Without --key, it opens your browser, or prints a link for another device, and waits for you to approve the code (valid 10 minutes). With --key, it uses an enrollment key and needs no browser.
--key <key> | Enrollment key for headless machines |
Every login creates a new device. If you log in again on a machine that's already linked, the old device stays in your dashboard, offline, until you remove it.
idlepay logout
Deletes this machine's device token. Your proxies and VPNs stay in the settings. Remove the device from Devices too if you're done with the machine.
idlepay run
Shares in the foreground and logs to the terminal until you press Ctrl+C. Aliases: start, up. Use it to watch what's happening, or to run IdlePay under your own process supervisor. Don't run it while the background service is running: you'll get "IdlePay is already running on this computer".
idlepay status
idlepay status idlepay status --all idlepay status --state failed idlepay status --json
Shows the version and device number, each connection with its state and public IP or error, a proxy summary by state, and today's traffic and earnings (in UTC, as on your dashboard). It also says whether IdlePay runs in the background, and whether a newer version is out.
--all | List every connection, proxies included |
--state <state> | List the connections in one state: online, checking, connecting, failed, duplicate, disabled, offline or invalid |
--json | Print JSON, for scripts and monitoring |
The states are explained in Troubleshooting. status doesn't need sudo.
idlepay nodes
Lists what this machine is set to share, as KIND LABEL KEY TARGET: direct for this machine's connection, each vpn with its IP, and a count of proxies. Use status for live states.
idlepay direct on | off
idlepay direct off idlepay direct on
Turns sharing this machine's own connection on or off. VPNs and proxies are unaffected. Use off on a machine that should only share proxies.
idlepay vpn add | remove
idlepay vpn add # pick from the VPNs connected now idlepay vpn add wg0 # by interface name idlepay vpn add 10.8.0.2 --label "Mullvad NL" idlepay ip add 203.0.113.5 # an extra IP on this machine idlepay vpn remove 10.8.0.2
vpn and ip are the same command. add with no argument lists the connected VPNs and lets you pick one. Give an IP address or an interface name to add a specific one. It tests the connection ("Testing…"), then prints "✓ label — shared (the internet sees IP)", or a warning if the VPN carries all your traffic. See Sharing a VPN.
add [ip | interface] | Share a VPN or IP. --label <name> sets the name shown in your dashboard. |
remove <ip | key> | Stop sharing it |
idlepay proxy
Alias: proxies. Formats and rules are in Sharing proxies.
proxy add
idlepay proxy add 203.0.113.7:8080:user:pass idlepay proxy add user:[email protected]:1080 --label "Home lab" idlepay proxy add --file proxies.txt cat proxies.txt | idlepay proxy add --file -
Saves the proxies at once and prints what happened ("Added 120 · 3 already shared · 1 unreadable"), with the reason for each unreadable line. The running IdlePay then checks each one and shares the ones that work. In a terminal it shows live progress; Ctrl+C only stops watching.
--file <path> | Read proxies from a file, one per line. Use - for standard input. |
--label <name> | Name shown in your dashboard (one proxy only) |
proxy list
idlepay proxy list idlepay proxy list --state failed idlepay proxy list --search 203.0.113 --limit 0 idlepay proxy list --json
Alias: ls. Shows each proxy with its state, public IP or error, today's traffic and earnings, and its key. Passwords are hidden. States are only known while IdlePay is running.
--state <state> | Only proxies in this state |
--search <text> | Only proxies whose address, label, key or public IP contains this |
--limit <n> | How many to show. Default 50, or all with --json; 0 means all. |
--offset <n> | Skip this many |
--json | Print JSON |
proxy remove
idlepay proxy remove 203.0.113.7:8080:user:pass idlepay proxy remove --state failed idlepay proxy remove --file old-proxies.txt idlepay proxy remove --all --yes
Stops sharing the proxies you name: by address, full line or key, from a file, or everything matching a filter. It asks for confirmation. In scripts, where nobody can answer, add --yes.
--state <state> | Remove the proxies in this state, for example failed |
--search <text> | Remove the proxies matching this |
--file <path> | Remove the proxies listed in a file (- for standard input) |
--all | Remove every proxy |
-y, --yes | Don't ask for confirmation |
proxy export
idlepay proxy export --state online > working.txt idlepay proxy export --with-passwords > backup.txt
Writes the proxies to standard output, one per line, ready to add again elsewhere. Takes --state and --search. Passwords are hidden unless you add --with-passwords.
idlepay service install | uninstall
sudo idlepay service install # Linux idlepay service install # macOS (no sudo) sudo idlepay service uninstall
install keeps IdlePay running in the background and starts it with the computer: a systemd service on Linux, a LaunchAgent on macOS, a scheduled task on Windows. uninstall stops and removes it but keeps your settings. Details in Background service.
idlepay update
Downloads and installs the latest release now, after checking its checksum. It works without signing in. A running IdlePay switches to the new version after a restart. You rarely need it: IdlePay updates itself.
idlepay uninstall
sudo idlepay uninstall sudo idlepay uninstall --yes
Stops the background service and deletes the program, its settings and its logs from this computer. -y / --yes skips the confirmation. It doesn't remove the device from your account. See Uninstall.
Things the command line doesn't do
- Pause: there's no pause command. Stop the service (
sudo systemctl stop idlepayon Linux), or turn off what you share withdirect offandproxy remove. - Bandwidth limits and schedules: IdlePay has no speed cap, data cap or schedule. It only uses bandwidth when customer traffic is sent through your connection.
Exit codes
0 on success and 1 on any error, with the reason printed. On Windows, a double-clicked idlepay.exe keeps its window open with "Press Enter to close this window."