Using Codex with Marrow
Use Codex when you want an OpenAI coding agent that can read your synced Marrow store and ad data. Recommended: connect via OAuth from AI Platforms. Use MCP only if you prefer a key-based config or OAuth is unavailable for your setup.Prerequisites
- At least one data source connected in Integrations and syncing in Data Explorer
- A Codex account (CLI, IDE extension, or ChatGPT desktop Codex — they share MCP config)
- For MCP: an MCP key from AI Platforms
Option A: OAuth (recommended)
- In Marrow, open AI Hub → AI Platforms.
- Under Quick connection: OAuth, select Codex.
- Click Connect and complete the authorization steps.
- Confirm a session appears under OAuth sessions.
Option B: MCP
Step 1: Get Marrow credentials
From AI Platforms:- MCP server URL:
https://mcp.marrow.ai/mcp/v1 - Create an MCP key and copy it (shown only once)
Step 2: Add the Marrow MCP server
Add this to~/.codex/config.toml (global) or .codex/config.toml (project-scoped):
Step 3: Reload Codex
Restart your Codex session (or reload the IDE extension) so it picks up the new server.Step 4: Test the connection
Security
- Marrow is read-only — it never posts or changes store/ad settings.
- Prefer
bearer_token_env_varover pasting keys into committed config files. - Revoke the OAuth session or rotate the MCP key from AI Platforms when needed.