Connect Codex to Apple Mail

To connect Codex to Apple Mail, install Liamia, click Connect next to Codex, tick the box, and start a new Codex chat. It works in the codex command, the Codex app and Codex inside the ChatGPT app, because all three read the same settings file. A regular ChatGPT chat cannot use Liamia.

7 days free, every feature, no card. macOS 14 or later. Updated .

Liamia's Assistants settings: Claude Desktop shows Connected, Claude Code has a Connect button, and Cursor, Codex, Antigravity and Gemini CLI can be installed.
Settings, Assistants: one Connect button per assistant.

How it works

Codex reads your Apple Mail in three steps

  1. Install Liamia

    Drag it to Applications and switch on Full Disk Access for Liamia. Click Allow when macOS asks to let it control Mail.

  2. Click Connect next to Codex

    Liamia names OpenAI as the company that gets the emails Codex reads and asks you to tick a box. Then it adds a Liamia entry to ~/.codex/config.toml. A Mac with only the ChatGPT app uses the Codex inside it.

  3. Allow it, then start a new chat

    Switch on Full Disk Access for the app that runs Codex: ChatGPT, the Codex app or your terminal app. Codex loads Liamia when a chat starts, so open a new one and ask about your mail.

Where it works

Which Codex can use Liamia

Where you use itWorks with LiamiaFull Disk Access goes to
The codex commandYesYour terminal app, such as Terminal or iTerm
The Codex appYesCodex
Codex inside the ChatGPT appYesChatGPT
A regular ChatGPT chat, on the web or a phoneNo. It cannot start a helper on your Mac.Not needed

All three Codex apps read ~/.codex/config.toml, so one Connect covers them. Since Liamia 1.3.4, the info button beside Codex in Settings says this too. Tested November 12, 2026 with Codex 0.167.0, both the codex command and the copy inside the ChatGPT app.

Using it

What to ask, and the command-line way

Things to ask Codex

  • “Which emails from this week still need a reply?”
  • “Find the invoice from the hosting company and tell me the total.”
  • “Draft a reply to Sam saying Monday works.” Codex saves it to Drafts.
  • “Archive the old newsletters.” You see each one listed and click once to confirm.

Prefer the terminal?

Liamia's Connect button does this for you. To add the same helper by hand:

codex mcp add Liamia -- /Applications/Liamia.app/Contents/MacOS/mailbridge-mcp

To remove it later: codex mcp remove Liamia.

What OpenAI sees: the emails Codex reads for you go to OpenAI under Codex's own terms, like any other tool Codex uses. Want your mail to stay on your Mac? Use Liamia's built-in local AI. More on who sees what.

What it will never do

You stay in charge of your mail

  • Never sends without your click. Every email waits in a Liamia dialog that shows the exact recipient, subject and text. Only your click on Send sends it. No setting, tool or license skips it.

  • Never asks for your mail password. Liamia reads the files Apple Mail already keeps on your Mac, through Full Disk Access that you switch on. It holds no password and no sign-in token for your mail.

  • Never uploads your email to Liamia. Our server only checks your license and offers updates. With the local AI, your mail stays on your Mac. An assistant you connect, like Claude, gets only the messages it reads.

Questions

Short answers

Can ChatGPT read my Apple Mail with Liamia?

Codex inside the ChatGPT app can, once you connect Codex in Liamia. A regular ChatGPT chat cannot, because it does not start helpers on your Mac. A Liamia connector for the regular ChatGPT chat is not available yet.

Do I need an OpenAI API key?

No. Codex signs in with your ChatGPT account, and Liamia needs no key for your mail or for Codex.

Codex says Liamia could not start. What do I do?

Update Liamia to 1.3.4 or later, then start a new Codex chat. Codex 0.167 sends a new field when a chat starts, and Liamia versions before 1.3.4 could not read it.

Which app needs Full Disk Access?

The app that runs Codex: ChatGPT for Codex inside ChatGPT, the Codex app, or your terminal app for the codex command. macOS gives file access to the app that starts Liamia's helper. Liamia opens the right System Settings page.

Can Codex send an email by itself?

No. When Codex wants to send, Liamia opens a dialog with the exact recipient, subject and text, and nothing goes out until you click Send.

Try it on your own inbox

Every feature, free for 7 days. No card, no sign-up, nothing sends without your click.