TikTok · from Claude Code

Post to TikTok from Claude Code.

The clip is a file on your machine and TikTok fetches from the internet. Claude Code bridges the two in one task, then publishes.

TikTok needs a video or photos for every post, and from Claude Code those are almost always files on disk — an export from a video editor, a screen recording, a batch of images a script produced. Claude Code cannot attach a file to a tool call, so it takes the other route: it asks our upload tool for a target, sends the file there with a command of its own, and passes the resulting address into the post. We move the media to TikTok from there and publish it on your profile, not in your drafts.

Photos go out as one carousel of up to 35 images, each converted to the JPEG that TikTok accepts, and captions run to 2,200 characters. Before the publish call runs, Claude Code shows it to you and waits, unless you have allowed the tool. On TikTok that prompt deserves a real read, because a published video cannot be removed through the API by anyone.

Asking Claude Code 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.

Claude Code19:05

› 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.mov to tiktok now, caption is in caption.txt next to it

local video · caption from a file

1S

Uploaded from disk, and TikTok has what it needs:

TikTok caption2,200fits
Image or videorequired — attached
Reply chainsjoined into one post
Attachments allowed35per post

Published to your TikTok profile as a post. TikTok does not send a link back yet, so check it there.

› _

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

Claude Code, on the other networks

TikTok, from the other agents

Publishing to TikTok from Claude Code

From disk to TikTok in one task

Claude Code requests an upload target, sends the bytes from your machine and hands the address to the post. There is no hosting step left for you to do.

A post, never a parked draft

TikTok’s API files uploads as drafts unless told otherwise, so the mode is always set explicitly and a clip from the terminal becomes a post on your profile.

A folder becomes a photo post

Point Claude Code at a folder of images and they are uploaded in turn and published together as one TikTok photo carousel, in the order given.

The prompt is the only brake

Allowing the publish tool for good removes the last pause before a TikTok post, and that post cannot be taken down through the API once it is live.

How it works

1

Connect once

~2 min

Link the accounts you use in a browser. OAuth, no passwords typed into a chat, no API keys to paste anywhere.

ChatGPT

Claude

Cursor

2

Ask, in your own words

one sentence

Tell Claude Code to publish to TikTok, now or on a day you name. No dashboard, no tab switch.

3

Read the receipt

per network

One line per network — what landed, what failed and why, and what genuinely could not be determined.

The upload link does not wait

Our upload tool does not take the file itself. It returns a short-lived target and the exact headers to send with it, and Claude Code then sends the raw bytes there with a command such as curl before passing the public address to the post. The target expires quickly, so the two steps have to happen back to back; a long pause between them, or a run that stops in the middle, means asking for a fresh one. Serving the clip from a local web server is not a shortcut either: only public https addresses are accepted, and localhost is not one.

A limitation of this product. Ours to fix. From documentation, checked 2026-11-23.

When this is the wrong tool

If you film on your phone and want the clip up within the minute, TikTok’s own app is the quicker route; from Claude Code the video has to be on the machine first. And there are no TikTok numbers to ask about afterwards — views and likes do not come back to the terminal yet.

Questions people actually ask

Can Claude Code upload a video file to TikTok?

Yes. Name the file and ask; Claude Code gets an upload target from 1Social, sends the video to it, and publishes through TikTok’s Content Posting API on the account you connected. The reply says whether TikTok accepted the post.

Why did Claude Code ask for a new upload link halfway through?

Because the first one expired before the file was sent. Upload targets are short-lived on purpose; if the bytes are not sent soon after the link is issued, Claude Code needs a fresh one, which costs nothing but another call.

Can Claude Code delete a TikTok it posted by mistake?

No. TikTok gives no way to delete a published video through its API, so it has to be removed in the TikTok app. That is the reason to keep the publish tool behind Claude Code’s permission prompt.

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.