Easy, step-by-step guide and scripts to set up and run a Gensyn AI node on any VPS. Supports node installation, dependency setup, and frontend access.
This guide is for new and existing users to install and run the Gensyn node on your VPS.
Run the following commands to update your system and install all required packages:
sudo apt update && sudo apt install -y python3 python3-venv python3-pip curl wget screen git lsof
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt update && sudo apt install -y nodejs
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install -y yarnCheck that everything installed correctly:
node -v
npm -v
yarn -v
python3 --versiongit clone https://github.com/gensyn-ai/rl-swarm.git
cd rl-swarmStart a detached screen session to keep your node running:
screen -S gensynFor old users: Copy your .pem file to the VPS now before continuing.
python3 -m venv .venv
source .venv/bin/activatecd modal-login
yarn install
yarn upgrade
yarn add next@latest
yarn add viem@latest
cd ..git reset --hard
git pull origin main
git checkout tags/v0.4.3./run_rl_swarm.shWhen prompted, press Y
Then press A
Then choose 7 or 32 (based on your VPS RAM)
For 16GB RAM, choose 7
For 32GB RAM, choose 32
Open a new SSH terminal on the same VPS and run one of the following methods to expose the frontend:
ssh -R 80:localhost:3000 serveo.netcurl -fsSL https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -o cloudflared
chmod +x cloudflared
sudo mv cloudflared /usr/local/bin
cloudflared tunnel --url http://localhost:3000npx localtunnel --port 3000Type yes if prompted
Login with your email as requested
After steps 1–2, your node will ask for Weights & Biases (w&b) login.
Choose option 3 if you don’t want results logged.
If you choose option 1 (to log results), create a w&b account using the same email, generate an API key, and enter it when prompted.
Enjoy your running Gensyn node! 🚀