Most AI tools are assistants. They answer questions. They generate copy. They analyze data when you ask.Codex is autonomous. You define the goal — “check my ad performance every morning and flag anything unusual” — and the agent runs that task on a schedule. No human in the loop. It wakes up, pulls your campaign data, analyzes it, and sends you a summary. If your cost-per-acquisition spikes 40% overnight, you get an alert before you’ve had coffee.When you connect Codex to Adspirer, you get 190+ advertising tools that run on a schedule. It’s an AI ad manager that operates 24/7.
Important: The /plugins command below is a slash command — type it directly into the Codex input. Do not ask the AI to run it for you.
1
Open Codex
Launch a Codex session in your terminal:
codex
2
Add the Adspirer Marketplace
You have two options:Option A — type this directly in the Codex prompt:
codex plugin marketplace add amekala/ads-mcp
Codex runs the command and confirms: “Added the marketplace adspirer-marketplace from amekala/ads-mcp.”Option B — use the plugin browser: type /plugins → navigate to the Add Marketplace tab → enter amekala/ads-mcp.
3
Find and Install Adspirer Ads Agent
Type /plugins to open the plugin browser. Navigate to the Adspirer tab using the </> keys — you’ll see Adspirer Ads Agent listed as Available.Press Enter to open the plugin detail view. You’ll see the 5 skills, MCP server (adspirer), and an Install plugin option.Select Install plugin.
4
Authorize with Adspirer
A browser window opens with the Adspirer OAuth 2.1 screen. Sign in to your Adspirer account and click Authorize to grant Codex access.Return to your terminal — you’ll see “Installed Adspirer Ads Agent plugin.” The plugin now appears as Installed in /plugins.
5
Set Up Your Brand Workspace
Open your brand folder and start a new Codex session:
cd ~/Clients/YourBrandcodex
Say “set up my brand workspace”. The agent connects to your ad accounts, scans for brand docs, pulls live campaign data, and creates AGENTS.md. If it doesn’t trigger automatically, type: $adspirer-setup
6
Try It Now
Sign up for Adspirer — free to start
15 free tool calls/month. No credit card required. Connect your ad accounts in 2 minutes.
This installs all 5 skills, the agent config, MCP server, and multi-agent support automatically.
2
Restart Codex
Close and reopen Codex to load the new config.
3
Authenticate with Adspirer
codex mcp login adspirer
A browser window will open. Sign in with your Adspirer account and authorize access. Return to your terminal when complete.
4
Set Up Your Brand Workspace
Open your brand folder and launch Codex:
cd ~/Clients/YourBrandcodex
Say “set up my brand workspace”. The agent will connect to your ad accounts, scan for brand docs, pull live campaign data, and create AGENTS.md. If it doesn’t trigger automatically, run: $adspirer-setup
[features]multi_agent = true[agents.performance-marketing-agent]description = "Brand-specific performance marketing agent. Use for ad campaigns, performance, keywords, ad copy, budgets."config_file = "agents/performance-marketing-agent.toml"
6
Restart and Authenticate
Restart Codex, then authenticate:
codex mcp login adspirer
A browser window will open. Sign in and authorize access.
You’re connected. Codex now has 190+ advertising tools available for autonomous and interactive use.
"Pull yesterday's performance across all my ad platforms.Compare to the previous 7-day average.Flag any campaigns with CPA increases over 30% or spend increases over 50%.Send me a summary."
Schedule this to run every morning at 8am. You wake up to a performance summary in your inbox or Slack. No dashboards to check.
"Audit my Google Ads account for wasted spend in the last 7 days.Find keywords with spend but zero conversions.For each keyword, recommend: pause it, add a negative keyword, or lower the bid.Total up potential monthly savings."
Run this every Monday. The agent finds money leaks and tells you exactly what to fix.
"Analyze performance across Google and Meta Ads for the last 30 days.I have $10,000/month total budget.Recommend how to split the budget for maximum conversions.Show me current allocation vs recommended allocation."
Run this monthly. The agent analyzes cross-platform ROI and recommends where to shift spend.
"Check all active campaigns across Google, Meta, LinkedIn, and TikTok.Look for anomalies in the last 24 hours:- Sudden CPA spikes- Campaigns that stopped converting- Unexpected spend increasesAlert me immediately if anything is found."
Run this every 6 hours. The agent acts as a 24/7 monitoring system. If something breaks at 3am, you get an alert.
codex run adspirer-ads "Create a Google PMax campaign for my DTC brand:- Product: premium wireless earbuds, $129 retail price- Target ROAS: 350%- I have product images and videos ready- Write asset group headlines and descriptions- Use my Google Merchant Center feed"
codex run adspirer-ads "Generate a Q1 2026 performance report.Pull data from Google Ads, Meta Ads, and LinkedIn Ads.Include: total spend, conversions, ROAS by platform.Format as markdown."
No. All campaigns are created PAUSED, and budget changes require user confirmation. The agent can analyze, recommend, and alert — but you approve spending decisions manually.
What's the difference between Codex and Claude Code?
Claude Code is interactive — you ask it to do something, it does it. Codex is autonomous — you define a task once, and it runs on a schedule. Use Claude Code for ad-hoc analysis. Use Codex for recurring tasks like daily performance checks.
How do I change the agent's default task?
Edit the default_prompt in ~/.codex/agents/performance-marketing-agent.toml. Restart the agent for changes to take effect.
Can I run multiple agents for different ad accounts?
Yes. Create separate agent config files with different default prompts. Each agent can specify which Adspirer account to use via the switch_primary_account tool.
How much does this cost?
Adspirer pricing is based on tool calls. Free tier: 15 calls/month. Plus: 49/mofor150calls.Pro:99/mo for 600 calls. Max: $199/mo for 3,000 calls. Autonomous agents typically use 2-5 tool calls per run. See full pricing details.