Copy and paste below, then press enter.
#!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -e
echo "π Updating and installing dependencies..."
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y python3 python3-venv python3-pip curl wget screen git
echo "π¦ Installing Node.js and yarn..."
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g yarn
echo "π Cloning Gensyn RL Swarm repo..."
git clone https://github.com/gensyn-ai/rl-swarm.git
cd rl-swarm
echo "π Setting up Python virtual environment..."
python3 -m venv .venv
source .venv/bin/activate
echo "π§ Running RL swarm..."
chmod +x run_rl_swarm.sh
./run_rl_swarm.sh
echo "β
Setup complete!"
echo "π Open http://localhost:3000/ in your local browser (make sure SSH port forwarding is enabled with: -L 3000:localhost:3000)"