Skip to main content
Not yet verified on staging: This applies to every step here that needs a signed-in account or a live ConnectKey connection, including setup, workspace consent, tool discovery, calls, and disconnecting or restoring access. No tool is confirmed available in this client.Untested where sign-in or a serving /mcp endpoint is required. Connecting this client, signing in to ConnectKey, choosing a workspace, allowing access, and listing or calling tools have not been verified in a real client. On 2026-11-25, staging returned 404 for /mcp, /.well-known/oauth-protected-resource, and /.well-known/oauth-authorization-server. The production MCP host did not resolve. This page does not say the client is supported or that setup works.
OpenAI’s public docs describe the Codex CLI commands and config.toml paths below. The ConnectKey labels (Which workspace should ... use?, Allow, Cancel, and Disconnect in Agents) come from app source at f7c8d23. Neither source check exercised Codex CLI. The endpoint results above are from public HTTP probes.
  1. Add https://mcp.connectkey.ai/mcp to your client.
  2. Sign in to ConnectKey (Untested: requires sign-in and a serving /mcp endpoint).
  3. Pick a workspace (Untested: requires sign-in and a serving /mcp endpoint).
  4. Allow access to that workspace (Untested: requires sign-in and a serving /mcp endpoint).
Copy the ConnectKey URL for Codex CLI

Prerequisites

  • Codex CLI installed.
  • A ConnectKey account.

Steps

  1. OpenAI’s documented registration command (not tested in Codex CLI): run codex mcp add connectkey --url https://mcp.connectkey.ai/mcp (or add a [mcp_servers.connectkey] table with url = "https://mcp.connectkey.ai/mcp" in ~/.codex/config.toml).
  2. Untested (needs sign-in and a serving /mcp endpoint): run codex mcp login connectkey. In a terminal without a local browser, run codex mcp login connectkey --no-browser and open the authorization URL that Codex prints in a browser. Codex documents Streamable HTTP with OAuth supporting Client ID Metadata Documents (CIMD) and Dynamic Client Registration (DCR).
  3. Untested (needs sign-in and a serving /mcp endpoint): in the browser, sign in to ConnectKey, pick a workspace (Which workspace should ... use?), and select Allow.
  4. Untested (requires the --no-browser sign-in above): OpenAI says to paste the full redirect URL from the browser into your own waiting Codex CLI prompt, even if the callback page does not load. Use the redirect URL only in that prompt. Never share it or include it in screenshots, logs, or other test evidence.

What to check

  • OpenAI’s documented local config check (not tested in Codex CLI): run codex mcp list or check ~/.codex/config.toml for a [mcp_servers.connectkey] entry.
  • Untested (needs sign-in and a serving /mcp endpoint): start Codex, use /mcp in the TUI to check active servers, and ask Codex to list the ConnectKey tools.

If it fails

  • Codex ignores a project .codex/config.toml unless the project is trusted. Use the user file ~/.codex/config.toml instead.
  • OpenAI documents that the ChatGPT desktop app, Codex CLI, and IDE extension share MCP configuration for the same Codex host. This setup does not configure ChatGPT web or a remote executor.
  • On 2026-11-25, staging returned 404 for /mcp, /.well-known/oauth-protected-resource, and /.well-known/oauth-authorization-server. These responses did not establish that codex mcp login connectkey could complete discovery.
  • To disconnect later, run codex mcp logout connectkey, run codex mcp remove connectkey (or remove [mcp_servers.connectkey] from ~/.codex/config.toml), and open Agents in ConnectKey to select the agent and choose Disconnect. The ConnectKey label comes from app source at f7c8d23; logout, removal, and revocation have not been tested.

Do I need to edit a file to register a remote server in Codex CLI?

No. OpenAI documents codex mcp add with a server name and --url, so you do not have to edit the local configuration by hand.

How does Codex CLI distinguish an OAuth login from adding a server?

Codex has a separate codex mcp login <server-name> command for a named Streamable HTTP server. ConnectKey sign-in through that command has not been tested.

Where can I find a manually configured Codex server?

OpenAI documents named [mcp_servers.<server-name>] entries in the user configuration file ~/.codex/config.toml. This is an alternative to adding the server with the CLI.

Why might Codex ignore a project’s MCP configuration?

Codex requires the project to be trusted before using its project .codex/config.toml configuration. An entry in the project file is not enough on its own.

Does a local Codex configuration also configure a cloud executor?

The documented CLI method applies to the local host. It does not establish that a cloud executor can use the same entry.

Does a ChatGPT web connection verify Codex CLI or an IDE?

No. ChatGPT web, the local CLI and IDE integrations are separate clients. No Codex CLI build has been verified with ConnectKey.

Evidence

  • Status: documented
  • Vendor documentation retrieved: 2026-11-25
  • Real-client result: None recorded for Codex CLI, the ChatGPT desktop app, or the IDE extension. OpenAI’s documentation and ConnectKey’s app source (development f7c8d23) describe the commands, config paths, and labels. On 2026-11-25, public probes returned 404 on staging for /mcp, /.well-known/oauth-protected-resource, and /.well-known/oauth-authorization-server. The production MCP host did not resolve. None of these checks verify registering the server, signing in, listing or calling tools, or revoking access in Codex.
  • OpenAI: Model Context Protocol (Codex CLI)
  • OpenAI: Developer commands (Codex CLI)