TikTok Ads CLI: Run Ads & GMV Max from Claude Code, Codex and Other AI Agents

"Pause all my ads with CPA above $15." No dashboard to open. No commands to memorize. Inside the AI agent you already use — Codex, Claude Code, Hermes Agent — just say what you want done. AdRate CLI turns your agent into a TikTok advertising assistant that actually executes.

Manage ads with natural language, like talking to a colleague
Works with Codex, Claude Code, Hermes Agent, Cursor, Accio Work, and any AI agent platform that supports Skills
Full read/write access to both Ads and GMV Max modules
From pulling reports to configuring rules, the agent handles multi-step operations for you

AdRate

TikTok Ads CLI

Connect Claude Code, Codex and other AI agents to TikTok Ads and GMV Max

AdRate TikTok Ads CLI - manage Ads and GMV Max from Claude Code and Codex

You spend your day toggling between TikTok Ads Manager's dozen tabs — checking data, tweaking budgets, pausing underperformers. In 2026, AI agents are everywhere — Codex, Claude Code, Hermes, Cursor, Trae, Accio Work — but none of them can manage your ad accounts. Until now.

You're working in your AI agent and want to check ad spend — Previously: switch to browser, log in, dig through reports. Now: "Show me today's spend across all accounts."

CPA spikes at midnight — Previously: manually pause ads one by one. Now: "Pause everything with CPA above $20." Handled in minutes.

Want to replicate a winning campaign to other accounts — Previously: manual copy, verify every setting. Now: "Copy this campaign to accounts B and C." Agent handles asset and identity adaptation.

Setting up a complex optimization rule — Previously: fill out fields one by one in the rules UI. Now: "When 7-day average ROAS drops below 2, cut budget by 20%." Agent configures it.

AdRate CLI gives AI agents full TikTok ad operations capability. Your agent doesn't just fetch data — it executes.

Read ad data "How much did account A spend in the last 7 days?" — Agent pulls the report and summarizes it clearly. No spreadsheet digging.

Manage ad status "Pause ads that spent over $500 today with zero conversions" — Agent finds matching ads and executes bulk operations.

Duplicate campaigns "Copy my best-performing campaign to three other accounts" — Agent handles cross-account duplication with automatic asset and identity adaptation.

Configure auto rules "Create a rule: when CPA exceeds $12 for 3 consecutive days, auto-pause" — Agent sets up conditions, actions, and execution frequency.

Dry Run testing "Before executing, test which ads this rule would affect" — Agent runs a simulation and shows you the results before any real changes.

GMV Max e-commerce "Show all store campaigns sorted by ROI, lowest first" — Agent manages your TikTok Shop campaigns too.

Daily ad management — Check data, adjust budgets, pause underperformers right from your AI agent. No browser or context switching needed.

Bulk operations — "Cut budget by 30% on all ads with CPA above target" — one sentence replaces thirty minutes of manual work.

Rule configuration — Describe your optimization logic in plain language. Agent translates it into precise rule settings.

Cross-account management — Managing multiple ad accounts? Agent copies configurations and applies strategy changes across accounts.

Emergency response — Data looks off? Tell your AI agent and it handles it. No dashboard digging required.

Getting your AI agent to manage ads takes three steps:

Step 1: Install Tell your AI: "Install the AdRate CLI(npm install -g @adrate/cli)." Your agent handles the installation automatically.

Step 2: Authorize Tell your AI: "Log me into AdRate CLI." Agent opens the authorization page — just confirm in your browser.

Step 3: Start using Say what you want. "Show me today's total ad spend." "Pause ads with CPA above $20." "Create an auto rule for account A." It's that simple.

Frequently Asked Questions

Q: Do I need to know how to code?

Not at all. You just tell your AI what you want in plain language. AdRate's AI Agent Skills teach your AI how to operate — you just make requests.

Q: Which AI platforms are supported?

Any AI agent platform that supports Agent Skills — Codex, Claude Code, Hermes Agent, Cursor, Accio Work, and more. Whether you use a developer agent, a business operations agent, or a personal assistant — if it can read Skill files, it works.

Q: Could my AI accidentally mess up my ads?

AdRate CLI provides Dry Run (simulation testing). You can have your agent test results before executing. Every operation is also fully audit-logged.

Q: I don't want to install anything. Is there another way?

Yes. AdRate has a built-in AI Agent in the web app: sign in, click Agent in the left menu and ask. It covers the same Ads and GMV Max work, lets you approve each change or put a playbook on a schedule, with draft previews and Lark alerts, and uses the AI credits in your plan. The CLI is the better fit if you already work in Claude Code, Codex or another AI agent and want AdRate inside that workflow or your own scripts.

Q: Does the CLI cost extra?

No separate purchase. The CLI comes with your AdRate subscription, and you can start on the free plan. CLI calls count toward your plan's daily API quota, not your AI credits, and the AI model runs on your own subscription. Higher plans raise the quota and the rule frequency.

Q: Is AdRate CLI an MCP server? How does it relate to TikTok Ads MCP and Agentic Hub?

AdRate CLI is a command-line tool, not an MCP server: your agent runs it directly, guided by AdRate's Agent Skills. TikTok's official MCP server and Agentic Hub bring TikTok's own tools into AI agents; AdRate CLI adds AdRate's layer on top, such as cross-account campaign copy, auto rules you can dry-run first, and GMV Max management. You can use them side by side.