OpenAI-compatible
Chat completions, image generations, models, and health are available under https://chatgpt.authapi.dev/v1.
Pair your Mac once, then use the hosted playground or an OpenAI-compatible API client. The bridge keeps your authenticated ChatGPT session on your Mac and maintains an outbound encrypted relay connection.
Use ChatGPT remotely without exposing your Mac to inbound network traffic or moving its desktop credentials to the server.
Chat completions, image generations, models, and health are available under https://chatgpt.authapi.dev/v1.
Your Mac connects outward over TLS and accepts only four typed operations. The hosted browser does not access your local network.
ChatGPT cookies, tokens, passwords, and desktop session data never leave your Mac.
Prompts and responses transit authapi.dev in memory over TLS to your paired Mac and are not stored.
Pair multiple Macs, see online and sign-in status, select a default, and revoke access instantly.
Text uses Temporary Chat. Image chats are deleted before Temporary Chat is restored.
Requires the official ChatGPT macOS app, an active signed-in session, and Node.js 22 or newer.
Install or update the background bridge on your Mac. It validates a private download and restores the previous executable and service if installation fails.
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
In Dashboard, name the Mac and create a 10-minute one-time token. Then run this command and paste the token at its hidden prompt:
~/.local/bin/chatgpt-api pair