Open in AI Agent for Gmail by thomasoclegg
Right-click a Gmail thread to open it in Claude, ChatGPT, Gemini, Claude Code, Codex or another AI. Tick several emails and the AI sorts them into tasks and drafts the replies. Runs on your computer, and nothing is sent to the developer.
Extension Metadata
Screenshots
About this extension
Right-click a Gmail thread to open it in Claude, ChatGPT, Codex or one of seven other AIs. Tick several emails first and the AI sorts them into tasks.
I built this for my own inbox. Web AIs (Claude, ChatGPT, Gemini, Microsoft Copilot, Perplexity, Grok, Le Chat and DeepSeek) open in a new tab next to Gmail with the whole thread copied: press Cmd+V on a Mac or Ctrl+V elsewhere, read it, then press Enter. Claude Code and Codex open a session on your computer and read the thread through their own Gmail connection.
Set up in two steps
Then right-click any email in Gmail. Tabs that are already open need no reload.
What happens when you click
Several emails at once
What it does with your email
You need
Free and open source (MIT). The homepage links to the source on GitHub.
If it saves you time, please give something to Friends of Larnaca Cats, a volunteer group that neuters, feeds and treats street cats in Larnaca, Cyprus. The donation link is on the settings page; the money goes straight to them.
Not affiliated with or endorsed by Google, Anthropic, OpenAI, Microsoft, Perplexity, xAI, Mistral AI, DeepSeek or Mozilla. Gmail, Gemini, Claude, ChatGPT, Codex, Copilot, Perplexity, Grok, Le Chat and DeepSeek are trademarks of their owners.
I built this for my own inbox. Web AIs (Claude, ChatGPT, Gemini, Microsoft Copilot, Perplexity, Grok, Le Chat and DeepSeek) open in a new tab next to Gmail with the whole thread copied: press Cmd+V on a Mac or Ctrl+V elsewhere, read it, then press Enter. Claude Code and Codex open a session on your computer and read the thread through their own Gmail connection.
Set up in two steps
- Add the extension.
- Tick the AIs you use on the page that opens.
Then right-click any email in Gmail. Tabs that are already open need no reload.
What happens when you click
- Inbox: your AIs appear at the top of Gmail's right-click menu.
- Inside an open thread: right-click and use Firefox's menu (under "Open in AI Agent for Gmail" when you pick more than one AI).
- Web AIs: the extension opens the thread, copies the subject, senders, dates and message text with a short prompt, and opens the AI's site in a new tab next to Gmail. A note in Gmail names the keys to press. You paste and send.
- Copy thread for any AI: copies the same text and opens nothing.
- Claude Code pre-fills a session named after the email for you to start. With a working folder set, Codex starts straight away.
- Click the toolbar icon to change your AIs or the working folder.
Several emails at once
- Tick two or more emails in the inbox, right-click one of them and pick, for example, "Ask ChatGPT about 3 emails". Up to 25 at a time.
- Web AIs and Copy get each thread's full text, read in the background from Gmail's print view. Nothing is opened or clicked, so unread emails stay unread.
- The prompt asks the AI to group the threads into tasks, put related ones together, and give each task its status, what is asked, any deadline, the next step and a draft reply, most urgent first.
- Claude Code and Codex get a list of thread IDs and links, and read the emails through their own Gmail connection. They are asked to send, post, book, pay or change nothing without your approval.
What it does with your email
- Runs on your computer. No server and no analytics. Nothing is sent to me.
- It reads emails only after you pick an AI for them, and only those threads.
- Web AIs get the email only through your clipboard. You see it and press Enter yourself.
- Claude Code and Codex get the mailbox address, thread IDs and Gmail links through a link to their desktop app; Claude Code also gets the subject, to name the session. That hand-over, and the copy to your clipboard, is why Firefox lists "personally identifying information", "personal communications" and "website content" when you install it.
- The prompt asks the AI to treat the email as information, not instructions, and to draft replies for you to review.
- Two side effects: picking a web AI or Copy thread for any AI for a single inbox row opens the thread, so Gmail marks it read, and the copied text replaces whatever was on your clipboard.
You need
- Firefox 140 or later on a computer, with Gmail in the browser (not the Gmail app).
- For a web AI: that AI's website, signed in if it asks.
- For Claude Code or Codex: the Claude desktop app or the ChatGPT desktop app, with Gmail connected for the same mailbox.
Free and open source (MIT). The homepage links to the source on GitHub.
If it saves you time, please give something to Friends of Larnaca Cats, a volunteer group that neuters, feeds and treats street cats in Larnaca, Cyprus. The donation link is on the settings page; the money goes straight to them.
Not affiliated with or endorsed by Google, Anthropic, OpenAI, Microsoft, Perplexity, xAI, Mistral AI, DeepSeek or Mozilla. Gmail, Gemini, Claude, ChatGPT, Codex, Copilot, Perplexity, Grok, Le Chat and DeepSeek are trademarks of their owners.
Rated 0 by 0 reviewers
Permissions and data
Required permissions:
- Input data to the clipboard
- Access your data for mail.google.com
Optional permissions:
- Access your data for mail.google.com
Required data collection, according to the developer:
- Personal communications
- Personally identifying information
- Website content
More information
- Add-on Links
- Version
- 1.5.0
- Size
- 130.44 KB
- Last updated
- 11 days ago (Nov 5, 2026)
- Related Categories
- License
- MIT License
- Privacy Policy
- Read the privacy policy for this add-on
- Version History
- Add to collection
The developer of this extension asks that you help support its continued development by making a small contribution.
If your AIs stop appearing in Gmail's right-click menu after a Gmail update, open the email and right-click inside it to use Firefox's own menu, and please tell me: https://github.com/thomasoclegg/gmail-to-agent/issues
Ideas and feature requests: https://github.com/thomasoclegg/gmail-to-agent/discussions/categories/ideas
Email: quick.open.agent@gmail.com