A networking utility that bridges Docker containers to host-side localhost services using socat and systemd for seamless AI agent deployments.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install localhost-bridge
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install localhost-bridge using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The localhost-bridge skill is a specialized networking utility designed to solve the common localhost trap where containerized AI agents are unable to reach services bound to 127.0.0.1 on the host machine. By leveraging Openclaw Skills, developers can create a secure tunnel from the Docker bridge interface to the host's loopback address. This ensures that internal services like AI gateways, local LLMs, or databases remain private and secure while being fully accessible to containerized workflows.
This implementation focuses on technical robustness and persistence. It utilizes systemd services to maintain connectivity across reboots and incorporates scoped UFW firewall rules to ensure that bridged services are never exposed to the public internet. This makes it an essential tool for those managing complex Openclaw Skills environments on Linux hosts.
Ensure socat is installed on your host system:
sudo apt-get install -y socat
Find the gateway for the Docker network your Openclaw Skills containers use:
# Replace <container_name> with your agent container
docker inspect <container_name> --format '{{json .NetworkSettings.Networks}}' | python3 -c "import json,sys; d = json.load(sys.stdin); [print(f'{n}: gateway={i[\"Gateway\"]}') for n, i in d.items()]"
Create the bridge service (replace <GATEWAY_IP>, <PORT>, and <SERVICE_NAME>):
sudo tee /etc/systemd/system/socat-<SERVICE_NAME>.service > /dev/null << 'EOF'
[Unit]
Description=Socat bridge for Openclaw Skills
After=network.target docker.service
[Service]
Type=simple
ExecStart=/usr/bin/socat TCP-LISTEN:<PORT>,bind=<GATEWAY_IP>,fork,reuseaddr TCP:127.0.0.1:<PORT>
Restart=always
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable --now socat-<SERVICE_NAME>
Allow traffic from the specific Docker bridge interface:
BRIDGE_ID=$(docker network inspect bridge --format '{{.Id}}' | cut -c1-12)
sudo ufw allow in on br-${BRIDGE_ID} to any port <PORT> proto tcp
The localhost-bridge skill organizes network configuration and service metadata on the host system to ensure clarity and security:
| Component | Path / Location | Description |
|---|---|---|
| Systemd Service | /etc/systemd/system/socat-*.service |
Defines the listener binding and forwarding target. |
| Firewall Rule | ufw status (br-XXXX interface) |
Scoped access control for the Docker network bridge. |
| Naming Convention | socat-<net>-<service>-<port> |
Self-documenting identifier for the bridge instance. |
| Logs | journalctl -u socat-* |
Real-time monitoring of connection attempts and errors. |
Loading
A comprehensive engineering framework for designing libraries, CLIs, and APIs specifically optimized for autonomous AI agent consumption.

A command-line interface for managing Dida365 projects and tasks using the official Open API and OAuth authentication.

A comprehensive CLI-based tool for managing Dida365 tasks and projects through Openclaw Skills.

A professional-grade tarot reading module that enables AI agents to conduct deep-dive spreads, provide energy guidance, and generate visual card interpretations.

A robust infrastructure for deploying isolated, sandboxed agents that collaborate across gateways via Discord and private networking.

A professional tool for deploying privacy-focused Umami analytics with same-domain proxying to ensure adblocker-proof data collection.








































