description: “Self-host Agentbot”Documentation Index
Fetch the complete documentation index at: https://docs.agentbot.raveculture.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Run Agentbot locally or self-host on your own infrastructure.Prerequisites
- Node.js 22.x (>=22.14.0 required for OpenClaw runtime)
- PostgreSQL database
- Docker (for agent containers)
Quick Start (Dev Container)
The fastest way to start developing:- Install the Dev Containers extension for VS Code
- Open the project in VS Code
- Click “Reopen in Container” when prompted
Local Development
SDK Options
If you want to integrate with Agentbot programmatically, use one of these public options:sdk/agentbotinagentbot-opensourcefor the typed reference API clientEskyee/agentbot-sdkfor the standalone SDK repo
Environment Variables
RAILWAY_TOKEN_TYPE controls how the platform authenticates with the Railway GraphQL API. Set it to project to authenticate with a project-scoped token (sent via the Project-Access-Token header) or to account (default) to authenticate with a personal token (sent via the Authorization: Bearer header). Valid values are project, workspace, account, and oauth.Docker Production
The
init: true flag enables proper signal forwarding and prevents zombie processes (PID 1 handling). The HOME and TERM environment variables are required by the official OpenClaw image which runs as the node user. NODE_COMPILE_CACHE enables the Node.js compile cache for faster startup, and OPENCLAW_NO_RESPAWN=1 prevents the OpenClaw process from automatically respawning inside the container (Docker’s restart policy handles restarts instead).Deployment
Vercel (Recommended)
- Push code to GitHub
- Import project in Vercel
- Add environment variables
- Deploy
Railway
DigitalOcean
Use the One-Click App for Node.js and connect a managed PostgreSQL database.Verify Installation
After deployment, visit:- Main app:
https://your-domain.com - Health check:
https://your-domain.com/health
Troubleshooting
Database connection failed
Database connection failed
Check your
DATABASE_URL format:OAuth not working
OAuth not working
Ensure your OAuth redirect URLs match:
- Development:
http://localhost:3000/api/auth/callback/github - Production:
https://your-domain.com/api/auth/callback/github