- Python 3.10+ (required)
- uv (fast Python package manager)
- Git (for cloning the repository)
The installation script will automatically install the following system dependencies (unless --no-system-deps is specified):
- Build tools: pkg-config, cmake
- Media processing: ffmpeg
- Browser automation: Google Chrome, libnss3, libnspr4, xvfb
- Process management: Node.js, npm, PM2, dotenv
Note: The --no-system-deps option is primarily intended for discriminative miners who only need to submit models and don't require Chrome browser automation or Node.js process management tools. Validators should use the full installation to ensure all dependencies are available.
Install uv using one of these methods:
# Method 1: Official installer (recommended)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Method 2: Using pip
pip install uv-
Clone the repository:
git clone https://github.com/BitMind-AI/bitmind-subnet.git cd bitmind-subnet -
Run the installation script:
./install.sh
Options:
./install.sh --no-system-deps- Skip system dependency installation (intended for discriminative miners)
The installation script will:
- Check for Python 3.10+ and uv
- Install system dependencies (unless
--no-system-depsis specified):- pkg-config, cmake, ffmpeg
- chrome web driver, libnss3, libnspr4, xvfb
- Node.js, npm, PM2, dotenv
- Create a virtual environment using uv (fast dependency resolution)
- Install all dependencies from
pyproject.toml - Install the GAS package in development mode
- Install the
gasclicommand-line tool - Install additional git dependencies (Janus)
Before using gascli, you need to activate the virtual environment:
source .venv/bin/activateOnce the virtual environment is activated, you can use the GAS CLI:
gascli --help # Show main help
gascli validator --help # Validator commands help
gascli discriminator --help # Discriminative miner commands help
gascli generator --help # Generative miner commands helpvalidator→vali,vdiscriminator→dgenerator→gen,g
# Show all services status
gascli statusYou can also run commands directly without activating the environment:
.venv/bin/gascli --help
.venv/bin/gascli validator start