This repository contains Python scripts used to run and manage Nexus CLI, with a primary focus on compatibility on Termux (Android) as well as Linux and other Unix-like systems.
This is a legacy version of the script that is still STABLE and WORKING.
- Automatic environment detection (Termux / Linux / others)
- Automatic Nexus CLI installation
- Automatic fallback to Ubuntu (proot-distro) on Termux if the binary is incompatible
- Run Nexus node using an existing Node ID
- Check node status, logs, and stop node
- Suitable for long-running usage on VPS or Android devices
├── bot.py
├── nexus_quick_install_termux.py
├── README.md
└── __pycache__/
-
bot.py
Main script used to install, run, and manage Nexus CLI. -
nexus_quick_install_termux.py
Helper script specifically for setting up Nexus CLI on Termux. -
pycache/
Python cache directory (can be ignored).
- Python 3
- Git
- Curl
Below are step-by-step installation instructions for different environments.
sudo apt update && sudo apt upgrade -ysudo apt install -y python3 python3-pip git curlgit clone https://github.com/dani12po/nexus.git
cd nexuspython3 bot.py --node-id <NODE_ID>python3 --version
git --versionsudo apt install -y python3 git curlgit clone https://github.com/dani12po/nexus.git
cd nexuspython3 bot.py --node-id <NODE_ID>Recommended: install Termux from F-Droid, not Play Store.
pkg update && pkg upgrade -ypkg install -y python git curlgit clone https://github.com/dani12po/nexus.git
cd nexuspython bot.py --node-id <NODE_ID>➡️ If Nexus CLI cannot run natively, the script will automatically install Ubuntu using proot-distro and run Nexus from there.
python3 --version
git --versionmacOS (Homebrew):
brew install python git curlgit clone https://github.com/dani12po/nexus.git
cd nexuspython3 bot.py --node-id <NODE_ID>| Argument | Description |
|---|---|
--node-id |
Run Nexus node using a specific Node ID |
--status |
Check node status |
--logs |
View node logs |
--stop |
Stop running node |
--login |
Display Nexus login URL |
- It is recommended to create your Node ID on a PC or VPS first, then run the Node ID on Termux.
- For long-term usage, VPS or non-aggressive Android battery settings are recommended.
- This repository uses a legacy script that is still working.
- Compatibility with future Nexus CLI updates is not guaranteed.
- Use a separate branch if you plan to develop a newer version.
Free to use and modify for personal purposes.
Focus on functionality — not fancy stuff.