NEW: the postqueen MCP server is live. Connect it in a minute
TikTok

Automate TikTok with Codex

Point Codex at the postqueen CLI and it creates, schedules and verifies TikTok videos as one repeatable task you can rerun any time.

Quick start

Set up the CLI inside the workspace Codex uses, then describe the TikTok outcome you want in the task prompt.

Codex session
# Inside a Codex session
npm install -g postqueen
export POSTQUEEN_API_KEY=your_api_key
 
# Then prompt:
# "Create this week's TikTok videos
# from notes.md and schedule them
# with postqueen"

What Codex can run on TikTok

TikTok publishing as software

Codex runs postqueen commands, reads the JSON results and verifies each step, so your TikTok pipeline behaves like any other task it automates in CI or cron.

Windows that fit TikTok

Tell Codex when your followers are most active and it schedules videos into that window on TikTok, day after day, without reminders.

Native video, native timing

Video uploads travel through the same postqueen call, so Codex ships TikTok videos with real media attached and the publish time already set.

Drafts until you are ready

Ask Codex for drafts only. They sit on the postqueen calendar unscheduled, so you can edit them and pick the time yourself, and nothing reaches your followers on TikTok until you do.

Three steps to a full queue

Step 1

Discover TikTok

Codex calls postqueen to list your connected accounts and sees what TikTok supports, so drafts start from real capabilities, not guesses.

Step 2

Draft with Codex

Give it the brief. The agent writes TikTok-shaped videos and proposes publish times that match when your followers are around.

Step 3

Check and publish

Look over the queue on the postqueen calendar and change anything you want. postqueen publishes each post at its time, and Codex can pull the results after.

What TikTok allows

Codex reads these limits from postqueen before it composes, so a draft that would be rejected never reaches the queue.

Caption length
Up to 2,200 characters per video caption when publishing through the API
Video length
Up to 10 minutes for most accounts
Aspect ratio
Vertical 9:16, with 1080 x 1920 the recommended upload size
Photo posts
Up to 35 images in one photo post
Post settings
Every API upload sets a privacy level plus comment, duet and stitch permissions
App review
TikTok only allows public direct posting from audited apps, so a self-hosted app posts privately until it is approved
TikTok

Everything postqueen does on TikTok

Scheduling, AI drafts, analytics and team roles, in one guide.

Read the TikTok guide
F.A.Q.

Frequently asked questions

How does Codex connect TikTok to postqueen?

Install the postqueen CLI where Codex runs commands and export your API key. Every command returns JSON, so the agent can create, schedule and list TikTok videos reliably.

Can Codex schedule TikTok videos at exact times?

Yes. Give it exact slots or a rule like mornings at nine and it sets publish times on the videos it creates, so your followers see them at the right moment.

Will Codex publish to TikTok on its own?

Only if you ask it to. Tell it to save drafts and nothing is scheduled: the videos wait on the calendar until you set a time. Tell it to schedule, and they go out at the times you can see, which is the setup most people move to once they trust the output.

Can one brief cover TikTok and other channels too?

Yes. postqueen connects 30 channels, so Codex can turn the same brief into TikTok videos plus adapted versions for every other channel you run.

Does Codex access cost extra on postqueen?

No. The agent uses your regular API key and plan limits: unlimited posts on every plan, and channel counts from 5 on Creator up to uncapped on Ultimate.

Can I cross-post the same video to Instagram Reels and YouTube Shorts?

Yes. Upload the vertical video once, select TikTok, Instagram and YouTube, and adjust the caption per platform before scheduling. Each network gets a native upload, so nothing arrives carrying a TikTok watermark.

What TikTok analytics does postqueen show?

postqueen reports the video-level metrics TikTok's API exposes for your own account, such as views, likes, comments and shares, plus how your follower count moves. Use it to compare hooks and posting slots rather than guessing.

Ready to get started?

Queue this week's posts in minutes, or hand the whole thing to your favorite AI. postqueen keeps publishing either way.

Seven days free. Cancel in one click from settings.