TikTok · from Gemini CLI
Post to TikTok from Gemini CLI.
The clip is on your disk and TikTok fetches from the web. Gemini CLI covers the distance in one task, asking twice before anything is public.
TikTok will not take a post without a video or photos, and from Gemini CLI those are files on disk: a screen recording, an edit exported from a video app, a set of images a script made. Gemini CLI cannot hand a file to a tool directly, so it uses our upload tool: it requests a target, sends the bytes there with a shell command of its own, and gives the returned address to the post. We carry the media to TikTok from there and publish it on your profile, not in your drafts.
Photos go out as a single carousel of up to 35 images, each turned into the JPEG TikTok accepts, and the caption can run to 2,200 characters. A published TikTok cannot be deleted through the API by anyone, so the moments where Gemini CLI asks first are worth more here than on most networks — and on this network there are two of them, one for the upload command and one for the publish call.
Asking Gemini CLI for a TikTok post
The TikTok ceilings in this exchange come from the same table the publisher enforces — the conversation is drawn, the numbers are not.
› Set me up — what do you need?
Just the accounts. Connect them in the browser once and I can publish from here after that.
› Done, connected
I will tell you before publishing if a network cannot take what you wrote.
› Good. Drafting the launch note now
Send it over and I will check it before anything goes out.
› upload exports/teaser-vertical.mp4 to tiktok now, the caption is in teaser.txt next to it
local video · caption read from a file
Uploaded from disk, and TikTok has everything it needs:
Live on your TikTok profile. No post link comes back from TikTok yet, so look for it in the app.
What TikTok allows
Read from the same table the publisher enforces, so this cannot drift from what actually happens when you press send.
- Caption limit
- 2,200 characters
- Post with no image or video
- Refused by TikTok
- Reply chains
- No — the parts are joined into one post
- Images or video per post
- 35
- Image formats
- Anything we accept for upload
Gemini CLI, on the other networks
TikTok, from the other agents
- TikTok from ChatGPT
- TikTok from Claude
- TikTok from Cursor
- TikTok from Claude Code
- TikTok from OpenClaw
- TikTok from Hermes
- TikTok from Codex
- TikTok from Claude Cowork
- TikTok from VS Code
- TikTok from Windsurf
- TikTok from Cline
- TikTok from Kilo Code
- TikTok from Zed
- TikTok from OpenCode
- TikTok from Amp
- TikTok from Goose
- TikTok from Grok
- TikTok from Perplexity
- TikTok from Le Chat
- TikTok from Raycast
- TikTok from LM Studio
- TikTok from Warp
- TikTok from Kimi Code
- TikTok from Junie
- TikTok from DeepSeek
Publishing to TikTok from Gemini CLI
The bytes leave from your machine
Gemini CLI asks for an upload target, sends the clip from disk with a shell command and passes the address on, so you never host the file anywhere yourself.
Profile post, not inbox draft
TikTok’s API parks uploads as drafts unless told otherwise. The mode is always set explicitly, so a clip from Gemini CLI shows up as a post on your profile.
A photo post from a folder
Point Gemini CLI at a folder of images and each is uploaded in turn, converted to JPEG where needed and published together as one TikTok photo post.
Two prompts, both worth reading
The shell command that sends the clip and the publish call are approved separately. Trusting the 1Social server skips only the second; yolo skips both.
How it works
Connect once
~2 minLink the accounts you use in a browser. OAuth, no passwords typed into a chat, no API keys to paste anywhere.
ChatGPT
Claude
Cursor
Ask, in your own words
one sentenceTell Gemini CLI to publish to TikTok, now or on a day you name. No dashboard, no tab switch.
Read the receipt
per networkOne line per network — what landed, what failed and why, and what genuinely could not be determined.
Two separate yeses before a TikTok goes out
Publishing a clip from Gemini CLI takes two kinds of tool call. The upload is a shell command, usually curl, that sends the bytes to the target our upload tool returned; the post is a call to our publishing tool. Gemini CLI approves them separately. Marking the 1Social server as trusted removes the prompt for our tools but not for the shell, while the yolo approval mode removes both. Since a live TikTok cannot be deleted through the API, the publish prompt is the one to keep — and because the upload target expires quickly, approve the upload command promptly once it appears.
A rule of TikTok from Gemini CLI, not ours and not the network’s. From documentation, checked 2026-11-23.
When this is the wrong tool
If you shoot on your phone and want the clip up within a minute, TikTok’s own app is quicker; from Gemini CLI the video has to be on the computer first. Views, likes and comments do not come back to the terminal yet, so the result of a post is its line in the reply and nothing more.
Questions people actually ask
Can Gemini CLI upload a video file to TikTok?
Yes, as long as the file is on the machine Gemini CLI runs on. It requests an upload target, sends the video with a shell command and then calls the publishing tool, which hands the clip to TikTok on the account you connected in 1Social.
Why does Gemini CLI ask me twice before posting to TikTok?
Because the upload and the post are different kinds of tool call: a shell command that sends the file, then a call to the 1Social publishing tool. Gemini CLI confirms each on its own, and allowing one does not allow the other.
Can Gemini CLI remove a TikTok it posted by mistake?
No. TikTok offers no way to delete a published video through its API, so it has to come down in the TikTok app. That is the strongest reason not to trust the server or use yolo in sessions that post here.
Something else? Ask us — a person answers.
Read next
Start where you already work.
Connect an account and post your first update in about two minutes. Every plan starts with a free trial.
Posts go out through each network’s official API — not scraping.