Overview
This guide walks you through deploying an AI assistant powered by Ollama using VPS Deployment. You'll configure the provider, set up the deployment environment, and get your assistant running.
Why Ollama?
- Completely local
- No API costs
- Privacy-focused
Why VPS Deployment?
- Always-on availability
- Accessible from anywhere
- Cheap hosting options
Requirements
- Linux VPS: Ubuntu, Debian, or similar Linux distribution
- Node.js 22+: Node.js version 22 or higher
- SSH access: SSH access to the server
- systemd: For service management
- Ollama credentials: API key or authentication
Step 1: Configure Ollama
No authentication required for local instance
- Install Ollama from ollama.ai
- Run 'ollama pull llama3.3'
- Start Ollama service
- Configure baseUrl in OpenClaw
Step 2: Prepare VPS Deployment Environment
- Provision VPS: Create a VPS instance with your preferred provider (DigitalOcean, Hetzner, etc.)
- Install Node.js: Install Node.js 22+ on the server
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && sudo apt-get install -y nodejs - Install OpenClaw: Install OpenClaw globally
npm install -g openclaw@latest - Run Onboarding: Complete setup and install systemd service
openclaw onboard --install-daemon - Enable Service: Enable and start the systemd service
systemctl --user enable --now openclaw-gateway.service - Configure Remote Access: Set up SSH tunnel or Tailscale for remote access
Step 3: Configuration
Create your openclaw.json configuration:
{
"agents": {
"defaults": {
"model": {
"primary": "ollama/llama3.3"
}
}
},
"models": {
"providers": {
"ollama": {
"models": {
"providers": {
"ollama": {
"baseUrl": "http://localhost:11434"
}
}
}
} Step 4: Deploy
{
"gateway": {
"mode": "remote",
"bind": "loopback",
"port": 18789,
"auth": {
"mode": "token"
}
}
} Step 5: Verify
# Check deployment status
openclaw status
# View logs
openclaw logs --follow
# Test with a message
openclaw test "Hello, are you working?" Connect to Channels
Now connect your deployed Ollama assistant to messaging channels:
Connect AI to WhatsApp via Baileys protocol
Telegram
Full-featured Telegram bot with commands and reactions
Discord
Discord bot with slash commands and threads
Slack
Slack app with Block Kit and threads
Signal
Encrypted messaging via signal-cli daemon
iMessage
Apple iMessage integration (macOS only)