Codex plugins: install, manage and add marketplaces
What a Codex plugin bundles, /plugins and codex plugin add/remove, adding a marketplace, where plugins live in ~/.codex, and what you trust when installing one.
A Codex plugin is an installable bundle of skills, MCP servers (connections to services such as GitHub, Slack or Google Drive), hooks and browser extensions, from a marketplace. In the Codex CLI, type /plugins to browse, install and toggle them (Space turns an installed one on or off); from a shell, codex plugin list, codex plugin add name@marketplace and codex plugin remove name@marketplace. In the ChatGPT desktop app it is the Plugins tab. Add another marketplace with codex plugin marketplace add owner/repo. Start a new session after installing. Installed plugins live in ~/.codex/plugins/cache/, on/off choices in ~/.codex/config.toml, and a plugin’s hooks do not run until you trust them in /hooks. The IDE extension does not support plugins. As of Codex CLI 0.171.0, November 2026.
What is in a plugin, beside skills and MCP servers
OpenAI’s skills and plugins page draws the line in two sentences: “A skill packages instructions and supporting resources for a specific task or workflow,” and “A plugin is an installable bundle that can include skills and Model Context Protocol (MCP) servers.” The plugins page adds hooks (commands run at points in a Codex session) and browser extensions to what a bundle can carry.
So the three are layers rather than rivals. A skill is a folder with a SKILL.md that you can drop in on its own (Codex skills covers where they go and how they load). An MCP server is something you can add yourself with codex mcp add or a [mcp_servers] table, as in adding MCP servers to Codex. A plugin is what you install when someone has already put them together; in OpenAI’s words it “can combine skills with MCP servers for tools and context from services such as GitHub, Google Drive, or Slack.” Use a skill for reusable instructions, and a plugin when the instructions need a connected service. Apps you have connected (ChatGPT’s connectors) are a separate list in the CLI: /apps browses them and attaches one to a prompt as $app-slug.
Where plugins work: the ChatGPT apps (Codex inside the desktop app included) and the Codex CLI. “The IDE extension doesn’t support plugins.” Some plugins are desktop-only: they show up in the catalog on the web, but install and run only in the ChatGPT desktop app. “ChatGPT and Codex use the same public plugin catalog.”
Browsing and installing in the CLI
Inside a session, /plugins opens the plugin browser. It “groups plugins by marketplace”, with a tab per marketplace; open a plugin to see what it carries, install it, and press Space on an installed one to switch it off or back on. Then, per the docs, “start a new session before using its bundled skills or tools.” Codex picks plugin tools by itself when the task calls for them; typing @ in the composer invokes a plugin or one of its skills by name.
The same from a shell, which is the way on a server or in a setup script. The subcommands in the 0.171.0 source are add, list, remove and marketplace; there is no enable, disable or update subcommand:
codex plugin list # installed and available, by marketplace
codex plugin list -m openai-curated # one marketplace
codex plugin add <plugin>@<marketplace> # install
codex plugin remove <plugin>@<marketplace> # uninstall and delete its cacheCopiedlist prints each plugin with a status of installed, enabled, installed, disabled or not installed. A bare plugin name fails with:
plugin requires --marketplace unless passed as <plugin>@<marketplace>CopiedEither write the @ form or pass -m <marketplace>. Every subcommand takes --json; add --json prints the plugin id, version and installed path, and list --json --available includes what is not installed yet, which is the form for a script.
Where the plugins come from. OpenAI’s own list is the marketplace named openai-curated (“Codex official”), kept in the public openai/plugins repository, which Codex syncs into ~/.codex/.tmp/plugins. On 22 November 2026 it listed 65 plugins, among them Linear, Gmail, Slack, Figma, Stripe and Vercel. On a ChatGPT sign-in there is also a remote catalog, with your workspace’s directory and plugins shared with you; in the source it refuses an API key with api key auth is not supported. On an API key the docs say you “can browse, install, and manage supported OpenAI-curated plugins,” but some are missing because their sign-in needs OAuth flows the API-key path lacks. Signing a server in with a ChatGPT account rather than a key is covered in Codex CLI on a Linux server.
In the ChatGPT desktop app
Codex in the desktop app (see what the Codex app is now) uses the Plugins tab: find a plugin, install it, connect the account it asks for, and start a new chat. Removing one is Uninstall plugin on its page, “when that action is available”: plugins your workspace installed or ships by default may not offer it, because the administrator controls them. Uninstalling does not disconnect the service behind it: “Separately connected MCP server integrations remain connected in ChatGPT until you disconnect them there.” The app is also what OpenAI’s build guide uses to install and test a plugin you are writing.
Adding another marketplace, or your own
A marketplace is a repository or folder holding a marketplace file that lists plugins and where each one is. Add one from a shell:
codex plugin marketplace add owner/repo
codex plugin marketplace add owner/repo --ref v1.2.0
codex plugin marketplace add https://github.com/owner/repo --sparse plugins/foo
codex plugin marketplace add ./my-marketplace
codex plugin marketplace list
codex plugin marketplace upgrade # refresh every Git marketplace
codex plugin marketplace remove <name>CopiedThe source can be a local folder, owner/repo (with @ref or --ref to pin a branch, tag or commit), an HTTPS Git URL or an SSH Git URL; --sparse checks out only the paths you name and can be repeated. Git marketplaces are cloned by default under ~/.codex/.tmp/marketplaces (or under CODEX_HOME if you set it); upgrade pulls the latest of the ref you configured. The command records the source in config.toml, which is the documented way rather than editing the file by hand; the entry it maintains has these keys, from the configuration reference:
[marketplaces.my-marketplace]
source_type = "git" # or "local"
source = "https://github.com/owner/repo.git"
ref = "v1.2.0" # optional
sparse_paths = ["plugins/foo"] # optionalCopiedWhich file Codex reads. In a marketplace root, the 0.171.0 source looks for these in order and takes the first it finds: .agents/plugins/marketplace.json, .agents/plugins/api_marketplace.json, .claude-plugin/marketplace.json and .cursor-plugin/marketplace.json. So a Claude Code marketplace, or a Cursor one, can be added to Codex as it stands, and Codex sets CLAUDE_PLUGIN_ROOT and CLAUDE_PLUGIN_DATA for hooks written for Claude Code; what it uses of such a plugin is the parts its own format has, skills, MCP servers and hooks (the Claude Code plugins guide has the Claude side). The same list is checked in a repository you open and in your home folder, which gives two marketplaces with no command at all: a repository’s .agents/plugins/marketplace.json for its team, and ~/.agents/plugins/marketplace.json for yourself. In the marketplace file, each plugin’s source is a path starting ./, a Git URL with an optional ref or commit, one subdirectory of a Git repository, or an npm package from an HTTPS registry.
A plugin of your own is a folder with a plugin.json at its root (name, version, description) and its skills/ folder, mcp.json and assets beside it; the build guide has the manifest fields. Codex still reads the older .codex-plugin/plugin.json and Claude’s .claude-plugin/plugin.json, but OpenAI says “new packages should use this format.”
Where plugins are stored and configured
| What | Where |
|---|---|
Installed plugin files | ~/.codex/plugins/cache/<marketplace>/<plugin>/<version>/ |
OpenAI’s curated list | ~/.codex/.tmp/plugins |
Marketplaces you added | cloned under ~/.codex/.tmp/marketplaces, recorded under [marketplaces] in config.toml |
On/off choices | ~/.codex/config.toml, written by the plugin browser |
Personal marketplace file | ~/.agents/plugins/marketplace.json |
The keys under [plugins] take the plugin’s full name, quoted because of the @. Besides switching a plugin off, they can switch off one MCP server it bundles, or narrow and gate its tools, without touching the plugin:
[plugins._default]
enabled = false # installed plugins start off
[plugins."my-plugin@my-marketplace"]
enabled = true
[plugins."my-plugin@my-marketplace".mcp_servers.some-server]
enabled_tools = ["search", "read"]
default_tools_approval_mode = "prompt" # auto | prompt | writes | approveCopiedenabled = false in a project’s .codex/config.toml turns a plugin off for that project only, without uninstalling it; a project file is read only once the project is trusted (why codex exec skips it otherwise). The rest of the file, profiles and -c overrides are in the config.toml guide.
What installing one trusts
Hooks wait for you. “Installing or enabling a plugin doesn’t automatically trust its hooks.” Codex skips a plugin’s hooks until you review and trust the exact definition in /hooks (in the app, Review hooks or Settings > Hooks), and “if a plugin update changes a bundled script, Codex requires a new review even if the hook definition stays the same.” Read the command each hook runs before trusting it: it is a command on your machine.
MCP servers and tools follow your Codex settings. “When a plugin capability runs through a Codex host, the host’s sandbox and approval policy applies,” and the external service applies its own permissions to whatever account you connected. A plugin’s local MCP server is still a program started on your machine as you, like any server you add yourself (what such a server sees), so the mcp.json of a plugin from an unfamiliar marketplace is worth reading before you install. The tool and approval keys above are how to keep a connector to reads, or to ask before each write.
A marketplace is a moving target. Pin a third-party marketplace with --ref to a tag or commit you have read, and upgrade deliberately. In a managed workspace, administrators can go further through requirements.toml: switch plugins off for everyone, restrict marketplaces to an allowed list of Git repositories, hosts or folders, and allow a plugin’s MCP server only if its command or URL matches a rule.