Fleets and enrollment keys
Link servers, Raspberry Pis and containers to your account without a browser or prompts, one at a time or hundreds at once.
Enrollment keys
An enrollment key is a secret starting with ipk_ that adds devices to your account. To create one, open Devices in the dashboard and fill in Enrollment keys:
- Label: a name for your own reference, such as "Hetzner fleet".
- Max uses: how many devices it can link (up to 100,000).
0means unlimited. - Days: how long it's valid, from 1 to 365 days.
- Consent: tick the box confirming that every device you link with the key, and its connection, is yours or its owner agreed to share it.
The key is shown once, so copy it before closing the window. The table lists each key's uses and expiry. Revoke stops a key from linking more devices; devices it already linked keep working. You need a confirmed email to create keys.
Only link machines you own or control, or whose owner has agreed to share them. Every device linked with your key is your responsibility. To put IdlePay into your own app, use the SDK; putting it into an installer, image or devices for other people any other way needs our written approval and each user's opt-in consent: see section 5 of the Terms.
Link a machine with a key
curl -fsSL https://idlepay.io/install.sh | sh sudo idlepay login --key ipk_... sudo idlepay service install
login --key links the machine and prints "Linked as device #N". service install starts sharing this machine's connection in the background and on every boot. To choose what to share interactively instead, run sudo idlepay after the login.
Each successful login creates a new device. Running it again on the same machine adds a second device, so run it once per machine.
cloud-init
Paste this into the user data of new cloud servers. cloud-init runs as root, so no sudo is needed:
#cloud-config runcmd: - curl -fsSL https://idlepay.io/install.sh | sh - /usr/local/bin/idlepay login --key ipk_... - /usr/local/bin/idlepay service install
Over SSH
KEY=ipk_... for host in server1 server2 server3; do ssh root@"$host" "curl -fsSL https://idlepay.io/install.sh | sh && idlepay login --key $KEY && idlepay service install" done
The same three commands work in Ansible, Salt or any other tool that runs shell commands.
Docker
Pass the key as IDLEPAY_KEY. The container links itself on first start and keeps the sign-in on its volume. See Run in Docker.
Proxies and extra IPs on each server
Add them after linking, before or after the service starts:
sudo idlepay ip add 203.0.113.5 sudo idlepay proxy add --file /root/proxies.txt
Device names
A device is named after the machine's hostname, cut to 100 characters. Set distinct hostnames before you link, or rename devices later under Devices. Use the search box there to find devices, and Remove selected to retire many at once. A removed device stops at once.
Limits
- There's no limit on devices per account.
- There's no limit on connections per device either (its own IP, VPNs, extra IPs and proxies).
- Only one connection per public IP earns, across your whole account. Two servers behind the same IP don't earn twice. See one connection per IP.
- Datacenter IPs earn the datacenter rate. Don't disguise them; see Rules.