CONNECT

Mercury for ChatGPT

ChatGPT reaches your Mac through a secure tunnel from OpenAI. The tunnel connects outward from your Mac, so nothing is opened on your router. This setup suits people who are comfortable with a terminal. An app in the ChatGPT catalog is in preparation, with no date.

Used on our work Mac, advanced setup

What you need
Try these first
  • Take a screenshot of my Mac and tell me which apps are open.
  • List the files in my Downloads folder and group them by type.
  • Read ~/Documents/notes.txt and give me a three-line summary.

Four steps

  1. 1. Install Mercury

    Download the installer, drag Mercury to Applications, and open it. Version 1.1.0 is not signed with an Apple Developer ID certificate, so macOS asks you to confirm once: follow the three steps on the download page.

  2. 2. Connect ChatGPT

    Install the tunnel-client program with Homebrew (if you do not have Homebrew yet, install it first from brew.sh):

    brew install openai/tools/tunnel-client

    Create a tunnel in the OpenAI platform and keep its tunnel ID and Runtime API key to yourself: do not paste them into files or chats. Then create the tunnel profile in Terminal.

    tunnel-client init --sample sample_mcp_stdio_local --profile mercury --tunnel-id <tunnel-id> --mcp-command "'/Applications/Mercury Device Commander.app/Contents/MacOS/Mercury Device Commander' mcp"

    In the same Terminal window, give tunnel-client the Runtime API key through a variable (CONTROL_PLANE_API_KEY is that same Runtime API key). Type or paste the key (nothing is shown on screen) and press Return. The key stays out of files, chats, and the command history.

    read -s CONTROL_PLANE_API_KEY && export CONTROL_PLANE_API_KEY

    Then check the setup and start the tunnel:

    tunnel-client doctor --profile mercury --explain
    tunnel-client run --profile mercury

    In ChatGPT, choose your tunnel. Keep the last command running while you use Mercury. The variable lives only in this window: in every new Terminal window, set the key again (the read line above) before tunnel-client run.

  3. 3. Allow what you need

    The first time a feature needs it, macOS asks for permission: Accessibility (click and type), Screen Recording (see the screen), Automation (control other apps). Grant only what your tasks need. You can revoke any permission later in System Settings.

  4. 4. Try it

    Ask your assistant for something small first.

What ChatGPT can do on your Mac

See the screen
Take a screenshot of the Mac screen.
Files
Read and write text files, list folders, read system information.
Programs
Run a program with explicit arguments, open apps, files, and links, run AppleScript.
Type and click
Type text exactly in any language and click inside one app window.
Phones
Android: list devices, tap, swipe, type text, and press keys through adb (adb must be installed). iPhone and iPad: listing only.
Queue
Check or cancel queued screen tasks.

Good to know

  • v1 does not ask you before each action. Actions run according to the permission profile you give the assistant: full access, a list of named tools, or read-only.
  • Mercury is not a sandbox. It is a privileged tool for the Mac owner.
  • Mercury works on your Mac and listens on 127.0.0.1 only. Through the OpenAI tunnel, ChatGPT receives only the responses to its own tool calls. The action log records the assistant, the tool, the result, and the time, not the contents of requests.
  • Mercury marks each tool as read-only or destructive, so ChatGPT can ask you before it runs one that changes something.
  • Sign-in with Google or email is planned. It will tie your plan to your account. No date is announced.
  • The Free plan is 100 actions a day on one Mac. See Pricing.

Questions?

Write to us: office@merlin-partners.com

Merlin&Partners