Skip to content

Instantly share code, notes, and snippets.

@guzus
Last active May 2, 2025 14:01
Show Gist options
  • Select an option

  • Save guzus/6ddf906122323735d05c9cd4eb7d1d9e to your computer and use it in GitHub Desktop.

Select an option

Save guzus/6ddf906122323735d05c9cd4eb7d1d9e to your computer and use it in GitHub Desktop.
GensynRlSwarmNodeSetup.md

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)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment