#!/bin/zsh # Manager → Link bridge. Talk to the Link OpenClaw instance cleanly, # bypassing the manager shell's OPENCLAW_GATEWAY_PORT=18789 contamination. # # Usage: # link "your message" → one-shot agent turn to Link's main agent # link --raw → run any `openclaw --profile link ...` subcommand # export OPENCLAW_GATEWAY_PORT=18790 if [[ "$1" == "--raw" ]]; then shift exec openclaw --profile link "$@" fi exec openclaw --profile link agent --agent main -m "$*"