Skip to main content
One command — no config file to edit, no key. --url selects the streamable-HTTP transport, and codex mcp add auto-runs OAuth discovery and opens the browser sign-in for you:
If a browser doesn’t open (discovery inconclusive), sign in explicitly:
OAuth signs you in as an existing Alchemist user. Sign in once at app.askalchemist.com first, or the server returns 401 even after the flow completes. Requires a current Codex build.
Prefer a GUI? The Codex IDE extension (VS Code / Cursor) and the ChatGPT desktop app share the same MCP config — open MCP servers → Add server → Streamable HTTP, paste the URL, and use the Authenticate button.

API key

For headless runs or CI, add the server with a key read from an env var (no --header flag needed):
You can also set it up with the auto-install block below, or edit the config file directly (manual setup).

Copy and Paste in Codex

Copy the block below and paste it into Codex. It will set the environment variable, update your config.toml, and create the skill.

Manual setup

Edit ~/.codex/config.toml (global) or .codex/config.toml (project-scoped):
bearer_token_env_var tells Codex to read the value of ALCHEMIST_API_KEY from your environment and send it as Authorization: Bearer <value>. The key is never hardcoded in the config file. To auto-approve all Alchemist tools (read-only, safe):
Verify the connection with: