Skip to content

Feature request: support multiple named accounts per app/connector #20500

Open

Description

@iamhectorlopez

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 - Personal
  • Gmail - Work
  • Slack - Internal
  • Slack - Client A
  • Google Drive - Company
  • Google 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:

It also generalizes several connector-specific problems:

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

  1. added
    enhancement
    codex-web
    auth
    on Apr 30, 2026
  2. github-actions commented on Apr 30, 2026

    @github-actions
    Contributor
  3. richardwhatever commented on May 1, 2026

    @richardwhatever

    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.

  4. wheel58m commented on May 5, 2026

    @wheel58m

    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)?

  5. Dsyt123 commented on May 26, 2026

    @Dsyt123

    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:

    • a company/work repo should use a work Gmail / Calendar / Drive account;
    • a personal product repo should use a personal Gmail / Calendar / Drive account;
    • client repos may need client-specific Slack/Drive/GitHub connector identities.

    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.toml or Desktop project settings can bind /path/to/project-a to Gmail - Work and /path/to/project-b to Gmail - Personal;
    • the active project UI clearly shows which connector account will be used before any read/write action;
    • if a project has no matching connector account configured, Codex should ask instead of silently falling back to a global account;
    • side-effecting actions should confirm the selected account/workspace, especially for Gmail, Calendar, Drive, Slack, and GitHub.

    This would reduce accidental cross-contamination between personal, company, and client data while preserving the convenience of automatic connector use.

  6. benjamindell commented on May 26, 2026

    @benjamindell

    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.

  7. MarianoMiguel commented on May 27, 2026

    @MarianoMiguel

    +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

  8. prabuw commented on May 28, 2026

    @prabuw

    +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.)

  9. tarek101 commented on May 28, 2026

    @tarek101

    I also very much need this feature. Who doesn't have more than one gmail account?

  10. AriMKatz commented on Jun 3, 2026

    @AriMKatz

    Yes I need this too

  11. iamhectorlopez commented on Jun 6, 2026

    @iamhectorlopez
    Author

    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:

    1. OAuth storage keyed per app account
      Example key: (app_id, account_alias) or (connector_id, account_alias).

    2. 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”.

    3. Tool calls carry the selected account
      When Codex decides “use Work”, that alias must reach the connector/tool execution layer.

    4. Per-alias connection state in UI
      The plugin page should show:
      Personal -> Connected
      Work -> Connect
      University -> Reconnect

    5. Safety/provenance
      Tool results should probably expose or log “using Work Gmail” so the model and user do not accidentally mix accounts.

    6. End-to-end tests with fake multiple sessions
      A mock app should prove two aliases can return different data.

  12. KatTate commented on Jul 9, 2026

    @KatTate

    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.

  13. poolboy6000 commented on Jul 10, 2026

    @poolboy6000

    +1, I would get a ton of value from this feature.

  14. 8 remaining items

  15. Omegamoney commented on Jul 31, 2026

    @Omegamoney

    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.

  16. azolotov commented on Jul 31, 2026

    @azolotov

    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.

    Superhuman just solved this on their end:

    Image

    But we still want to be able to do this for every connector 😉

  17. dany74q commented on Aug 2, 2026

    @dany74q

    +1, I'd love to connect each family member's personal email / drive to one GPT account

  18. h8192-adorie commented on Aug 4, 2026

    @h8192-adorie

    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_id for selecting the connection and from_address for 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 SendAs aliases, but the current Codex Gmail connector tools do not expose a from / sendAsEmail parameter 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:

    • list only verified users.settings.sendAs identities;
    • expose a stable sender identity to send_email, create_draft, reply, and forward tools;
    • default replies to the identity that originally received the message;
    • ask or fail closed when the sender is ambiguous;
    • show the resolved From address in every write confirmation.

    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.

  19. elix1er commented on Aug 8, 2026

    @elix1er

    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, or from selector.

    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:

    • multiple named Gmail connections visible at the same time;
    • an explicit account/connection parameter on search/read/draft/send actions;
    • source-account metadata on results;
    • replies inheriting the mailbox/thread identity automatically;
    • fail closed when sender/account selection is ambiguous rather than silently using the current OAuth identity.

    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.

  20. derKlinke commented on Aug 14, 2026

    @derKlinke

    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

  21. andretomasi commented on Aug 17, 2026

    @andretomasi

    +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.

  22. elix1er commented on Aug 18, 2026

    @elix1er

    wen?

  23. ono-caret0 commented on Aug 25, 2026

    @ono-caret0

    "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.

  24. iamhectorlopez commented on Aug 28, 2026

    @iamhectorlopez
    Author

    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?

  25. masuhara commented on Sep 1, 2026

    @masuhara

    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! 🙏

  26. troyjr4103 commented on Nov 1, 2026

    @troyjr4103

    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, then codex 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

  27. mehdis34 commented on Nov 8, 2026

    @mehdis34

    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

  28. balabommablock-cpu commented on Nov 9, 2026

    @balabommablock-cpu

    A quick status check, because a lot has landed since this was filed and the newer comments mostly ask "when?":

    Already there

    • Multi-account is now a platform feature for plugins, not just Gmail: Support multiple accounts. Users can connect more than one account per plugin, and an optional profile tool (_meta["openai/profile"]) supplies a stable ID and a label.
    • Gmail has it, and @h8192-adorie verified two connections in one session (link_id to pick the connection, from_address on send and draft).

    Still open, going by this thread

    1. Who picks the account. The docs say the model "selects the relevant account or accounts". The original ask was to ask when it's unclear and confirm on writes. The smallest version: every send, post, share or calendar change names the account in its confirmation ("Send from work@…"), and every result says which account it came from.
    2. No picker on @Gmail. You can't choose the connection yourself when you already know it (@iamhectorlopez).
    3. Per-project default. Binding a project to "Work Gmail" (@Dsyt123) would remove most of the guessing in point 1.
    4. Which first-party connectors support it. Gmail does. Drive, Calendar and Slack are unclear from the outside. A short list in the docs would answer half the "+1, when?" comments.
    5. Starting sign-in in one browser profile and finishing it in another ends with a bare "Try again". Even one line saying why would help.

    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.

  29. sassan-ali-tat commented on Nov 30, 2026

    @sassan-ali-tat

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    authcodex-webenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions