Repository navigation
Description
What variant of Codex are you using?
App (the underlying plugin/connector model is shared with the CLI/IDE)
What feature would you like to see?
Installing a curated/remote plugin (e.g. the Notion plugin) through the App's "add plugin" → OAuth flow does not create a local, per-machine credential. It creates an account-level connector/app grant that is stored server-side and bound to the ChatGPT account — not to the machine or the project.
Observable behavior (from the open-source code + local artifacts):
- The plugin bundle's
.mcp.jsonpoints to a remote server (e.g.https://mcp.notion.com/mcp) and.app.jsonregisters an account-side app id (asdk_app_…). Installing it is a server-side mutation — aPOST {chatgpt_base_url}/ps/plugins/{plugin_id}/installauthenticated with the ChatGPT account token (core-plugins/src/remote.rs). - The connector's tools are served by the remote
codex_appsserver (…/backend-api/wham/apps) viaMcpServerAuth::ChatGpt, and accessibility is keyed byaccount_id/chatgpt_user_id(codex-mcp/src/mcp/mod.rs,core/src/connectors.rs). No per-connector token is written locally — only metadata/cache. - The grant is therefore live on every device signed into the same account and can only be revoked from ChatGPT account settings. Disabling the plugin locally does not revoke it (see Codex.app repeatedly opens Notion MCP OAuth tabs even after notion@openai-curated is disabled #28941:
[plugins."…@openai-curated"] enabled = falsestill triggers the OAuth/connector).
The problem: a local action ("make this tool available in this Codex install") silently mutates account-level state ("my whole account is now connected to this service, on every device"). For a coding tool, most users expect per-project / per-machine setup to stay isolated from the account itself. The current design conflates the two.
Requested change — keep the two concepts strictly separate, and default to local:
- Default plugin install/auth to local, per-machine, reusing the credential storage the CLI already has (
codex mcp login→ OS keychain /CODEX_HOME/.credentials.json). Adding a plugin should not create an account-wide connector by default. - Keep account-level connectors/apps as a distinct, explicitly opt-in path, clearly labeled in the UI as "authorizes your ChatGPT account / available on all your devices," so it's always obvious whether you're granting account-level or local access.
- Make local disable/remove actually revoke — or at minimum clearly surface that a connector grant lives on the account and link to where to revoke it (Codex.app repeatedly opens Notion MCP OAuth tabs even after notion@openai-curated is disabled #28941).
The local model already exists for CLI MCP servers, so this is mainly about making the App's "add plugin" flow use/offer it and separating the labeling — not building something new.
Additional information
Related: #28941 (local enabled=false doesn't revoke the connector) and #20500 (multiple named accounts / "hard privacy boundaries" for connectors). This is the broader design ask behind both — cleanly split plugin = local, per-machine, per-project from connector/app = account-level, server-side, cross-device, with local as the default.
Activity
github-actions commentedon Jun 25, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action