Can OpenAI Codex manage your marketing accounts?

Yes. Add the Agent Planners MCP server to OpenAI Codex and sign in with OAuth or an API key. It then reads and changes your accounts on 43 ad, analytics, commerce and CRM platforms. Reads run at once; changes wait for approval by default, and irreversible ones for a person unless an admin exempts a key.

Integrations

Connect Agent Planners to OpenAI Codex: ad-platform tools in your terminal

TL;DR

Codex reads MCP servers from ~/.codex/config.toml, and Agent Planners is a remote MCP server over Streamable HTTP, so one command adds it and starts the sign-in. From then on Codex can read your ad and analytics accounts, or hand the platform a whole goal and poll it, without ever holding a platform credential.

How to connect

Add the server to Codex — the command starts the sign-in itself:

codex mcp add agent-planners --url https://www.agentplanners.com/api/mcp

Open the URL it prints (or the browser window it opens) to reach the Agent Planners consent page: sign in, choose the workspace and approve what Codex may do; Codex stores and refreshes the tokens. Run codex mcp login agent-planners later only if the tokens are missing or the connection ended. You can also write the server into ~/.codex/config.toml (%USERPROFILE%\.codex\config.toml on Windows) under [mcp_servers.agent-planners] with the same url and run codex mcp login agent-planners, or use an API key instead of signing in by naming an environment variable that holds it in bearer_token_env_var — set in the environment Codex starts from (setx on Windows, then restart Codex; launchctl setenv for the Codex app on macOS). Check codex mcp list (Auth OAuth, or Bearer token) to confirm it registered — a typo in the [mcp_servers.name] header makes Codex skip the section without an error, so verify rather than assume. Always use the www URL: Codex refuses the redirect from the address without www. For a second workspace, add a second entry with the same URL and another name (agent-planners-acme) and sign it in there. Connect Agent Planners to Claude, Codex, Grok and Muse has the details and Codex's troubleshooting.

What it is useful for

  • Pulling real campaign or Google Analytics numbers into whatever you are building, without leaving the terminal.
  • Checking an account before a release — spend, conversions, anomalies.
  • Handing a long job to the platform's own agent and polling it while you keep working.

Frequently asked questions

Does Codex need any ad-platform credentials?
No. The platform holds the connections; Codex authenticates only to Agent Planners, with its OAuth sign-in or an API key.
Is there a Codex directory listing?
Not yet. Codex installs plugins from marketplaces — OpenAI's curated one and any you add with codex plugin marketplace add — and Agent Planners is not in OpenAI's curated list. The command above connects it today.
Can I give a teammate read-only access?
Yes — the person connecting can untick everything but the read permissions on the consent page, or you issue them a key with read scopes only. Scopes are per connection.
Connect Connect Agent Planners to OpenAI Codex and try it on your own account

Start free — 2,500 credits a month, no credit card. Reads run at once; by default every write waits for your approval.

Related platforms

How the agent works