HowToDeploy Team
Lead Engineer @ howtodeploy

Running your own AI agent on a VPS gives you full control over your data, eliminates per-message fees, and lets you customize everything. This guide covers what you need, how to choose the right setup, and two ways to deploy — manual and one-click.
You need a VPS (Virtual Private Server) from any major cloud provider. Here are the recommended options, sorted by cost:
| Provider | Cheapest plan | RAM | Storage | Monthly cost |
|---|---|---|---|---|
| Hetzner | CX22 | 4GB | 40GB | €4.35 |
| Vultr | Cloud Compute | 1GB | 25GB | $5.00 |
| DigitalOcean | Basic Droplet | 1GB | 25GB | $6.00 |
| Linode | Nanode | 1GB | 25GB | $5.00 |
| AWS EC2 | t3.micro | 1GB | 8GB | ~$8.50 |
For most AI agents, 1-2GB RAM is sufficient. If you're running agent swarms or multiple concurrent conversations, start with 4GB.
Most AI agent frameworks connect to an LLM provider for the actual AI reasoning. You'll need an API key from one of:
The cost depends on usage. For a personal agent handling 50-100 messages per day, expect $5-15/month in API costs.
If you want your AI agent to respond on messaging platforms, you'll need bot tokens or API credentials for each channel:
This is the traditional approach — SSH into a server, install dependencies, and configure everything by hand.
Create a VPS with your chosen provider. Select:
ssh root@your-server-ipapt update && apt upgrade -yThe specific dependencies vary by agent framework. For a Node.js-based agent like Nanoclaw:
# Install Node.js 20
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt install -y nodejs
# Install build tools
apt install -y git build-essential
# Install PM2 for process management
npm install -g pm2git clone https://github.com/qwibitai/nanoclaw.git /opt/nanoclaw
cd /opt/nanoclaw
npm installCreate an environment file with your configuration:
cat > .env << EOF
ANTHROPIC_API_KEY=your-api-key
TELEGRAM_BOT_TOKEN=your-telegram-token
DISCORD_BOT_TOKEN=your-discord-token
ADMIN_EMAIL=your@email.com
EOFpm2 start npm --name "nanoclaw" -- start
pm2 save
pm2 startupIf the agent has a web interface, install Caddy for automatic HTTPS:
apt install -y caddyConfigure Caddy:
your-domain.com {
reverse_proxy localhost:3000
}
And that's for a straightforward setup. If you hit dependency conflicts, OS version differences, or configuration issues, it can take much longer.
HowToDeploy automates the entire process above. Connect your cloud provider, pick an AI agent, fill in your API keys, and click Deploy.
Go to Settings → Cloud Providers and add your API key for DigitalOcean, Hetzner, Vultr, Linode, or AWS.
Browse the app catalog and select the agent that fits your use case:
Enter only the required fields — typically your LLM API key, admin email, and messaging bot tokens.
HowToDeploy provisions the server, installs all dependencies, configures the agent, sets up SSL, and streams progress back to you in real time. The entire process takes 3-5 minutes.
| Framework | Language | RAM usage | Channels | Best for |
|---|---|---|---|---|
| Nanoclaw | Node.js | ~1GB | 5 | Teams, multi-channel support |
| Openclaw | Node.js | ~1GB | 10+ | Personal AI, mobile access |
| Zeroclaw | Rust | ~5MB | Multiple | Edge, IoT, resource-constrained |
| Tinyclaw | Node.js | ~1GB | 3 | Multi-agent teams, task management |
| Picoclaw | Go | <10MB | 6 | Simple setup, quick deployment |
Start with Picoclaw (simplest) or Openclaw (most channels + mobile apps).
Nanoclaw is the best balance of features and simplicity. If you need multiple specialized agents, go with Tinyclaw.
Zeroclaw is the only choice — 5MB RAM and no external dependencies.
Running an AI agent on a VPS means you're responsible for security. Key practices:
HowToDeploy handles SSH key generation, firewall configuration, and secret management automatically for one-click deployments.
Here's what running a self-hosted AI agent actually costs:
| Item | Monthly cost |
|---|---|
| VPS (Hetzner) | $4.50 |
| LLM API usage | $5-30 (varies) |
| Domain (optional) | ~$1 (annual/12) |
| Total | $10-35/month |
Compare that to SaaS AI agent platforms that charge $50-200/month per seat, plus per-message fees.

The best open-source AI tools you can run on your own server — from AI agents and search engines to code assistants. Full control, no API fees, deploy in minutes.

AI agents and chatbots are fundamentally different. Learn what separates them, when to use each, and how to deploy your own AI agent in minutes.

A complete guide to deploying open-source applications to a VPS — covering server provisioning, SSH setup, dependencies, reverse proxy, and SSL. Plus a faster alternative.