Skip to content

Use Adquimo in Codex

Add Adquimo to OpenAI Codex with codex mcp add or config.toml, sign in with codex mcp login or an API key, and check the connection.

Private beta

Updated

Applies to
  • Codex
View as Markdown
Private beta
Open to a small group of design partners while we test it. Details may change before general availability. To ask about joining the beta, email [email protected].
On this page

Codex keeps its MCP servers in ~/.codex/config.toml, shared by the Codex CLI and the Codex extensions for code editors. Add Adquimo once and it's available in both.

Requirements

  • A current version of Codex. Update it first if codex mcp isn't available.
  • An Adquimo account in the private beta.

Set up with OAuth

Add the server from a terminal:

Shell
codex mcp add adquimo --url https://mcp.adquimo.com/mcp

Then sign in:

Shell
codex mcp login adquimo

Codex opens Adquimo's sign-in in your browser. Sign in with your email code, review what Codex may do in your workspace and approve it.

Set up in config.toml

The command above writes this entry, which you can also add by hand to ~/.codex/config.toml:

TOML
[mcp_servers.adquimo]
url = "https://mcp.adquimo.com/mcp"

Building a campaign can take longer than Codex's default tool timeout. Give Adquimo more time:

TOML
[mcp_servers.adquimo]
url = "https://mcp.adquimo.com/mcp"
tool_timeout_sec = 120

Set up with an API key instead

For scheduled or headless runs, create an API key in the Adquimo app, store it in an environment variable, and point Codex at the variable:

TOML
[mcp_servers.adquimo]
url = "https://mcp.adquimo.com/mcp"
bearer_token_env_var = "ADQUIMO_API_KEY"

Check it works

List the configured servers, then ask in a Codex session:

Shell
codex mcp list
Plain text
Which ad accounts can you see in Adquimo?

Codex lists the ad accounts connected to your workspace, or says none are connected yet.

Keep Codex's approval prompts on for Adquimo's tools that change something. Adquimo also shows its own preview and waits for your yes before anything goes live or spends more.

Troubleshooting

What you seeWhat to do
Adquimo shows as not logged inRun codex mcp login adquimo again.
A long build stops with a timeoutRaise tool_timeout_sec as shown above. Don't retry the build: ask Codex to check what was created first.
401 errors with an API keyThe variable named in bearer_token_env_var isn't set where Codex runs, or the key was revoked.

Remove Adquimo

Shell
codex mcp remove adquimo

Then remove Codex under AI tools in Access in the Adquimo app, or revoke the API key you used.

  • Add Adquimo to your AI tool · For people and for AI agents reading on their behalf. Find the right setup for your AI tool, connect it once, and check it works.
  • Use Adquimo in any MCP client · The endpoint, transport, OAuth discovery, scopes and API key header any MCP client needs to connect to Adquimo.