Hosted API · paired macOS bridge

Your ChatGPT app.
Available anywhere.

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.

Request path
Your clientHTTPS · OpenAI-compatible JSON
authapi.dev relayTransient in-memory routing over TLS
Your paired MacOutbound connection · official ChatGPT app

A secure hosted surface

Use ChatGPT remotely without exposing your Mac to inbound network traffic or moving its desktop credentials to the server.

API

OpenAI-compatible

Chat completions, image generations, models, and health are available under https://chatgpt.authapi.dev/v1.

OUT

Outbound-only bridge

Your Mac connects outward over TLS and accepts only four typed operations. The hosted browser does not access your local network.

KEY

Credentials stay home

ChatGPT cookies, tokens, passwords, and desktop session data never leave your Mac.

RAM

Transient payloads

Prompts and responses transit authapi.dev in memory over TLS to your paired Mac and are not stored.

MAC

Named devices

Pair multiple Macs, see online and sign-in status, select a default, and revoke access instantly.

TMP

History cleanup

Text uses Temporary Chat. Image chats are deleted before Temporary Chat is restored.

Pair in under a minute

Requires the official ChatGPT macOS app, an active signed-in session, and Node.js 22 or newer.

1. Install bridge v11

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
Open dashboard

2. Create and paste a token

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
Experimental and unofficial. This platform automates the official desktop UI and is not an OpenAI-supported ChatGPT API. Desktop app changes may require bridge updates.