OpenAI · Codex CLI · IDE extension · ChatGPT desktop app
OpenAI Codex
OpenAI’s coding agent, shared across the Codex CLI, IDE extension and ChatGPT desktop app.
The Codex CLI, IDE extension and ChatGPT desktop app share one MCP configuration in ~/.codex/config.toml, or a project .codex/config.toml in trusted projects. Add servers with codex mcp add <name> -- <command> for stdio or --url for Streamable HTTP. Codex supports bearer tokens and OAuth (codex mcp login <name>), and plugins can bundle MCP servers and skills.
Codex reads AGENTS.md before doing any work: a global ~/.codex/AGENTS.md (or AGENTS.override.md), then one file per directory from the project root down to your working directory, up to 32 KiB combined by default. Other filenames are read only if you add them to project_doc_fallback_filenames.
Sources (checked Oct 16, 2026): developers.openai.com/codex/mcp · developers.openai.com/codex/guides/agents-md · AGENTS.md vs CLAUDE.md vs Cursor rules →
Top tools for Codex
All 16 →Neon
Database · Neon plugin (MCP server + agent skills) installs into Cursor, Claude Code and Codex. Remote endpoint https://mcp.neon.tech/mcp; OAuth stated in docs
Exa
Web search & scraping · Exa is an official plugin in OpenAI’s plugin directory (hosted MCP + skills). Remote endpoint https://mcp.exa.ai/mcp; OAuth stated in docs
Shopify
E-commerce · Shopify AI Toolkit plugin for Codex
Stripe
Payments · Docs have a Codex setup tab. Remote endpoint https://mcp.stripe.com; OAuth stated in docs
Vercel
Hosting · Codex CLI section. Remote endpoint https://mcp.vercel.com; OAuth stated in docs
Railway
Hosting · Codex section. Remote endpoint https://mcp.railway.com; OAuth stated in docs
Resend
Email & SMS · Codex tab. Remote endpoint https://mcp.resend.com/mcp; OAuth stated in docs
Amplitude
Analytics · Docs list OpenAI Codex CLI. Remote endpoint https://mcp.amplitude.com/mcp; OAuth stated in docs
Add an MCP server to Codex
One [mcp_servers.<name>] table per server. The CLI, IDE extension and ChatGPT desktop app share this config.
Guides, pricing & comparisons
How to add an MCP server to Codex
Portable agent skills: one SKILL.md for every coding agent
Safe “always allow” rules for Claude Code and Codex CLI
Codex sandbox modes and approval policies explained
How to install the OpenAI Codex CLI
Agent Skills moves to the Agentic AI Foundation: what changes
MCP security: the risks in MCP servers and how to lock them down
What is AGENTS.md? The open instruction file for coding agents
Codex skills: create, install and use SKILL.md skills in Codex
GPT-6.1 Terra in Codex and the API: setup, pricing and limits
MCP OAuth: connect a remote MCP server in Claude Code, Codex and Cursor
Codex config.toml: location, precedence and the settings to change
Codex on Windows: native sandbox setup, WSL and fixes
Fix spawn npx ENOENT when starting an MCP server
MCP connection closed: find why a server will not connect
Claude Code vs OpenAI Codex: documented features compared
OpenAI Codex vs Cursor: documented features compared
OpenAI Codex vs GitHub Copilot: documented features compared
OpenAI Codex pricing and usage limits
AGENTS.md vs CLAUDE.md vs Cursor rules
AGENTS.md templates for Laravel and Next.js
MCP servers that work in every coding agent