Self-Hosted Provider Setup
The self-hosted provider is a small CPU coordinator that connects your GPU nodes to Lium. Skip this page if you use the Central Provider Server, the default. How the parts fit: Architecture.
New accounts start with Central Miner Server ON. To run your own provider, turn it OFF in Profile Settings.
Never put your coldkey on a provider server. Only the registered hotkey belongs there.
Before you start
- A Bittensor wallet with its hotkey registered on subnet 51. See Quickstart → Step 1.
- A host with no GPU needed: at least 4 cores, 8 GB RAM, 50 GB disk, 100 Mbps, Ubuntu 22.04 recommended.
- Basic Linux and Docker skills.
Install
1. Clone the repo
git clone https://github.com/Datura-ai/lium-io.git
cd lium-io
2. Run the installer
chmod +x scripts/install_miner_on_ubuntu.sh
./scripts/install_miner_on_ubuntu.sh
Check that btcli --version and docker --version work.
3. Configure .env
cp neurons/miners/.env.template neurons/miners/.env
BITTENSOR_WALLET_NAME=your_wallet_name
BITTENSOR_WALLET_HOTKEY_NAME=your_hotkey_name
EXTERNAL_IP_ADDRESS=your.server.ip.address
HOST_WALLET_DIR=/home/your_user/.bittensor/wallets
INTERNAL_PORT=8000
EXTERNAL_PORT=8000
EXTERNAL_PORT must be open in your firewall and forwarded through any NAT.
4. Start it
cd neurons/miners
docker compose up -d
docker compose ps
Adding GPU nodes
Add nodes in the Provider Portal (recommended); the portal pushes them to your provider. Or use the CLI below.
Add a node from the CLI
docker exec <provider_container> pdm run src/cli.py add-executor \
--address <node_ip> \
--port <node_port>
--validator <validator_hotkey> is optional; without it the main Lium validator is used.
Remove a node
docker exec <provider_container> pdm run src/cli.py remove-executor \
--address <node_ip> \
--port <node_port>
List attached nodes
docker exec <provider_container> pdm run src/cli.py list-executors
Logs
docker compose logs -f
Node status and validator results: Monitoring.
Troubleshooting
| Symptom | Likely cause |
|---|---|
| Node not connecting | Firewall or NAT blocks EXTERNAL_PORT, wrong node IP, or node down |
| Provider container crashes on start | HOST_WALLET_DIR missing or unreadable |
| No rewards | Not scored yet (wait about 15 minutes) or node failing checks. See Monitoring. |