Overview
You can run PicoClaw using Docker Compose without installing anything locally. This method is ideal for containerized deployments and production environments.Prerequisites
- Docker and Docker Compose installed
- Git (for cloning the repository)
Installation Steps
1. Clone the Repository
2. Initial Setup (Gateway Mode)
On first run, Docker Compose will auto-generate the configuration file:docker/data/config.json.
3. Configure API Keys
Edit the generated configuration file:4. Start Gateway Mode
Start PicoClaw in gateway mode (runs in background):Docker Network Configuration: By default, the Gateway listens on
127.0.0.1 which is not accessible from the host. If you need to access the health endpoints or expose ports, set PICOCLAW_GATEWAY_HOST=0.0.0.0 in your environment or update config.json.5. Check Logs
Monitor the gateway logs:6. Stop the Gateway
To stop the gateway:Agent Mode (One-shot)
You can also use Docker Compose to run PicoClaw in agent mode for one-time queries or interactive sessions.Ask a Question
Run a single query:Interactive Mode
Start an interactive chat session:Updating PicoClaw
To update to the latest version:Docker Compose Profiles
PicoClaw’sdocker-compose.yml uses profiles to manage different modes:
| Profile | Description | Use Case |
|---|---|---|
gateway | Runs PicoClaw as a service with chat integrations | Production deployment with Telegram, Discord, etc. |
| (default) | Agent mode for one-shot queries | Interactive CLI usage, testing |
Volume Mounts
The Docker setup uses the following volume mounts:docker/data/config.json→ Container configdocker/data/workspace/→ Agent workspace (sessions, memory, skills)
Environment Variables
You can override configuration using environment variables:Next Steps
- Configure Chat Apps - Connect Telegram, Discord, WhatsApp
- Configuration Guide - Customize your deployment
- Troubleshooting - Common issues and solutions