Skip to content

Set up Codex CLI

Connect Codex CLI to programmable.run: where the URL and access key go, and what to do next.

Before you start

Sign in, add an API and make an access key for Codex CLI in Developers > API keys (the quickstart walks through it). Developers > API keys then shows these lines with your own URL and key in them, ready to copy. Below, https://programmable.run/mcp/YOUR_WORKSPACE and YOUR_ACCESS_KEY stand in for them.

Add it

Add this to ~/.codex/config.toml:

[mcp_servers.programmable]
url = "https://programmable.run/mcp/YOUR_WORKSPACE"
http_headers = { Authorization = "Bearer YOUR_ACCESS_KEY" }

Start Codex (or run /mcp in a running one) and ask it something.

Check it works

Ask “Using programmable, which APIs can you call?”. The call shows in Developers > Logs. If Codex CLI says 401 or can't connect, see Troubleshooting.

Get your URL