Step-by-Step Guide: Setting Up and Running evi-run on DigitalOcean or Other VPS (for Beginners)




Introduction

evi-run is a ready-to-deploy multi-agent AI system built on the OpenAI Agents SDK. The system provides powerful artificial intelligence capabilities through a convenient Telegram bot interface and supports operating modes from personal use to commercial applications.



Key Technical Characteristics

  • Architecture: Multi-agent system with main agent, specialized sub-agents and tools
  • Backend: Python, OpenAI Agents SDK, FastAPI
  • Database: PostgreSQL for data + Redis for caching
  • Interface: Telegram Bot API
  • Containerization: Docker Compose for service orchestration
  • Integrations: MCP servers, Solana RPC



System Requirements



Minimum Requirements for DigitalOcean Droplet

  • CPU: 1 vCPU
  • RAM: 1GB
  • Storage: 25GB SSD
  • OS: Ubuntu 22.04 LTS
  • Network: 1TB Transfer



Required API Keys

Telegram Bot Token

OpenAI API Key

Carefully find the bot in the list, check all the characters in the name.

Telegram User ID




Step 1: Creating and Configuring DigitalOcean Droplet

Use any Droplet creation guide or refer to the official Droplet Quickstart documentation if you encounter difficulties.



Creating a Droplet

  1. Log into the DigitalOcean panel and click “Create → Droplets”

  2. Choose the operating system image:

    • Distribution: Ubuntu
    • Version: 22.04 (LTS) x64
  3. Select Droplet size:

    • Minimum: Basic Plan → Regular → $6/mo (1GB RAM, 1 vCPU, 25GB SSD)
    • Or higher, depending on expected load
  4. Configure authentication:

    • Set a strong root password
    • Or use SSH Key
  5. Additional settings:

    • Hostname: evi-run-server
    • Enable monitoring (optional)
    • Enable backups (optional)
  6. Create Droplet – the process will take 1-2 minutes



Connecting to the Server

Option 1: DigitalOcean Web Console (recommended for beginners)

  1. In the DigitalOcean control panel, go to your Droplet
  2. Click the “Console” button in the top right corner
  3. Wait for the web terminal to load
  4. Log in as root with the password you specified during creation

Option 2: SSH through terminal

Paste password with right mouse click in one press, password will not be displayed in the input line, just press Enter.

Log in as  raw `root` endraw  with the password



Initial Setup

Update the system and install necessary utilities:

Execute commands one by one (line by line), copy the line and paste into console with right mouse click.

Execute commands one by one (line by line)

apt update && apt upgrade -y
apt install -y curl wget git nano
Enter fullscreen mode

Exit fullscreen mode

Wait for commands to complete until the input prompt appears.




Step 2: Installing Docker and Docker Compose

evi-run has an automated Docker installation script:

# Navigate to working directory
cd /opt

# Clone the repository
sudo git clone https://github.com/pipedude/evi-run.git

# Set access permissions
sudo chown -R $USER:$USER evi-run
cd evi-run
Enter fullscreen mode

Exit fullscreen mode

Run the automatic Docker installation:

# Make script executable
chmod +x docker_setup_en.sh

# Run installation (requires sudo)
sudo ./docker_setup_en.sh
Enter fullscreen mode

Exit fullscreen mode




Step 3: Configuring evi-run



Environment Variables Setup

Copy and edit the environment file:

# Copy example configuration
cp .env.example .env

# Edit configuration
nano .env
Enter fullscreen mode

Exit fullscreen mode

Fill in the required parameters in .env:

# REQUIRED: Telegram bot token from @BotFather
TELEGRAM_BOT_TOKEN=your_bot_token_here

# REQUIRED: OpenAI API key
API_KEY_OPENAI=your_openai_api_key
Enter fullscreen mode

Exit fullscreen mode

Insert your token and key instead of XXX, without quotes or other formatting

Insert your token and key instead of XXX

How to save file in nano:

  • Press Ctrl + X to exit
  • Press Y to confirm saving
  • Press Enter to confirm filename



Main Configuration Setup

Edit config.py:

nano config.py
Enter fullscreen mode

Exit fullscreen mode

Required parameters to change:

# REQUIRED: Your Telegram ID from @userinfobot
ADMIN_ID = 123456789

# Admin list (optional, add user IDs who will have admin privileges)
ADMINS_LIST = [123456789, 987654321]

# Operating mode: 'private', 'free', or 'pay'
TYPE_USAGE = 'private'  # Start with private for testing
Enter fullscreen mode

Exit fullscreen mode

Required parameters to change

How to save file in nano:

  • Press Ctrl + X to exit
  • Press Y to confirm saving
  • Press Enter to confirm filename



Agent Configuration Setup (Optional)




Step 4: Building and Running the System



Building Containers and Starting the System

# Build all services
docker compose up --build -d
Enter fullscreen mode

Exit fullscreen mode

Expected output:

Expected output




Step 5: Testing Functionality



Testing the Telegram Bot

  1. Find your bot in Telegram by username – see in @BotFather
  2. Send the /start command
  3. Try a simple request, for example: “Hello, how are you?”

Testing the Telegram Bot




Additional Information



Useful Commands

System restart (after code changes):

cd /opt/evi-run
docker compose down
docker compose up --build -d
Enter fullscreen mode

Exit fullscreen mode

System shutdown:

cd /opt/evi-run
docker compose down
Enter fullscreen mode

Exit fullscreen mode

Viewing logs:

# All system logs
docker compose logs -f

# Specific service logs
docker compose logs -f bot

# Logs from the last hour
docker compose logs --since 1h bot
Enter fullscreen mode

Exit fullscreen mode




Conclusion

After completing all steps, you will have a fully functional multi-agent AI system evi-run running on VPS. Now start configuring your system in detail. Have a good coding experience! 💜



Useful Resources



Community and Support


This article was written for beginners in the technical community on DEV who are interested in deploying AI systems. Questions and suggestions for improvement are welcome!



Source link