← All homelab projects

Self-hosted AI and automation

OpenClaw as a personal gateway

OpenClaw is my experiment with a self-hosted AI gateway: a central service that can connect chat, tools, automation and notifications. It runs in my own homelab, so I learn about managing and securing it as well as exploring its possibilities.

In development
  • OpenClaw
  • Linux
  • Docker
  • Chat
  • Automation
  • Monitoring
Illustration of a self-hosted server connecting containers and local services through a gateway to chat messages, notifications and status checks.

At a glance

Technology and key information

In development Ubuntu LXCOpenClaw gatewayDocker sandboxChat and health checks

The setup

The gateway runs in an Ubuntu Linux container and starts as a system service. OpenClaw can use Docker as a sandbox for isolated tasks. A chat connection enables interaction and notifications without having to work directly on the server every time.

The setup is deliberately modular. The gateway, plugins, access rules, sandbox and communication channels each have their own responsibility. This makes the system more flexible, but also requires clear boundaries between those parts.

More than a chatbot

A gateway is interesting because it does more than produce text. It can use available tools, run scheduled tasks and check the state of other components. For example, I created an automatic health check that periodically verifies whether the gateway is reachable and reports the result to a chat channel.

This turns OpenClaw into a connecting layer between AI and the day-to-day management of the homelab.

Security as part of the project

A service that can use tools and is accessible over the network needs careful boundaries. During the project I therefore checked network access, tokens, plugin policy, user permissions and the isolation of commands in Docker.

Security checks revealed several warnings. Critical issues were resolved, while the remaining warnings guide further hardening. Security therefore becomes a recurring part of the experiment rather than a one-time final check.

Building further

Next steps

  1. Tighten access rules and plugin policy further.
  2. Expand health checks without sending unnecessary notifications.
  3. Store secrets and configuration securely and reproducibly.
  4. Only add automations with a clear practical purpose.
← All homelab projects