CGChatGPT Desktop API
Connect this Mac · localhost only

ChatGPT dashboard

Run the terminal command once on this Mac. It installs the bridge as a background service and connects this dashboard directly to your signed-in ChatGPT desktop app.

Terminal connection

Connect ChatGPT

Requires Node.js 22 or newer. Copy this command into Terminal on the Mac where the official ChatGPT app is installed and signed in:

node -e 'if (+process.versions.node.split(".")[0] < 22) { console.error("Node.js 22 or newer is required."); process.exit(1) }' && tmp="$(mktemp -d)/chatgpt-api.js" && curl -fsSL https://chatgpt.codexauthapi.dev/bridge.js -o "$tmp" && node --check "$tmp" && mkdir -p "$HOME/.local/bin" && chmod 700 "$tmp" && mv "$tmp" "$HOME/.local/bin/chatgpt-api" && rmdir "${tmp%/*}" && "$HOME/.local/bin/chatgpt-api" install

The command installs a per-user macOS LaunchAgent. After it finishes, you can close Terminal; the bridge starts automatically at login and restarts if needed.

This connection is different from Codex OAuth: ChatGPT remains a local desktop API on this Mac and is not exposed as a hosted remote endpoint.