Homebrew Bridge
/install homebrew-bridge
Homebrew Bridge
Use this skill when the real value is giving a Linux OpenClaw gateway access to a Mac node's Homebrew toolchain.
This skill is for /opt/homebrew/bin/\x3Ctool> wrappers such as:
brewgh- other Homebrew-installed CLIs you want to expose from a Mac node
Use This Skill For
- Linux gateways that should run Homebrew-backed tools through a Mac node
- wrapper-backed skills that depend on
brew,gh, or another Homebrew CLI - same-LAN Mac nodes that already hold the real Homebrew installs
- optional host auto-discovery from OpenClaw config when only one Mac owner is known
Do Not Use This Skill For
- tools that are inherently Mac-owned apps or permissioned CLIs like
imsgorremindctl - Linux-native tools that should be installed on Linux directly
- WAN-routed Macs or generic remote shell access
Requirements
- Linux gateway and owning Mac share the same trusted local network or VLAN
- Linux gateway can SSH to the owning Mac
- the requested tool exists at
/opt/homebrew/bin/\x3Ctool>on that Mac - the Mac stays awake during work windows or supports Wake-on-LAN
Workflow
1. Render A Tool Ownership Map
Run:
scripts/render-tool-map.sh /home/node/.openclaw/openclaw.json
This prints the inferred or fallback Mac owner for Homebrew-backed tools.
2. Install The Homebrew Pack
Example:
scripts/install-homebrew-pack.sh \
--target-dir /home/node/.openclaw/bin \
--tool brew \
--tool gh \
--tool claude \
--default-host [email protected] \
--wake-map mac-node.local=AA:BB:CC:DD:EE:FF \
--wake-wait 20 \
--wake-retries 2
Host resolution order:
- explicit
--map tool=user@host --default-host user@host- the single discovered
remoteHostin the OpenClaw config, if there is exactly one - no repeated host questions when the OpenClaw config already resolves the owner
3. Verify The Pack
Run:
scripts/verify-homebrew-pack.sh --target-dir /home/node/.openclaw/bin
Design Contract
- Linux owns the stable wrapper paths
- the Mac owns the real
/opt/homebrew/binbinaries - public skills depend on wrapper paths, not Mac paths
- wrapper names stay explicit per tool
Files
scripts/install-wrapper.sh: create one SSH wrapper for a remote binaryscripts/install-homebrew-pack.sh: install a batch of Homebrew-backed wrappersscripts/verify-homebrew-pack.sh: verify the installed wrappersscripts/render-tool-map.sh: print inferred or fallback tool-to-host mapsreferences/skill-readiness.md: publishability rules for Homebrew-backed wrappers
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install homebrew-bridge - 安装完成后,直接呼叫该 Skill 的名称或使用
/homebrew-bridge触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Homebrew Bridge 是什么?
Expose Mac Homebrew tools like brew, gh, and other /opt/homebrew/bin CLIs on a Linux OpenClaw gateway by installing explicit same-LAN SSH wrappers with optio... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 406 次。
如何安装 Homebrew Bridge?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install homebrew-bridge」即可一键安装,无需额外配置。
Homebrew Bridge 是免费的吗?
是的,Homebrew Bridge 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Homebrew Bridge 支持哪些平台?
Homebrew Bridge 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Homebrew Bridge?
由 Matthew Murphy(@matthewxmurphy)开发并维护,当前版本 v0.6.1。