Share 3 Gmail Inboxes Between Claude Code and Codex via IMAP

aryanXmahajan · x · 2026-08-24

The author shares a fix to avoid reconnecting 3 Gmail inboxes when switching between Claude Code and Codex. The solution involves setting up an app password per inbox with IMAP and installing Better Email MCP. By adding multiple email:password pairs to the EMAILCREDENTIALS variable, both clients share the same local tools. The tool auto-detects settings, allowing AI to search, read, organize, and reply across all inboxes. A manual approval rule ensures AI drafts and triages emails, but nothing leaves Gmail without explicit approval.

Original post →

More from coding & agent

coding & agent channel →