Coding agents and editors

Post to social media from Antigravity CLI

Setup checked September 22, 2026Google

Antigravity CLI — agy — is Google's terminal agent, and since June 2026 the one Google points free and Google One users to in place of Gemini CLI. A short entry in its MCP config connects it to iHatePosting.

Set it up

  1. 1. Create an iHatePosting API key

    Sign in, open Settings → Developers and create a key. It starts with pk_live_ and is shown in full only once, so copy it before you leave the page.

  2. 2. Add iHatePosting to Antigravity CLI

    Add to ~/.gemini/config/mcp_config.json, inside its mcpServers object. On Windows that file is %USERPROFILE%\.gemini\config\mcp_config.json. Then start agy and run /mcp to see it connect. Replace YOUR_API_KEY with your key.

    {
      "mcpServers": {
        "ihateposting": {
          "serverUrl": "https://ihateposting.com/mcp",
          "headers": {
            "Authorization": "Bearer YOUR_API_KEY"
          }
        }
      }
    }
  3. 3. Ask it to post

    Tell Antigravity CLI what you want to say and where. It saves a draft in iHatePosting unless you ask for the post to go out now or at a set time.

What is different about Antigravity CLI

  • The field is serverUrl. Google's MCP page says a remote server must define serverUrl, so a block copied from a Gemini CLI setup, with url or httpUrl, is not what agy documents.
  • agy does not expand environment variables in this file — a ${VAR} header is sent as written, so the server still connects and lists its tools, but every tool answers iHatePosting API 401 — so the file holds your key in plain text. Use the global file in your home folder, not a project folder you commit. The per-project .agents/mcp_config.json also has an open bug report.
  • After saving, start agy and run /mcp to see whether the server connected, and reload it from there. Each tool asks before it runs unless you allow it.
  • If it will not connect, use the local route: in the same mcpServers object, replace ihateposting's serverUrl and headers with a command of npx, args of -y and ihateposting-mcp, and an env entry named IHATEPOSTING_API_KEY holding your key. It needs Node.js, and runs our server on your own machine. An open report says some local servers' tools also cannot be called, so try one tool after switching.

Limits. Antigravity CLI comes with every Antigravity plan, the free one included, with a weekly quota that paid Google AI plans raise. You sign in with a personal Google account in a supported region or a Gemini Enterprise business account, or run it on your own Gemini API key. Several open reports in its issue tracker describe remote servers failing through serverUrl, and we have not yet run agy against iHatePosting ourselves; the local route avoids that path. Another open report says some servers' tools, local ones included, are listed but cannot be called. An organisation's admin can block MCP servers.

Google's own documentation: MCP in Antigravity

Nothing goes out unless you say so

Every post Antigravity CLI writes is saved as a draft in iHatePosting unless you ask for it to be published now or at a set time. Publishing, rescheduling, retrying and deleting are marked as actions that change things, so clients that honour those markings ask you before they run them. Deleting a post in iHatePosting never removes one that is already live on a network.

Frequently asked questions

Can I reuse my Gemini CLI config in agy?

Use serverUrl instead. Google's MCP page says a remote server must define serverUrl, and a block copied from Gemini CLI uses url or httpUrl, which is not what agy documents.

Can I keep my key in an environment variable?

No. agy does not expand environment variables in this file, so a ${VAR} header is sent as written and every tool answers iHatePosting API 401. Put the key in the global file in your home folder, not in a project folder you commit.

What if agy will not connect?

Use the local route: replace ihateposting's serverUrl and headers with a command of npx, args of -y and ihateposting-mcp, and an env entry named IHATEPOSTING_API_KEY holding your key. It needs Node.js and runs our server on your own machine.

Ready to post everywhere from Antigravity CLI?

Start your 90-day free trial — no credit card, about a minute to your first post.

Sign Up

Other AI agents

See every AI agent