Automate

Automate TikTok with Gemini CLI

TikTok is the only video platform here that will take a landscape or a square cut, not just a vertical one.

One command
$ gemini mcp add --transport http antwork https://api.antwork.io/mcp

Gemini CLI adds Antwork over HTTP with one command, then authorizes with its own slash command. Two lines and you are posting from the terminal.

Connect it

  1. 01Authorize with /mcp authRun /mcp auth antwork inside the Gemini CLI. It opens an OAuth consent screen in your browser; there is no key to paste into a config file.
  2. 02Connect the social accountAsk it to connect your account and it returns a connect link per platform. Authorize once and Antwork refreshes that token for you.
  3. 03Draft, then publish as a second stepDrafting and publishing are separate tool calls. The agent writes first and only publishes when you say so, which matters more in a terminal where there is no card to review.

What you can say once TikTok is connected

Write a TikTok caption for this video in my voice, with a hook in the first line.

Schedule this TikTok for Friday evening and tell me why that slot.

Take the hook from my best TikTok and write three more like it.

How are my TikTok posts doing compared to last month?

What is different about TikTok

Only here

It is not vertical-only

TikTok accepts 9:16, 16:9 and 1:1. YouTube Shorts takes 9:16 and nothing else, so a cut that posts here will not always go straight to Shorts, and the agent checks before it tries.

One video, and that is the whole post

No images, no carousel, no text-only post. If you ask for a set, the agent tells you at the drafting step rather than building something the publisher will reject.

The largest frame of any platform here

Up to 4096 by 4096, the highest resolution ceiling Antwork will accept anywhere, with ten minutes of runtime at 4 GB. Nothing you export will be too detailed for it.

More caption than the format suggests

The caption runs to 2,200 characters, the same as Instagram. Almost nobody uses it, which is most of the reason a written hook does well here.

Questions

Do I need an API key to connect Gemini CLI?
No. Antwork connects over OAuth — you approve a consent screen in the browser and you are done. There is no key to generate or paste into a URL, which is how most social MCP servers handle it.
Do I need a paid account?
No. Your first two connected accounts are free forever, with unlimited posts and workspaces, and there is no plan gate on MCP access.
Will Gemini CLI post without showing me first?
Not unless you ask it to. Drafting and publishing are two separate steps: the agent writes, renders the post card, and only publishes when you confirm.
Does the writing sound like AI?
Antwork hands the agent that account's recent posts, along with how each performed, and the agent writes to match them. On TikTok that includes writing to the length the format rewards, up to 2,200 characters.

Never leave Gemini CLI to post again.

One command, one consent screen, and TikTok is something you can just ask for.

Connect your AI