Codex MCP server

SandBase in Codex. One command, no key in the file.

The SandBase CLI adds a managed MCP entry to your Codex config after you approve a browser sign-in. Codex can then discover, inspect and run models and APIs from one balance.

Set up in three steps.

Needs Node.js 20 or newer. You approve the sign-in in your browser. Never paste an API key into the chat.

What the setup changes.

The CLI only edits the block it owns, and leaves an entry named sandbase that it did not create untouched.

The config entry
A [mcp_servers.sandbase] table that starts a local Node bridge with --client codex and a long tool timeout. It holds no API key.
Your credential
Stored separately under ~/.sandbase by the CLI sign-in, not in config.toml.
Cost
Connecting, discovering and inspecting are free. sandbase_run is billed at the price the inspect step shows, and failed calls are not charged.
Remove it
Run sandbase unregister --client codex. It removes only the managed entry.
Official plugin
SandBase also publishes a Codex plugin that packages the MCP bridge and a guided Skill.

Related.

Questions people ask.

How do I add an MCP server to Codex?

For SandBase, run npx -y @sandbaseai/cli@latest connect --client codex, approve the sign-in in your browser, and restart Codex. The CLI writes a managed [mcp_servers.sandbase] block to your Codex config.toml.

Where is the Codex config file?

At ~/.codex/config.toml, or in $CODEX_HOME/config.toml when CODEX_HOME is set.

Does it cost anything?

Connecting, discovering and inspecting are free. Only running a model or API is billed, and failed calls are not charged.

Is my API key written to config.toml?

No. The entry starts a local bridge that reads its credential from a separate file under ~/.sandbase.

Give Codex the catalog.

Connect once, then ask for the data or media you need.

Get API key

SandBase is not affiliated with OpenAI. Codex is a trademark of its owner. Behavior was checked against the SandBase CLI source on 2026-11-24 (UTC) and may change.