Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
OpenClaw + n8n Autonomous Agent Stack This project implements ClawFlow, a local, self-hosted autonomous AI agent ecosystem. It pairs OpenClaw (The Brain) with n8n (The Builder) to create a system that can chat with users via Telegram, plan complex tasks, and execute structured workflows.
Fetched from the repository for this visit.
This project implements a local, self-hosted autonomous AI agent ecosystem. It pairs OpenClaw (The Brain) with n8n (The Builder) to create a system that can chat with users via Telegram, plan complex tasks, and execute structured workflows.
The system consists of two primary agents running on a single machine via Docker:
Clone the repository:
git clone https://github.com/khallad2/ClawFlow.git ai-stack
cd ai-stack
Create .env file:
Copy the example file and update it with your secrets.
cp .env.example .env
# Edit .env with your favorite editor
nano .env
OPENCLAW_TOKEN to a secure random string. openssl rand -base64 32
GOOGLE_API_KEY and TELEGRAM_BOT_TOKEN.Clone OpenClaw Source (Required for Build):
git clone https://github.com/openclaw/openclaw.git openclaw_source
Create Data Directories:
mkdir -p openclaw_data n8n_data postgres_data
chmod -R 777 openclaw_data n8n_data postgres_data
The default docker-compose.yml keeps the container valid but idle so you can run the setup wizard.
docker compose build --no-cache openclaw
docker compose up -d
Enter the container to configure your agent interactively.
docker exec -it openclaw_brain openclaw onboard --install-daemon
gemini-2.5-flash.@MyUser).The wizard sets defaults that work for local apps but break in Docker. You MUST manually edit the config file.
openclaw_data/openclaw.json in your text editor."bind": "loopback" and change it to "bind": "lan".
google/gemini-2.5-flash.
google/ prefix is mandatory.Example of correct openclaw.json you find it in openclaw_temlate.json: make sure that controlUi exists or copy it to your openclaw.json
{
"gateway": {
"port": 18789,
"mode": "local",
"bind": "lan",
"auth": {
"mode": "token",
"token": "OPENCLAW_TOKEN"
},
"tailscale": {
"mode": "off",
"resetOnExit": false
},
"nodes": {
"denyCommands": [
"camera.snap",
"camera.clip",
"screen.record",
"calendar.add",
"contacts.add",
"reminders.add"
]
},
"controlUi": {
"allowInsecureAuth": true
}
},
"agents": {
"defaults": {
"model": { "primary": "google/gemini-2.5-flash" }
}
}
}
Now we switch OpenClaw from "Setup Mode" to "Production Mode".
docker-compose.yml.command: tail -f /dev/nullcommand: openclaw gateway --port 18789docker compose down
docker compose up -d
Access Dashboard:
openclaw_data/openclaw.json (look for gateway.auth.token).http://localhost:18789/#token=YOUR_TOKENPair with Telegram:
/start to your bot.docker exec -it openclaw_brain openclaw pairing approve telegram <YOUR_AUTH_ID>
Chat: You can now chat with your agent via Telegram!
User (Telegram): "Check the order status for customer #12345."
check_order_tool.{ status: "Shipped", tracking: "AX99" }.GitHub checked 687h ago - refresh overdue. Recently viewed repositories target hourly refresh.