Install Pickaxe, Foreman's agent, on a computer at your site so it can collect stats from your miners and carry out your commands. These steps match the Installation page in Foreman, which fills in your Client ID for you.
Before You Start
- A computer on your mining network. Linux is recommended, especially for large fleets. Windows works but isn't recommended above about 1,000 miners per Pickaxe. See Quick Guide: Hardware Requirements For Pickaxe.
- A service account token to use as Pickaxe's API key. A service account keeps Pickaxe running if a person's account is removed. See How To: Create A Service Account For Pickaxe.
- Your Client ID. It's shown on the Installation page and in My Account > API Information. Switch to the right client first. See How To: Find The Client ID.
Open the Installation Page
In Foreman, go to Support > Guides > Installation in the left-hand menu. Use the commands shown there, which always point to the current version.
Install on Linux (Recommended)
- Connect to the Linux machine, for example over SSH.
- Run this command, replacing the placeholders with your Client ID and service account token. It downloads, installs, configures and starts Pickaxe:
curl https://pickaxe.obm.io/install -Ls --output install.sh; sudo bash install.sh <CLIENT ID> <SERVICE ACCOUNT TOKEN>
- Go to Pickaxe in Foreman. Your new Pickaxe should appear right away.
Pickaxe is installed in /opt/foreman/pickaxe and updates itself automatically. To control the service, run sudo service foreman start, stop or restart.
Install on Windows
- Download the latest Foreman Windows Agent from the link on the Installation page, and unzip it.
- Open
conf/foreman.txtand replace its contents with:apiKey=<SERVICE ACCOUNT TOKEN> clientId=<CLIENT ID>
- Run
bin/service-start.bat. If Windows says it's an unrecognized app, click More info, then Run anyway. Allow the app to make changes to your device. - Go to Pickaxe in Foreman. Your new Pickaxe should appear right away.
The agent updates Pickaxe automatically. To stop it, run bin/service-stop.bat. For larger Windows sites, see How To: Tune Windows For Pickaxe.
GPU Rigs
For GPU mining, install Pickaxe on each rig, using the Windows or Linux steps above. Rigs running nvOC 3.1 or later have Pickaxe built in: edit 1bash, set FOREMAN_MONITOR="YES", FOREMAN_CLIENT to your Client ID and FOREMAN_API_KEY to your token, then restart nvOC. The rig is added automatically within about 2 minutes.
What You Should See
On the Pickaxe page, your Pickaxe shows a green status dot. Pickaxe also has a local status page at http://localhost:8080 on the computer it runs on.
Next Steps
- Add your miners: How To: Mass Import ASICs or How To: Add A Miner.
- Get alerted if Pickaxe goes offline: How To: Set Up A Trigger To Detect When Your Pickaxe Goes Offline.
Common Problems
| Symptom | Fix |
|---|---|
| "Missing apiKey or clientId in foreman.txt" (Windows) |
conf/foreman.txt isn't formatted correctly. It must contain exactly the two lines shown above. |
| Pickaxe doesn't appear, or shows offline | See Common Troubleshooting: Pickaxe. |
Last verified: November 19, 2026