+

Gemini CLI + X Ads

Connect Gemini CLI to X Ads

Run X Ads from Gemini CLI. Add AdAgnt to Gemini CLI, sign in once, and connect X Ads with X's own sign-in. Ask in plain English; every change waits for your approval.

  1. 1
    Add AdAgnt to Gemini CLI

    Run this in a terminal. It writes AdAgnt to ~/.gemini/settings.json.

    gemini mcp add --transport http -s user adagnt https://mcp.adagnt.com/mcp

    Gemini CLI MCP docs ↗

  2. 2
    Sign in to AdAgnt

    In Gemini CLI, type /mcp auth adagnt. Your browser opens AdAgnt's sign-in.

    No AdAgnt account yet? This creates one on the Free plan. No card, no password.

  3. 3
    Connect X Ads

    Ask: Show my ad connections. It replies with a Connect link for each platform; open the one for X Ads.

    Sign in with X and authorize AdAgnt for your ads account. AdAgnt never sees your X Ads password.

    Then say “check my connections”, and X Ads shows Live. You can also connect it in the web app: app.adagnt.com → Accounts.

  4. 4
    Ask, then approve
    Which X campaigns had the lowest cost per click last week?

    Campaigns, line items, promoted posts and targeting: reads, and changes you approve.

    Answers come straight back. A change comes back as a proposal: nothing reaches X Ads until you approve it, and AdAgnt then reads X Ads back to confirm it landed. Approve it at app.adagnt.com → Approvals.

Click a screenshot to see it full size.

Questions about Gemini CLI and X Ads

Does AdAgnt work with Gemini CLI and X Ads today?

Yes. Connect your X Ads account with X's own sign-in, and Gemini CLI can read it and propose changes. Each change waits for your approval.

Can Gemini CLI change my X Ads campaigns without asking?

No. A change comes back as a proposal, and nothing reaches X Ads until you approve it at app.adagnt.com → Approvals. After it runs, AdAgnt reads X Ads back to confirm it landed.

Does AdAgnt see my X Ads password?

No. You sign in on X's own page. AdAgnt stores the access token encrypted (AES-256-GCM) on its server, never in Gemini CLI, and you can disconnect at any time.

What is AdAgnt?

A hosted MCP server that connects your AI assistant to your ad accounts, so you can ask about campaigns and propose changes in plain English. You add one URL to Gemini CLI and sign in; no platform API keys.

What does it cost?

AdAgnt's Free plan connects every ad account you run, with 20 reads and 10 changes a month (no cap during launch), no card. Paid plans start at $29 a month, plus applicable tax.

Gemini CLI with other ad platforms

X Ads from other AIs

Two minutes from here to your first answer.

Free plan: every ad account, 20 reads and 10 changes a month (no cap during launch).

Start freeAll 64 connections