A simple automation script to run multiple Nexus Prover Nodes using screen
and node.txt
. Designed to reduce manual work and keep all nodes running in parallel on background sessions with logs.
- Ubuntu/Debian system
screen
installed (usually pre-installed)- Nexus CLI installed (auto-installs via script if missing)
- Your Node IDs saved in
node.txt
File | Purpose |
---|---|
nexus.sh |
Main launcher script (auto-creates sessions) |
node.txt |
List of Node IDs (one per line) |
node_X_log.txt |
Auto-generated logs for each node session |
Put each Node ID (from Nexus Dashboard) in a new line like:
12792333
12792338
12792340
-
Clone the repository:
git clone https://github.com/itsmesatyavir/nexusBot.git cd nexusBot
-
Make script executable:
chmod +x nexus.sh
-
Fix CLI path (if needed):
echo 'export PATH="$HOME/.nexus/bin:$PATH"' >> ~/.bashrc source ~/.bashrc
-
Run the launcher:
./nexus.sh
-
List running nodes:
screen -ls
-
Attach to a specific session:
screen -r nexus_1
-
Exit screen but keep node running:
PressCtrl + A
, thenD
to detach -
Check logs:
tail -f node_1_log.txt
-
If CLI not found:
Make sure Nexus CLI is installed to~/.nexus/bin
, and yourPATH
is set. -
If screens are not appearing:
Runnexus-network start --node-id <your-node-id>
manually to check for errors.
- You can add up to 10–15 node IDs depending on your system resources.
- Add a systemd service or
crontab
to restartnexus.sh
on reboot. - Monitor logs regularly with
tail -f
.
Created by @itsmesatyavir
Based on the official Nexus Testnet III documentation.
This tool is provided "as-is" and is intended for educational/testnet use only. Not affiliated with Nexus officially.