How to connect Runheed to Codex CLI

OpenAI's Codex CLI connects to the Runheed URL and signs in with codex mcp login, so there is no key to paste.

Runheed is an error tracker with an MCP server: your app reports exceptions through a small SDK, and Codex CLI reads them through the server below.

Steps

  1. Run codex mcp add with --url as below, or add the [mcp_servers.runheed] table to ~/.codex/config.toml yourself.
  2. Run codex mcp login runheed, sign in to Runheed in the browser and click Allow.
  3. Start a new Codex session; codex mcp list (or /mcp in the session) shows the server.

Where the config lives: ~/.codex/config.toml

terminalbash
codex mcp add runheed --url https://runheed.com/api/mcp
codex mcp login runheed
codex mcp list
~/.codex/config.tomltoml
[mcp_servers.runheed]
url = "https://runheed.com/api/mcp"
~/.codex/config.toml (local server, agent key)toml
[mcp_servers.runheed]
command = "npx"
args = ["-y","https://runheed.com/dl/runheed-mcp-0.1.7.tgz"]
env = { RUNHEED_API_KEY = "al_your_key" }

The npm and PyPI releases are not out yet, so these commands install the same package files straight from runheed.com. Nothing else changes when the registry versions ship.

On first connect a runheed.com sign-in page opens: sign in and click Allow. Settings > Agent keys > Connected apps lists it, with Disconnect.

The server runs with npx, so Node.js 18 or newer must be installed on the machine. (local server only)

To try it first, point Codex CLI at https://runheed.com/api/mcp/demo (sample errors, no sign-in). Demo server.

How Codex CLI handles the server

Codex keeps MCP servers in ~/.codex/config.toml, and the ChatGPT desktop app, Codex CLI and IDE extension share that configuration, so setting up Runheed once covers all three. A trusted project can also have its own .codex/config.toml.

Each [mcp_servers.runheed] table takes options: enabled = false switches it off without deleting it, enabled_tools and disabled_tools allow or deny single tools, and default_tools_approval_mode = "writes" prompts only for tools not marked read-only. Runheed marks its read tools, so that mode asks only before resolve, ignore, unignore, merge, project creation and test events.

Check that it works

Ask: "Read the newest Runheed error and propose a fix."

If Codex CLI doesn't connect

A tool call stops after a minute
Codex gives a server 60 seconds per tool by default. Set tool_timeout_sec higher in the runheed table if you search large histories.
The server is not listed in a session
Run /mcp in the codex TUI to see active servers. If runheed is missing, check that enabled is not false and that a project config is in a trusted project.
"Start a plan to connect" on the sign-in page
Connecting needs an active plan. Pick one on that page, pay in Stripe Checkout, then connect again from the app.
The app keeps asking you to sign in
The app was disconnected in Settings (its key was revoked). Sign in again and click Allow.

Questions

Is one Runheed setup enough for Codex in the terminal and the IDE?
Yes. Both read the same config.toml, so the URL and the sign-in carry over.
Can Codex fix the error it reads?
Yes. Ask it to read the newest error with runheed_get_error_context, make the change, then resolve the group with the commit hash as the note.
What can Codex CLI change in Runheed?
Error status (resolve with a note such as the commit hash, ignore, unignore), grouping (merge duplicates into one error), new projects and a test event. Not billing or keys, and Runheed has no access to your code or servers.

Next: the find, fix and resolve loop, and what Codex CLI can see. Want Codex to check errors before it debugs? See how to give Codex access to production errors.

SDK side: setup by framework, or tell Codex CLI Read https://runheed.com/SETUP.txt and set up error tracking. Reference: Codex MCP docs.

7-day trial, then $29/moSee what Codex CLI readsCancel any time from the billing portal

Other clients: claude.ai · ChatGPT · Claude Code · Cursor · Claude Desktop · VS Code · Windsurf · Gemini CLI · Kiro · Lovable · Replit · Bolt · Antigravity · Zed · Cline