Connect OpenAI Codex CLI to Performance Hub

On this page

Instructions current as of 26 November 2026 (AEST). Vendor MCP support changes frequently - verify against the linked sources if something looks different.

OpenAI Codex CLI (and the ChatGPT desktop / IDE surfaces that share its host) configure MCP servers in config.toml. A url entry is Streamable HTTP.

Server details

https://app.performancehub.co/mcp

User-wide (~/.codex/config.toml):

[mcp_servers.performance-hub]
url = "https://app.performancehub.co/mcp"
bearer_token_env_var = "PH_MCP_API_KEY"
export PH_MCP_API_KEY='<YOUR_TOKEN>'

Codex reads the environment variable and sends Authorization: Bearer <value>. Put the variable name in the config, not the token itself.

Project-scoped overrides go in .codex/config.toml for trusted projects.

Other headers

If you need x-mcp-api-key instead of Bearer:

[mcp_servers.performance-hub]
url = "https://app.performancehub.co/mcp"
env_http_headers = { "x-mcp-api-key" = "PH_MCP_API_KEY" }

Add with the CLI (OAuth)

OpenAI documents codex mcp add with --url for Streamable HTTP servers, including OAuth client options:

codex mcp add performance-hub --url https://app.performancehub.co/mcp

Then complete sign-in:

codex mcp login performance-hub

For an MCP API key, prefer the bearer_token_env_var entry in config.toml above. OpenAI's published MCP pages document that config key; they do not document a --bearer-token-env-var CLI flag.

Verify

codex mcp list

In the Codex TUI, /mcp also lists active servers. Start a session and confirm Performance Hub tools load, then run a read-only request.

Sources