Connect Codex to Franz
Let Codex read your mail, chats and calendar in Franz and write drafts that wait for your click. Set it up in the CLI or the app and check the first draft.
Back to SupportCodex connects to Franz on your computer, reads what you allow and writes drafts. It can't send anything: every reply waits in Franz until you click Send.
Before you start
- You need Franz Max, Lifetime or a trial, in the version from meetfranz.com. The Mac App Store version of Franz doesn't have AI apps yet.
- Install Codex, the CLI or the Codex app.
- Keep Franz open. When Franz is closed, Codex can't reach it.
Connect Codex
- In Franz, open Settings > AI > Connected apps and turn on Let AI apps connect to Franz.
- Next to Codex, click Connect.
In the Codex CLI
Click Copy command and run it in a terminal. It adds Franz to Codex with the port Franz shows.
Copy the second line Franz shows,
export FRANZ_MCP_TOKEN=…, and run it in the same terminal. Add it to your shell profile, e.g.~/.zshrc, for next time. On Windows, Franz shows the PowerShell line$env:FRANZ_MCP_TOKEN = "…"instead.Start Codex in that terminal.
In the Codex app
- In Codex, go to Settings > MCPs > Add and pick Streamable HTTP.
- In Franz, click Copy URL and paste it into Codex. Leave "Bearer token env var" empty.
- Add a header named
Authorization. In Franz, click Copy value and paste it as the header's value. It starts withBearer.
Ask Codex something about your mail, e.g. "What's new in my inbox today?".
Allow Codex
The first time Codex asks for something, Franz opens Allow Codex?. Only you can answer it. Codex can't see or press that window.
Choose what Codex can use and click Allow. What AI apps can see and do in Franz explains each choice and the activity log.
Check the first draft
Ask Codex for a reply, e.g. "Draft a reply to Anna's last email and say Thursday works." The draft waits in Franz's assistant panel, in a thread named after Codex. Nothing leaves until you click Send….
If it doesn't connect
- Codex can't reach the server: check that Let AI apps connect to Franz is on in Settings > AI > Connected apps.
- Codex gets "unauthorized": in the CLI, check that
FRANZ_MCP_TOKENis set in the terminal you started Codex from. If you disconnected Codex in Franz, click Connect again and use the new key.