One-click deployment of OpenClaw - your personal AI assistant - on Coolify. Use your iPhone as a mobile workstation for vibecoding via Telegram and the OpenClaw Web UI.
OpenClaw is an open-source personal AI assistant that runs on your own infrastructure. It connects to messaging platforms you already use (WhatsApp, Telegram, Discord, Slack, and more) and can:
- Vibe Code from anywhere: Prompt your agent from your phone to write, test, and deploy code.
- Manage your digital life: Emails, calendar, and task management.
- Browse the web: Research topics and automate browser tasks.
- Execute code: Run scripts and manage servers directly via chat.
- Extensible: Add custom skills and tools.
Key Features:
- Multi-channel inbox (WhatsApp, Telegram, Discord, Slack, iMessage (macOS), WebChat)
- Voice interaction (Voice notes + Transcription)
- Browser automation for web tasks
- Persistent memory and multi-agent routing
- Mobile-first experience for iPhone/Android
Before deploying, you'll need:
- Coolify installed and running on your server (Hetzner, AWS, DigitalOcean, etc.)
- At least one AI model provider API key:
- Anthropic API Key (Claude 3.5 Sonnet / 3 Opis)
- OpenAI API Key
- Google Gemini API Key
- Optional channel tokens:
- Telegram: Bot token from @BotFather (Highly recommended for mobile access)
- Discord: Bot token from Discord Developer Portal
- Open your Coolify dashboard
- Navigate to your project
- Click "Create New Resource"
- Select "Public Repository"
Enter the following repository URL:
https://github.com/wiselancer/openclaw-coolify
- Click on the build pack selector
- Choose "Docker Compose"
- Set the following:
- Branch:
main - Base Directory:
/ - Docker Compose Location:
docker-compose.yml
- Branch:
In the Coolify environment variables section, add:
Required:
OPENCLAW_GATEWAY_TOKEN=your-secure-token-here # Generate with: openssl rand -hex 32
ANTHROPIC_API_KEY=sk-ant-...Mobile Access (Telegram):
TELEGRAM_BOT_TOKEN=123456:ABC...- Go to the Domains tab in Coolify
- Add your domain (e.g.,
openclaw.yourdomain.com) - Coolify will automatically provision SSL certificates via Traefik.
Click "Deploy" and wait for the build to complete.
OpenClaw is designed to turn your phone into a powerful workstation.
Connect your Telegram bot and use it for:
- Writing code snippets on the go.
- Asking for status updates on long-running tasks.
- Using Voice Messages to prompt complex logic while walking.
Access your OpenClaw instance via Safari on iPhone.
- Tap "Share" -> "Add to Home Screen" to install it as a PWA.
- Use the built-in IDE/Terminal for more precise control.
Since you are likely on the move, consider:
- Tailscale: Access your Coolify instance via its Tailnet IP for maximum security.
- Cloudflare Tunnels: Use Cloudflare Access to protect your OpenClaw UI.
Coolify Reverse Proxy (Traefik)
│
│ HTTPS (auto SSL)
▼
┌─────────────────────────────────────────────────────────────┐
│ Docker Compose Stack │
│ │
│ ┌──────────────────┐ ┌─────────┐ ┌──────────────────┐ │
│ │ openclaw-gateway │ │ redis │ │ openclaw-browser │ │
│ │ (Node.js 22) │◄──┤ (cache) │ │ (Chromium) │ │
│ │ │ └─────────┘ │ │ │
│ │ Ports: │ │ Port: 9222 (CDP) │ │
│ │ - 18789 (WS/HTTP)│◄────────────────│ │ │
│ │ - 18793 (Canvas) │ │ │ │
│ └──────────────────┘ └──────────────────┘ │
│ │
│ Persistent Volumes: │
│ - openclaw-config (credentials, sessions) │
│ - openclaw-workspace (agent workspace) │
│ - openclaw-redis-data (cache) │
└─────────────────────────────────────────────────────────────┘
| Service | Description | Port |
|---|---|---|
openclaw-gateway |
Main AI assistant gateway | 18789 |
openclaw-redis |
Cache and session storage | 6379 (int) |
openclaw-browser |
Browser automation (Chromium) | 9222 (int) |
| Variable | Description |
|---|---|
OPENCLAW_GATEWAY_TOKEN |
Auth token for gateway access |
ANTHROPIC_API_KEY |
Primary AI model (Claude) |
TELEGRAM_BOT_TOKEN |
For Telegram bot access |
OPENCLAW_GATEWAY_BIND |
Default: lan |
This deployment configuration is MIT licensed. OpenClaw itself is MIT licensed.