TikTok · from OpenCode

Post to TikTok from OpenCode.

TikTok fetches clips from the web, and OpenCode reaches your disk. The upload tool joins the two, and one rule keeps a pause before the post.

TikTok will not take a post without a video or photos, and from OpenCode those are files: a screen recording, an edit exported from a video app, a folder of images a script produced. OpenCode sends them through our upload tool — it asks for a target, uploads the bytes with curl and passes the returned address to the post — and we carry the media to TikTok and publish it on your profile, not in your drafts.

Photos go out together as one carousel of up to 35 images, each converted to the JPEG TikTok accepts, and the caption can run to 2,200 characters. A published TikTok cannot be deleted through the API by anyone, which matters more in OpenCode than elsewhere: its default permissions ask before neither the upload nor the post, so a clip can be public before you have looked at the caption.

Asking OpenCode 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.

OpenCode19:02

› 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/promo-vertical.mp4 to tiktok now, the caption is in promo.txt beside it

local video · caption from a file

1S

Uploaded from your disk, and TikTok has what it needs:

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

Posted to your TikTok profile. TikTok does not return a post link yet, so find 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

OpenCode, on the other networks

TikTok, from the other agents

Publishing to TikTok from OpenCode

Sent from disk by OpenCode

OpenCode fills the upload target with a shell command on the machine it runs on, so the clip never needs a public home of yours before TikTok fetches it.

Published, not parked in drafts

TikTok’s API files uploads as inbox drafts unless told otherwise. The mode is always set, so a clip sent from OpenCode appears on your profile as a post.

A folder of stills, one post

Point OpenCode at a folder of images and each is uploaded and turned into a JPEG where needed, then published together as a single TikTok photo post.

Two rules worth writing

An ask rule on the publishing tool stops OpenCode before the clip goes live; a second one on shell commands brings back a pause before the upload as well.

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 OpenCode 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.

A clip dropped into the prompt reaches nobody

OpenCode’s attachment rules are specific about video: audio, video and other binary attachments are not included in the model request at all. Drag a clip into the desktop or web client and the model is not shown it, and no tool receives it either, so the TikTok has nothing to carry. What works is the path. Keep the export on a disk OpenCode can reach, name it in the request, and OpenCode uploads it through our tool before it calls publish. Since a live TikTok cannot be deleted through the API, add an ask rule for the publishing tool before the first clip goes out.

A rule of TikTok from OpenCode, not ours and not the network’s. From documentation, checked 2026-11-23.

When this is the wrong tool

Clips that start life on a phone are better posted from the TikTok app, where sounds, effects and drafts live too; OpenCode suits footage that is already an export on your computer. And nothing about how a TikTok performs comes back to the session afterwards.

Questions people actually ask

Can I drag a video into OpenCode to post it on TikTok?

No. OpenCode leaves video attachments out of the model request, so neither the model nor a tool receives the clip. Save it to disk and give OpenCode the path, and it uploads the file through 1Social before publishing.

Will OpenCode ask me before a TikTok goes live?

Only if you tell it to. The default policy allows every tool, our publishing tool and the shell included. A published TikTok cannot be deleted through the API, so this is the network where an ask rule on the publishing tool earns its place.

Can OpenCode delete a TikTok it posted by mistake?

No, and neither can any other client: TikTok has no API for deleting a published video. It has to be removed in the TikTok app, which is why the pause before publishing matters more here than anywhere else.

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.