Your personal AI operating system in a box. Run AI agents with workflow automation — self-hosted, fully customizable.
A pre-configured Docker stack that combines:
- OpenClaw — Personal AI agent gateway (Claude-powered)
- n8n — Visual workflow automation (400+ integrations)
Together, they form a powerful AI automation platform where your agent can trigger workflows, call webhooks, process data, and interact with external services.
| Capability | OpenClaw | n8n | Combined |
|---|---|---|---|
| AI reasoning | ✅ | ❌ | ✅ |
| Workflow automation | ❌ | ✅ | ✅ |
| External integrations | Limited | 400+ | ✅ |
| Visual workflow builder | ❌ | ✅ | ✅ |
| Natural language interface | ✅ | ❌ | ✅ |
| Self-hosted | ✅ | ✅ | ✅ |
Example use cases:
- AI agent that triages your email and sends Slack summaries
- Content pipeline: research → write → fact-check → publish
- Social media monitoring with AI-powered responses
- Automated reporting with natural language queries
- Multi-model AI validation (Claude + ChatGPT + Gemini)
- Docker and Docker Compose installed
- An Anthropic API key (for Claude)
- Optional: OpenAI and/or Google AI keys for multi-model workflows
git clone https://github.com/caprihan/openclaw-n8n-stack.git
cd openclaw-n8n-stack
# Copy the environment template
cp .env.template .env
# Edit with your API keys
nano .envdocker-compose up -d| Service | URL | Default Credentials |
|---|---|---|
| n8n | http://localhost:5678 | admin / (your password) |
| OpenClaw | http://localhost:3456 | — |
The workflows/ directory contains ready-to-use n8n workflows:
- Open n8n at http://localhost:5678
- Go to Workflows → Import from File
- Import any workflow from the
workflows/directory - Configure credentials and activate
┌─────────────────────────────────────────────────────────────┐
│ Docker Network │
│ │
│ ┌─────────────────┐ ┌─────────────────┐ │
│ │ OpenClaw │◄───────►│ n8n │ │
│ │ (AI Agent) │ webhook │ (Workflows) │ │
│ │ Port 3456 │ │ Port 5678 │ │
│ └────────┬────────┘ └────────┬────────┘ │
│ │ │ │
│ ▼ ▼ │
│ ┌──────────────┐ ┌──────────────┐ │
│ │ workspace/ │ │ workflows/ │ │
│ │ (your files)│ │ (n8n exports)│ │
│ └──────────────┘ └──────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘
│ │
▼ ▼
Anthropic API External Services
OpenAI API (Slack, Gmail, etc.)
Google AI API
| Workflow | Description |
|---|---|
ripr-chatgpt-validator.json |
Multi-LLM fact-checking (ChatGPT) |
ripr-gemini-validator.json |
Multi-LLM fact-checking (Gemini) |
email-triage.json |
AI-powered email summarization |
social-monitor.json |
Track mentions and trends |
Edit config/openclaw.json to customize:
- Default model and thinking level
- Skills and tools enabled
- Channel configurations
Set up credentials in n8n UI:
- Go to Credentials → Add Credential
- Add your API keys for services you'll use
- Reference them in your workflows
OpenClaw can call n8n webhooks directly. In your agent workspace:
# Example: Call a n8n workflow from OpenClaw
curl -X POST "http://n8n:5678/webhook/my-workflow" \
-H "Content-Type: application/json" \
-d '{"data": "from openclaw"}'The N8N_WEBHOOK_BASE environment variable is pre-configured so OpenClaw knows where to find n8n.
# Pull latest images
docker-compose pull
# Restart with new images
docker-compose up -d# Backup volumes
docker run --rm -v openclaw-n8n-stack_openclaw-data:/data -v $(pwd):/backup alpine tar czf /backup/openclaw-backup.tar.gz -C /data .
docker run --rm -v openclaw-n8n-stack_n8n-data:/data -v $(pwd):/backup alpine tar czf /backup/n8n-backup.tar.gz -C /data .- Ensure both containers are on the same network
- Check
docker-compose logs openclawfor errors - Verify API keys are set correctly
- Update
N8N_WEBHOOK_URLin.envto your public URL - Ensure port 5678 is accessible
- Check Docker volumes:
docker system df - Prune unused:
docker system prune -a
- Use strong passwords for n8n
- Put behind a reverse proxy with HTTPS
- Don't expose ports directly to the internet
- Keep API keys secure (never commit
.env) - Review n8n's security best practices
PRs welcome! Especially:
- New workflow templates
- Documentation improvements
- Security hardening
- OpenClaw — AI agent framework
- n8n — Workflow automation
- Built by Gaurav Caprihan / Gripsy
MIT — Use it, modify it, build on it.
Get a grip on AI. 🦎