Republic is a decentralized system that leverages blockchain technology to coordinate and verify computational tasks.
- About Republic
- System Requirements
- Recommended VPS Providers
- Prerequisites
- Installation
- Running the Node
- Register & Connect Your Node
- Monitoring
- Useful Commands
- Troubleshooting
Republic is a decentralized AI compute network that uses blockchain technology to coordinate and verify computational tasks. Node operators contribute compute resources and earn points through the Republic Portal.
Note: GPU is optional but provides better points on the portal.
| Component | Requirement |
|---|---|
| CPU | 4 vCPU |
| RAM | 8 GB |
| Storage | 100 GB SSD |
| OS | Ubuntu 20.04 / 22.04 LTS |
| Network | 100 Mbps |
| Component | Requirement |
|---|---|
| CPU | 8 vCPU |
| RAM | 16 GB |
| Storage | 200 GB NVMe SSD |
| GPU | NVIDIA RTX 3080 / A100 or equivalent |
| OS | Ubuntu 20.04 / 22.04 LTS |
| Network | 1 Gbps |
| Provider | Link |
|---|---|
| Contabo | https://Lihat.info/contabo |
| Vultr | https://Lihat.info/vultr |
| Servarica | https://Lihat.info/servarica |
| VPSAG | https://Lihat.info/vpsag |
| Hetzner | https://Lihat.info/hetzner |
sudo apt update && sudo apt upgrade -ysudo apt install -y curl wget git screen unzip build-essentialcurl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
newgrp dockerVerify Docker is installed:
docker --versionsudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --versionsudo apt install -y nvidia-driver-535
sudo apt install -y nvidia-container-toolkit
sudo systemctl restart dockerVerify GPU is detected:
nvidia-smiGo to https://points.republicai.io/?ref=ED1206 and create an account. After registration, you will receive an API Key from your dashboard.
git clone https://github.com/republicai/node.git
cd nodecp .env.example .env
nano .envFill in the required fields:
REPUBLIC_API_KEY=your_api_key_here
REPUBLIC_NODE_NAME=your_node_name
NODE_TYPE=cpu # Change to "gpu" if you have a GPUSave and exit (CTRL+X, then Y, then ENTER).
docker-compose up -ddocker-compose -f docker-compose.gpu.yml up -ddocker-compose ps
docker-compose logs -fAfter starting the node, go to your Republic Dashboard and:
- Navigate to My Nodes
- Click Add Node
- Enter your node's public IP address
- Paste your Node ID (found in the logs):
docker-compose logs | grep "Node ID"- Click Verify & Connect
Your node should now appear as Active on the dashboard.
docker-compose logs -f --tail=100docker ps -adocker statsdocker exec -it republic-node bash| Action | Command |
|---|---|
| Start node | docker-compose up -d |
| Stop node | docker-compose down |
| Restart node | docker-compose restart |
| View logs | docker-compose logs -f |
| Update node | git pull && docker-compose pull && docker-compose up -d |
screen -S republic
docker-compose up
# Detach: CTRL+A then D
# Reattach:
screen -r republiccd node
git pull origin main
docker-compose pull
docker-compose down
docker-compose up -d- Make sure your API Key in
.envis correct - Check that ports are open on your VPS firewall:
sudo ufw allow 3000/tcp
sudo ufw allow 8080/tcp
sudo ufw enablesudo usermod -aG docker $USER
newgrp dockerIncrease swap space:
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstabsudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker- Portal: https://points.republicai.io/?ref=ED1206
- Twitter/X: @RepublicAI
- Discord: Republic Discord
- Telegram: Republic Telegram
This guide is open-source and intended for educational purposes. Always refer to the official Republic Documentation for the most up-to-date information.
Made with ❤️ for the Republic community