LobsterLAN
/install lobsterlan
LobsterLAN — Agent-to-Agent Communication
Talk to other OpenClaw agents on your LAN.
Setup
- Copy
config/peers.example.jsontoconfig/peers.json - Fill in peer hostnames, ports, and tokens
- Ensure target agents have the required APIs enabled (see below)
- Set up a secure transport (see Network Transport below)
Required Config on Target Agent
For sync ask (chat completions):
// Target agent's openclaw.json — keep bind as "loopback"!
{
"gateway": {
"http": {
"endpoints": {
"chatCompletions": { "enabled": true }
}
}
}
}
⚠️ Do NOT set
gateway.bindto"lan"— OpenClaw will refuse to start if the gateway is exposed on a non-loopback address without TLS. Use a secure transport instead (see below).
For async delegate (webhooks):
{
"hooks": {
"enabled": true,
"token": "a-secure-shared-secret"
}
}
Network Transport
OpenClaw gateways default to bind: loopback and will not start with plaintext on non-loopback addresses. You need a secure transport layer for cross-host communication:
| Approach | Complexity | Best For |
|---|---|---|
| SSH Tunnel ⭐ | Low | Home LANs, simple setups |
| Reverse Proxy (TLS) | Medium | Environments with existing Caddy/nginx |
| Tailscale Serve | Medium | Multi-site or remote agents |
For simple LANs, SSH tunneling is recommended. Both gateways stay on loopback, the SSH tunnel provides encryption, and no gateway config changes are needed.
SSH Tunnel Example
Forward a local port to the remote agent's loopback gateway:
ssh -N -L 18790:127.0.0.1:18790 user@remote-agent-host
Then in peers.json, point the peer to 127.0.0.1:18790 (the local tunnel endpoint).
For persistence, use a systemd user service with Restart=always. See the full setup guide in docs/setup.md.
Commands
Ask (synchronous — wait for reply)
scripts/lobsterlan.sh ask scotty "What is the CPU temperature?"
Use for quick questions where you need the answer now.
Delegate (async — fire and forget)
scripts/lobsterlan.sh delegate scotty "Generate 5 zen wallpapers and push to the file share"
Use for long-running tasks. The peer processes independently.
Status check
scripts/lobsterlan.sh status scotty
List peers
scripts/lobsterlan.sh peers
Agent Usage (from within OpenClaw)
Run via exec tool:
cd ~/.openclaw/workspace/skills/lobsterlan && scripts/lobsterlan.sh ask scotty "status report"
Security
Three layers protect communication:
- Network: LAN-only (firewall blocks external access to gateway port)
- Gateway token: Bearer auth on every request
- Agent ID header (optional):
X-LobsterLAN-Agentsent with self-ID
The gateway token is the real security boundary. The agent ID header is defense-in-depth for environments where you want explicit identity verification.
Environment Variables
LOBSTERLAN_CONFIG— path to peers.json (default:../config/peers.jsonrelative to script)
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install lobsterlan - 安装完成后,直接呼叫该 Skill 的名称或使用
/lobsterlan触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
LobsterLAN 是什么?
Communicate with other OpenClaw agents on your local network. Use when you need to ask another agent a question (sync), delegate a task (async), or check if... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 409 次。
如何安装 LobsterLAN?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install lobsterlan」即可一键安装,无需额外配置。
LobsterLAN 是免费的吗?
是的,LobsterLAN 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
LobsterLAN 支持哪些平台?
LobsterLAN 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 LobsterLAN?
由 Daniel Thomas(@danielithomas)开发并维护,当前版本 v1.0.1。