Skip to content

Deploying on a VPS

Running Zephyr on a VPS keeps the bot online 24/7 and reduces latency to RPC endpoints.

Download & Configure

bash
# Download the latest release
curl -O https://releases.solanazephyr.com/releases/latest/zephyr
chmod +x zephyr

# Create config
nano config.toml

Add your private key, RPC endpoints, and processor API keys. See Configuration.

Generate an Access Code

bash
openssl rand -base64 24

Set this as access_code in [general] to protect the web UI.

Generate Nonce Accounts

bash
./zephyr --generate-nonces 40

Creates 40 nonce accounts on-chain. Costs ~0.056 SOL in rent (reclaimable). Run this once — nonce pubkeys are appended to config.toml automatically.

Run with PM2

bash
# Install PM2
npm install -g pm2

# Start Zephyr
pm2 start ./zephyr --name zephyr

# Auto-restart on reboot
pm2 startup
pm2 save

Open the Firewall

bash
sudo ufw allow 8080
sudo ufw enable

Access the UI at http://your-vps-ip:8080. The access_code protects against unauthorized access. Failed auth attempts are rate-limited with a 2-second delay.

Updating

bash
# Download new version
curl -O https://releases.solanazephyr.com/releases/latest/zephyr
chmod +x zephyr

# Restart
pm2 restart zephyr

Your config.toml and nonce accounts are preserved across updates.