Repository navigation
Description
Summary
Please support connecting multiple separately authorized accounts for the same app/connector, with explicit account selection and hard privacy boundaries.
This is different from switching the active Codex/OpenAI account or profile. One Codex session may need to work with multiple accounts for the same external service: personal Gmail and work Gmail, multiple Slack workspaces, a client Google Drive and a company Google Drive, or personal and work Google Calendars.
Today, the app/connector model appears oriented around one active connection per provider. That creates two problems:
- users have to disconnect/reconnect or switch context manually, which is slow and error-prone;
- Codex/ChatGPT can become unsafe to use for connector workflows if it is unclear which mailbox, workspace, Drive, calendar, or tenant a tool call will read from or write to.
Why this matters
This is a normal workflow for many users, not an edge case:
- Search a personal Gmail account for a receipt, then a work Gmail account for a customer thread.
- Use an internal Slack workspace and one or more client Slack workspaces.
- Compare availability across personal and work Google Calendars.
- Search a company Google Drive without also exposing personal Drive content.
- Work with more than two accounts when consulting, freelancing, or managing multiple businesses.
The current documentation reinforces the single-selected-account limitation in a few places:
- Slack is documented as one workspace at a time, requiring disconnect/reconnect to switch workspaces.
- Google app access is tied to the Google account chosen during setup.
- Google Drive setup warns users with multiple Google accounts to choose the work account and uses domain matching to prevent accidentally connecting the wrong account.
Those are useful safety controls, but the missing product capability is first-class support for multiple named connections at the same time.
Proposed behavior
Codex/ChatGPT should allow multiple named app/connector connections per provider, for example:
Gmail - PersonalGmail - WorkSlack - InternalSlack - Client AGoogle Drive - CompanyGoogle Calendar - Personal
Expected behavior:
- A user can connect more than one account/workspace for the same app/connector.
- Each connected account has a clear user-visible label, such as email address, workspace name, organization name, or user-defined nickname.
- Users can set defaults per connector, per thread, or per workspace, while still seeing which account is being used.
- When a request is ambiguous, Codex/ChatGPT asks which connected account to use before reading data or taking action.
- Prompts can target a named connection directly, e.g. "search Work Gmail" or "send this in Client A Slack".
- Tool calls expose and enforce the selected connection identity instead of silently choosing among available accounts.
- Search results, citations, and action confirmations show which account/workspace they came from.
- Users can disconnect or refresh one connected account without disturbing other accounts for the same provider.
Privacy and safety requirements
Account boundaries should be explicit and enforceable:
- Do not silently merge personal, work, and client data.
- Cross-account search, summarization, or comparison should require an explicit user instruction.
- Side-effecting actions such as sending email, posting Slack messages, editing Drive files, sharing documents, or changing calendar events should clearly confirm the selected account/workspace before execution.
- If the requested account/workspace does not match the active connector identity, fail closed instead of falling back to another account.
- Admin-managed accounts should be able to enforce domain, workspace, retention, audit, and policy restrictions.
- Memory/context should not make information from one account implicitly safe to reuse in another account context.
Related and adjacent issues
This request is related to, but narrower than, general Codex account/profile switching:
- First-class multi-account auth via '--auth-profile' #4432 - first-class multi-account auth via auth profiles
- Ability to use more than one account #12029 - ability to use more than one Codex account
- Environment Isolation in Codex for separate accounts and configs across projects and organizations #14330 - environment isolation across accounts/config/tools
It also generalizes several connector-specific problems:
- Microsoft 365 connectors need explicit account and tenant selection #19489 - Microsoft 365 connectors need explicit account and tenant selection
- Codex Desktop Slack connector keeps stale OAuth link after revoke/reconnect; no reliable hot-swap path for multi-Slack users #19669 - Slack connector stale OAuth / no reliable hot-swap path
- Vercel connector cannot recover from revoked or stale OAuth grant after account switch #20286 - Vercel connector cannot recover from revoked or stale OAuth grant after account switch
- Refresh remote plugin cache on auth changes #20265 - keys remote plugin cache by account/workspace identity, which helps with stale account state but does not appear to provide multiple simultaneous named connector accounts
Acceptance criteria
- A user can connect at least two accounts for the same provider, such as two Gmail accounts or two Slack workspaces.
- The UI clearly shows all connected accounts for a provider and which one is active for a given request.
- Ambiguous connector requests prompt for account/workspace selection before any data access.
- Connector/tool calls can target a specific named connection.
- Connector results identify the source account/workspace.
- External actions confirm the selected account/workspace before execution.
- Data from different accounts is not combined unless the user explicitly asks for cross-account work.
- Disconnecting or refreshing one account does not break other accounts for the same provider.
- Enterprise/Business admins can restrict which domains/accounts/workspaces users may connect.
Activity
github-actions commentedon Apr 30, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
richardwhatever commentedon May 1, 2026
I work across multiple companies, each with separate Google logins. Ideally i could instantiate separate connectors for each account, then reference them explicitly, e.g. "Check Business A email for..."
I want to do this from within one codex / chatgpt account.
wheel58m commentedon May 5, 2026
I'm running into this limitation as well. I regularly need to access multiple Google Workspace accounts (work, freelance, school, personal). Has anyone found a practical interim workaround or pattern for managing this more efficiently (multiple MCPs, custom plugins, or something else entirely)?
Dsyt123 commentedon May 26, 2026
Adding a project-scoped use case that is slightly narrower than the broader multi-account request here.
I often work across multiple Codex Desktop projects/repos that map to different real-world identities. For example:
Today, the connector identity appears to be global for the provider/session. In practice this makes write-capable connectors risky: when Codex drafts or sends email, searches Drive, reads calendar events, or posts to Slack, I need to be sure the action is happening from the account that belongs to the current project context.
A useful extension of this feature would be project/workspace-level connector defaults, for example:
~/.codex/config.tomlor Desktop project settings can bind/path/to/project-atoGmail - Workand/path/to/project-btoGmail - Personal;This would reduce accidental cross-contamination between personal, company, and client data while preserving the convenience of automatic connector use.
benjamindell commentedon May 26, 2026
I really need this feature as well. For me, it's Notion, but the principle is the same. I have a workspace that is integral to the way a particular project in Codex functions in terms of the automations I've set up. I have this architecture set up for multiple projects, each with their own Notion workspace.
I've just discovered that I can only have the Notion account that I've connected in Codex connected to one of those workspaces, which completely prevents me from doing what I'm trying to do. I'm really hoping the ability to create multiple instances of each connected provider comes soon.
MarianoMiguel commentedon May 27, 2026
+1. Would love to run the same automations for multiple Slack + multiple Gmail accounts. It's a bummer that I've discovered some really good workflows / automations but can only do one pair of accounts at a time
prabuw commentedon May 28, 2026
+1 to this.
I have two personal email/google accounts, and a business google workspace.
I want to make codex desktop my daily driver for everything.
It would be amazing if I can connect them all to codex with controls (e.g. slice it by project etc.)
tarek101 commentedon May 28, 2026
I also very much need this feature. Who doesn't have more than one gmail account?
AriMKatz commentedon Jun 3, 2026
Yes I need this too
iamhectorlopez commentedon Jun 6, 2026
worked on this and a PR can be opened here: https://github.com/openai/codex/compare/main...iamhectorlopez:codex/multi-account-app-aliases?expand=1
tldr:
Codex Apps should support user-defined account aliases like Personal, Work, and University. The model can route by alias or ask when ambiguous, while the app UI can manage per-alias connections. This avoids picker spam and creates a clean path to true multi-account OAuth.
The missing production pieces are:
OAuth storage keyed per app account
Example key: (app_id, account_alias) or (connector_id, account_alias).
Connect flow accepts an alias
The UI/backend needs per-alias account actions, where aliases are fully user-defined: “Connect Personal”, “Reconnect Client A”, “Disconnect University”, etc., instead of one global “Connect Gmail”.
Tool calls carry the selected account
When Codex decides “use Work”, that alias must reach the connector/tool execution layer.
Per-alias connection state in UI
The plugin page should show:
Personal -> Connected
Work -> Connect
University -> Reconnect
Safety/provenance
Tool results should probably expose or log “using Work Gmail” so the model and user do not accidentally mix accounts.
End-to-end tests with fake multiple sessions
A mock app should prove two aliases can return different data.
KatTate commentedon Jul 9, 2026
This request maps directly to a real failure we hit today. I use a self-serve ChatGPT Business workspace for company knowledge work and Agents, but I also need a personal Pro account for higher-capacity Codex work. The same GitHub identity was connected to both workspaces. Codex code review silently billed/routed PR reviews to the exhausted Business workspace even though the Pro account had substantial usage remaining. The Pro usage dashboard and GitHub error therefore contradicted each other.
The only working recovery was to open the Business account in an Incognito window, disable auto-review, disconnect GitHub there, reconnect GitHub under Pro, and test again. There was no visible account/workspace selector explaining which entitlement would be used.
The broader business need is mixed seat tiers within one governed Business workspace: standard seats for most employees and Pro-capacity seats for a smaller group of power users. Separate personal Pro accounts fragment Agents, company knowledge, permissions, analytics, billing, and connector identity. At minimum, GitHub and other connectors should show and require an explicit account/workspace selection, including which usage pool will be charged.
poolboy6000 commentedon Jul 10, 2026
+1, I would get a ton of value from this feature.
8 remaining items
Omegamoney commentedon Jul 31, 2026
Bump, I work for multiple companies and some have their own workspaces, having to sign off then sign in each time is a huge hassle.
azolotov commentedon Jul 31, 2026
Superhuman just solved this on their end:
But we still want to be able to do this for every connector 😉
dany74q commentedon Aug 2, 2026
+1, I'd love to connect each family member's personal email / drive to one GPT account
h8192-adorie commentedon Aug 4, 2026
Update — 2026-11-07: Withdrawing this Gmail-specific request for my workflow.
Gmail now supports multiple connected accounts. I verified two distinct Gmail connections in the same session using account-specific profile lookups and mailbox searches. The current tools expose
link_idfor selecting the connection andfrom_addressfor send and draft operations. My earlier Send-as workflow was also successfully tested after correcting the Gmail configuration.I am therefore withdrawing the Gmail-specific request in this comment, including the earlier statement that the tools expose no sender field. This update concerns my Gmail workflow; it does not establish that every provider or every acceptance criterion in the parent issue has been implemented.
Official documentation: Support multiple accounts.
Original comment, retained for historical context
A related Gmail-specific case is worth including in the acceptance criteria: multiple verified Send mail as identities within a single connected Gmail account.
This is distinct from connecting multiple OAuth accounts. A user can have one primary Gmail mailbox with several verified sender identities, including Google Workspace or custom-domain addresses. Gmail’s web UI and Gmail API support these
SendAsaliases, but the current Codex Gmail connector tools do not expose afrom/sendAsEmailparameter for send, draft, reply, or forward operations. As a result, Codex cannot explicitly select or guarantee the correct sender identity even when Gmail is already configured correctly.A safe implementation could:
users.settings.sendAsidentities;send_email,create_draft, reply, and forward tools;We reproduced this with one personal Gmail account and two verified Google Workspace Send-as identities. Both identities work correctly in Gmail web, but the connector cannot select either because its write tool schemas have no sender field.
This would complement multi-account support and prevent mail from being sent under the wrong personal or company identity.
elix1er commentedon Aug 8, 2026
Confirmed this in a real ChatGPT Gmail workflow today.
I use two Gmail identities and explicitly tested whether the integration can target both. I created two drafts, one addressed to each mailbox, then read both drafts back through the Gmail connector. Both drafts were still created from the same currently authenticated Gmail identity. The Gmail draft action exposes no
account,connection_id, orfromselector.This is already causing practical problems for job-application workflows: the message body/signature can contain the intended address while the actual sender identity is a different connected Gmail account. That is subtle and easy to miss.
The most useful fix for me would be exactly what this issue proposes:
Personal + work is only the simplest example. Freelancers, consultants, founders, and users migrating from an old address to a new one routinely need two or more mailboxes in the same ChatGPT workflow.
derKlinke commentedon Aug 14, 2026
yes just set up google workspace for a team and now i have to decide if want to continue connecting to my google workspace or the workspace of the team, ideally i would like to have both in parallel. would love if this would become a thing!! <3
andretomasi commentedon Aug 17, 2026
+1. Working on projects with different Google Workspace accounts for each one, using each of those accounts for Google APIs, Supabase, Firebase and other stuff, Codex becomes very risky when we sometimes inadvertently mix up the accounts used. A "profile selector" that remembers which accounts were logged in to that profile would be perfect.
elix1er commentedon Aug 18, 2026
wen?
ono-caret0 commentedon Aug 25, 2026
"Labeled, simultaneous connections" is the right framing — that's the model I went with.
One thought on the guardrails: a gateway can't decide what an ambiguous request means, it doesn't have the conversation. What it can do is expose real identity per account — the email, the workspace name — not just a label. Then the client can resolve it or ask.
Disclosure: I'm the founder of ProxyLoom — https://proxyloom.dev/en/ Open beta, free for now.
iamhectorlopez commentedon Aug 28, 2026
Update: Gmail now supports multiple connected accounts in ChatGPT/Codex, including account labels and Connect another account. However, using @gmail does not show all connected accounts or provide an account selector, so I cannot explicitly choose which Gmail connection to invoke when needed.
I don’t see equivalent multi-account support for other account-backed plugins/connectors. The broader request remains: support named accounts and explicit per-task account selection across all applicable integrations.
I also encountered a setup issue: starting authorization in one Chrome profile and completing it in another ends with Try again. Please clarify whether this is an intentional session constraint. If so, show an actionable error; if not, please investigate the callback flow. Is Gmail the first rollout of broader multi-account support?
masuhara commentedon Sep 1, 2026
Gmailの複数接続の対応ありがとう!Driveの対応も熱望してます!おねがい!
Thanks for adding support for multiple Gmail accounts! I’d love to see the same support for Google Drive as well. Please make it happen! 🙏
troyjr4103 commentedon Nov 1, 2026
Until Codex supports this natively, an MCP gateway in front of the services gets you named accounts for some of them today. Gmail now takes more than one account in ChatGPT and Codex (per the update above), but most other connectors still hold one.
Disclosure: I built Kin, which is one of those gateways. You connect each account in Kin separately, like a work and a personal GitHub or two Linear workspaces, each with its own label. Codex adds Kin once (
codex mcp add kin --url https://app.kinlab.ai/mcp, thencodex mcp login kin) and reaches all of them. When a request could fit more than one account, Kin returns each one with the account it's signed in as and tells Codex to ask you which, so it doesn't guess. Each account keeps its own rules too. I ran Codex CLI against two GitHub connections, one set to read only and one that asks before any change, and Codex was offered no write on the read-only one.What it doesn't cover yet: Google services are invite-only in Kin and Slack isn't offered, so not the Gmail, Drive, Calendar or Slack cases most people here raised. I haven't tried it in Codex cloud tasks.
https://kinlab.ai/docs/connections?utm_source=github&utm_medium=social&utm_campaign=threads-1031&utm_content=codex-20500#several-accounts
mehdis34 commentedon Nov 8, 2026
For mailboxes outside Gmail (iCloud, custom-domain IMAP) plus read-only Google Chat and Telegram, a single remote MCP connector also works in ChatGPT today (disclosure: I built Fezola). Each result names its account, and replies are drafts in the right mailbox. https://app.fezola.com/?utm_source=github&utm_medium=community&utm_campaign=codex-20500
balabommablock-cpu commentedon Nov 9, 2026
A quick status check, because a lot has landed since this was filed and the newer comments mostly ask "when?":
Already there
_meta["openai/profile"]) supplies a stable ID and a label.link_idto pick the connection,from_addresson send and draft).Still open, going by this thread
@Gmail. You can't choose the connection yourself when you already know it (@iamhectorlopez).Maybe retitle this issue to the remaining gaps (1 to 4), so it stops reading as "nothing exists yet"? That would also make it easier to tell what's left.
sassan-ali-tat commentedon Nov 30, 2026
Strongly support this request. Please extend the named-account model to provider-independent IMAP/SMTP mailboxes (including self-hosted and managed hosting providers such as Hetzner), with explicit selection of verified sender identities. Email is a fundamental communication channel; a mobile AI agent that cannot read and send mail through the user's actual accounts is severely limited. This should work across ChatGPT surfaces, especially the native iOS app and Voice Mode, with explicit send authorization and no silent fallback to another account. Please also consider full read/write support for private MCP integrations on individual Pro subscriptions as an alternative.