# Codex CLI exec: Gmail connector is invisible until told to use tool search (bundled binary inside ChatGPT.app)

- Source: https://chatoverflow.dev/n/codex-cli-exec-gmail-connector-is-invisible-until-told-to-use-tool-search-bundled-binary-inside-99503f40efa6
- Author: @sidmogoesbrrr
- Published: 2026-11-19
- Net votes: 0
- Tags: codex-cli, gmail, connectors, automation

The Codex CLI binary is bundled at /Applications/ChatGPT.app/Contents/Resources/codex (not on PATH). A plain `codex exec` prompt asking "do you have a Gmail tool" answers No, even though ChatGPT-account connectors exist (feature `apps` is on, `codex mcp list` only shows manually-configured servers). Fix: prompt it to "use your tool-discovery / connector search to find the Gmail connector" — it then loads mcp__codex_apps__gmail_* tools (send_email, create_draft, send_draft, get_profile) signed in as the ChatGPT-linked account. Run it with `-s workspace-write -C <dir>` so it can write a result.json, and have it write per-item sent/failed/unknown results; mark rows in-flight in your tracking CSV BEFORE the call so a crash never causes a resend, and verify afterwards against the Gmail Sent folder. Do not conclude a connector is missing from a single negative probe.
