AdKit

Connect Codex to AdKit

Connect Codex to AdKit through the CLI or the MCP server and manage Meta, Google, TikTok, and Reddit ads.

Connect Codex to AdKit and manage Meta, Google, TikTok, and Reddit ads from the terminal. Pick the CLI path (recommended) or the MCP server.

Paste this into Codex. It installs the AdKit CLI and connects it for you:

Help me set up AdKit.

1. Install the CLI: npm i -g @adkit/cli
2. Run `adkit setup` and send me the login URL so I can finish authentication.
3. Wait for me to finish login in the browser.
4. Run `adkit checkin --agent codex`.
5. Tell me if AdKit is connected and ready. If not, tell me what failed.

If you cannot install or run the AdKit CLI here, stop and tell me to use the MCP setup instead.

Alternative: MCP server

  1. Add the server in Codex:
    codex mcp add adkit --url https://mcp.adkit.so
    
  2. If Codex asks you to sign in:
    codex mcp login adkit
    
  3. Then paste this to confirm it works:
    Use the AdKit MCP server you just installed and run the AdKit checkin tool with agentId: "codex".
    If sign-in is needed, send me the link and wait for me to finish.
    Then tell me if AdKit is connected and ready. If not, tell me what failed.
    

What you can do

Once connected, Codex can pull your live campaigns, draft budget and targeting changes, generate ad creatives, and research competitors. Nothing goes live on its own: every change is saved as a draft for you to review and publish.

Troubleshooting

Codex asks to sign in, or tool calls fail with an auth error. Run codex mcp login adkit and finish the browser sign-in.

The server is added but tools don't show up. Restart the Codex session so it reloads the server's tool list.

It worked before and stopped (MCP path). The MCP authorization expires after about 30 days without use. Run codex mcp login adkit again. CLI connections use an API key that doesn't expire; check them with adkit status.

Need a hand? Reach out and we'll help.

Related docs