gateway_public_url in add-on options if the button URL is wrong.
jq -r '.gateway.auth.token' /config/.openclaw/openclaw.jsonopenclaw config get redacts secrets — read the file directly instead.)
MCP (Model Context Protocol) lets OpenClaw control Home Assistant entities, services, and automations directly.
Automatic (recommended)homeassistant_token in Settings → Add-ons → Configurationauto_configure_mcp to ON in add-on Configurationmcporter config add HA "http://localhost:8123/api/mcp" \ --header "Authorization=Bearer YOUR_LONG_LIVED_TOKEN" \ --scope homeAfter upgrades — if OpenClaw has stale HA data:
mcporter call home-assistant.GetLiveContext
Tip: The first MCP session needs a capable model (Gemini 3.1 Pro, Claude Sonnet 4, GPT-4.1). After setup, cheaper models work fine.
Scheme: https Forward: <HA-IP>:18789 WS: ON SSL tab: Request a new SSL certificate (Let's Encrypt or custom)Caddy
openclaw.example.com {
reverse_proxy <HA-IP>:18789
}
Traefik (docker labels)
- "traefik.http.routers.openclaw.rule=Host(`openclaw.example.com`)" - "traefik.http.routers.openclaw.tls.certresolver=le" - "traefik.http.services.openclaw.loadbalancer.server.port=18789"Tailscale HTTPS
# 1. Set access_mode to tailnet_https in add-on configuration # 2. Enable Tailscale HTTPS in your Tailnet admin: DNS → HTTPS Certificates # 3. On the HA host: tailscale cert <machine-name>.ts.net # 4. Set gateway_public_url to https://<machine-name>.ts.net:18789