Outbound relay · bridge v11

Your paired Macs

Pair the background bridge once, then use ChatGPT from this hosted playground or an OpenAI-compatible client. Your Mac makes an outbound encrypted connection; this browser never connects to your local network.

Install or update

Install bridge v11

On each Mac, install the current bridge and its per-user background service. Requires the official ChatGPT macOS app and Node.js 22 or newer.

set -eu
umask 077
BIN="$HOME/.local/bin/chatgpt-api"
mkdir -p "$HOME/.local/bin"
TMP_DIR=$(mktemp -d "$HOME/.local/bin/.chatgpt-api-update.XXXXXX")
TMP="$TMP_DIR/chatgpt-api.js"
OLD="$TMP_DIR/previous"
trap 'rm -rf "$TMP_DIR"' EXIT HUP INT TERM
curl -fsSL https://chatgpt.authapi.dev/bridge.js -o "$TMP"
node --check "$TMP"
chmod 700 "$TMP"
HAD_OLD=0
if [ -f "$BIN" ]; then HAD_OLD=1; cp -p "$BIN" "$OLD"; fi
mv -f "$TMP" "$BIN"
if ! "$BIN" install; then
  if [ "$HAD_OLD" = 1 ]; then cp -p "$OLD" "$BIN"; else rm -f "$BIN"; fi
  [ "$HAD_OLD" = 0 ] || "$BIN" install || true
  echo 'Bridge update failed; previous executable and service were restored.' >&2
  exit 1
fi
trap - EXIT HUP INT TERM

Re-running this command safely updates the bridge. The LaunchAgent starts at login and reconnects automatically.

Pair a device

Pair Mac

Devices

Choose the default Mac used by the playground and hosted API.

Checking devices…
Privacy: Prompts and responses transit authapi.dev transiently in memory over TLS to your paired Mac. Payloads are not stored. ChatGPT credentials and the authenticated desktop session never leave your Mac.