Connect / Codex

Connect Dexi to Codex

MCP server · https://mcp.dexi.net/mcp

Codex is OpenAI’s coding agent, in the terminal, in the ChatGPT desktop app and as an IDE extension. It connects to remote MCP servers over streamable HTTP and handles the OAuth sign-in. With Dexi added, Codex can search your notes by keyword or meaning, read them, and save notes while it works — the decision you just made, the reason a migration went the way it did.

There are two ways to connect. Adding Dexi as an MCP server takes one command and works in every Codex surface. Installing the Dexi plugin gives Codex the same connection plus three skills (Capture, Recall and Review) that tell it how to use your notes well. Your notes are the same ones Claude, ChatGPT and Gemini see when they’re connected.

Listing: The Dexi plugin for ChatGPT and Codex on GitHub

What you need

  1. Codex installed and signed in — the CLI, the ChatGPT desktop app, or the IDE extension. The three share one configuration, so setting Dexi up in one sets it up in all of them.
  2. For the plugin route: the CLI or the desktop app. OpenAI’s docs say the IDE extension doesn’t support plugins, and that some plugins aren’t available when Codex is signed in with an API key.
  3. A Dexi account — free at app.dexi.net, or create one on the approval page when you connect.

Setup

Add Dexi as an MCP server

In a terminal:

[mcp_servers.dexi]
url = "https://mcp.dexi.net/mcp"
  1. codex mcp add dexi --url https://mcp.dexi.net/mcp
  2. Codex adds the server, sees that it uses OAuth and starts the sign-in straight away: your browser opens Dexi’s approval page (the address is also printed in the terminal). Sign in, or create a free account, and choose what Codex may access — everything, or one folder or tag — then approve. Turn off Create, edit, and delete notes first for a read-only connection.
  3. The terminal prints “Successfully logged in.” Run codex mcp list to check: dexi should show enabled with OAuth in the Auth column. Inside codex, type /mcp to see it among the active servers.
  4. To sign in again later — after disconnecting, or if the approval was cancelled — run codex mcp login dexi. On a machine with no browser, use codex mcp login dexi --no-browser: open the printed address on another device, sign in, and paste the full address you are sent back to into the terminal, even if that page doesn’t load.

Or add it from the desktop app or the IDE extension

The same server, added through the settings instead of the terminal:

  1. Desktop app: open Settings, select MCP servers, then Add server. In the IDE extension, open the gear menu and select MCP servers, then Add server.
  2. Enter the name dexi, choose Streamable HTTP, and enter https://mcp.dexi.net/mcp.
  3. Save, then select Restart (in the IDE extension, Restart extension).
  4. In the server list, select Authenticate next to dexi and approve the connection on Dexi’s page.

Install the Dexi plugin (server plus skills)

Dexi’s public plugin repository is also a Codex plugin marketplace. In a terminal:

  1. codex plugin marketplace add dexi/openai-plugin
  2. Start codex and type /plugins to open the plugin browser. Switch to the Dexi marketplace tab, open Dexi, and install it.
  3. Connect the Dexi app when Codex asks — some plugins ask during install, others the first time you use them — and approve the connection on Dexi’s page.
  4. Start a new session before using it: a plugin’s skills and tools aren’t available in the session that installed it.
  5. If you have already added Dexi as an MCP server, remove one of the two, or every tool shows up twice.

Try it

Try: “Search my Dexi notes for what we decided about the auth rewrite” — or, at the end of a task, “save a note to Dexi with what we changed and why, tagged #atlas.” Whether Codex asks before each tool call is a Codex setting (default_tools_approval_mode for the server in config.toml), not a Dexi one.

Troubleshooting

codex mcp list shows dexi as “Not logged in”

The server is added but the sign-in didn’t finish — the browser approval was closed, or it timed out. Run codex mcp login dexi and complete the approval; in the desktop app or the IDE extension, select Authenticate next to the server.

The approval page says the request expired

An approval request is valid for a limited time. Run codex mcp login dexi to start a new one and approve promptly — if you need to create a Dexi account first, do that before starting.

I approved in the browser but the terminal is still waiting

The browser has to hand the result back to Codex on your own machine. If it can’t — a remote shell, a container, a browser on another device — cancel and use codex mcp login dexi --no-browser, then paste the full address you were sent back to.

Dexi’s tools appear twice

You have both the plugin and a separate MCP server entry pointing at Dexi. Keep one: remove the server with codex mcp remove dexi (or in the app’s MCP servers settings), or uninstall the plugin from /plugins.

Connected to the wrong Dexi account

The approval page uses whichever Dexi account your browser is signed in to. Disconnect Codex under Settings → Connected apps in Dexi, sign in to the right account in the browser, and run codex mcp login dexi again.

Disconnecting

In the Dexi app, open Settings → Connected apps to see every app connected to your account and disconnect any of them instantly. Revoking access there signs Codex out of your notes no matter what’s configured on the client side.

Frequently asked questions

MCP server or plugin — which should I use?

The tools are identical. The plugin adds three skills that tell Codex when to search, how to write a note worth keeping, and how to run a review session; the plain server is one command and also works in the IDE extension, where plugins aren’t supported. Start with the server if you just want Codex to reach your notes.

Does Codex need an API key for Dexi?

No. Dexi uses OAuth: Codex registers itself and you approve it on Dexi’s own sign-in page. You can narrow it to one folder or tag, make it read-only, or revoke it at any time from Settings → Connected apps in Dexi.

Can Codex see my whole workspace?

Only what you approve. On the approval page you can limit the connection to one folder or one tag — a project’s notes, say — and Codex then cannot see, search or write anything outside it.

Can I see which notes Codex wrote?

Yes. Notes created through an AI app are labelled with the app’s name in Dexi, and the tools return that name too, so Claude can see a note came from Codex and the other way round.

Is this the same as the Dexi plugin in ChatGPT?

It is the same plugin. Installing it from ChatGPT’s plugin directory makes it available to Codex as well; OpenAI notes that directory changes can take a while to reach Codex. Adding the marketplace from the terminal, as above, skips the wait.

Other clients

Dexi works with any MCP client that supports streamable HTTP with OAuth — see the overview, or jump to a guide: Claude, Claude Code, ChatGPT, Gemini, Gemini CLI, Goose, Hermes Agent, OpenClaw, Cursor, VS Code, Smithery.

Questions?

Email team@dexi.net — see also Support and our Privacy Policy.