How to post to TikTok from OpenAI Codex

To post to TikTok from Codex, run codex mcp add postwire --url https://postwire.io/api/mcp and codex mcp login postwire, connect your TikTok account once on TikTok's own page, and ask "post ./clips/demo.mp4 to TikTok, public, with a caption from CHANGELOG.md". Codex writes the caption with generate_posts, asks who can see the post (TikTok requires the owner to choose), and publishes it with post_to_social or queues it with schedule_post, up to 365 days ahead, through TikTok's official Content Posting API. PostWire's TikTok app is already audited, so you build no developer app and pass no review, and the free plan includes TikTok: 1 business, 10 posts a month, 5 AI drafts a day, 2 networks per post, no card.

A scheduled TikTok goes out from PostWire's servers with Codex closed. Codex never sees your TikTok password: you sign in on TikTok's page and allow PostWire to post for you.

Updated . Written from PostWire's own code; vendor prices read on Nov 30, 2026. Live networks: TikTok, Instagram, YouTube, LinkedIn (personal profiles), Facebook Pages, Bluesky, Mastodon, Telegram, Discord, and X on paid plans.

Set it up and post, step by step

Prompt to copy once TikTok is connected: Write a TikTok caption for ./clips/v3.1-demo.mp4 from what is in CHANGELOG.md, show it to me, and schedule it public for Friday at 7pm my time.

  1. Add PostWire to Codex

    In your terminal run codex mcp add postwire --url https://postwire.io/api/mcp, then codex mcp login postwire. The browser opens PostWire's sign-in, which asks for your email and a 6-digit code and creates a free PostWire account if you have none: no password and no card. codex mcp list, or /mcp inside Codex, shows postwire with its tools. The entry lands in ~/.codex/config.toml, which the Codex CLI, the IDE extension and the ChatGPT desktop app share, so one setup posts to TikTok from any of them.

  2. On a server or in CI, sign in another way

    codex mcp login postwire --no-browser gives you a sign-in link to open on any device. In CI, give Codex your key instead: copy it in the dashboard under API & MCP, set POSTWIRE_API_KEY, and put the variable's name in ~/.codex/config.toml, never the key itself:

    [mcp_servers.postwire]
    url = "https://postwire.io/api/mcp"
    bearer_token_env_var = "POSTWIRE_API_KEY"
  3. Connect your TikTok account

    Ask "connect my TikTok". Codex calls create_connect_link and prints a one-hour link; open it, sign in on TikTok's own page and allow PostWire to post. You do this once per account.

  4. Give it the video, or photos

    TikTok fetches the file from a link, so a file on your disk goes through an upload page: Codex asks for one (create_upload_link, valid 24 hours, up to 100 MB on the free plan and 1 GB on paid plans), you pick the file there, and get_uploaded_file hands Codex its link for video_url. Photos instead of a video make a TikTok photo post of up to 35 images (PNG is turned into JPEG for you). No video yet? make_video_from_text turns a few lines into an 8-12 second vertical MP4 (1080×1920) to show you before anything is posted.

  5. Ask for the caption and pick who sees it

    "Write the caption." generate_posts returns a draft and publishes nothing: 150 to 300 characters with the hook in the first 80 to 100, at most 5 hashtags inside the caption and one short call to action, well within TikTok's 2,200 characters. Then say who can see it: public, friends (mutual followers) or private. TikTok asks the account owner to choose this for every post; if nobody chooses, PostWire posts it private and says so in the result.

  6. Publish now, or schedule it

    Say "post it" and Codex calls post_to_social. Say "schedule it for Friday at 7pm" and it calls schedule_post, up to 365 days ahead, or with run_at: "next_slot" for your next free posting hour. This is the call:

    {
      "name": "schedule_post",
      "arguments": {
        "platforms": ["tiktok"],
        "per_platform": { "tiktok": {
          "text": "We cut our build from 9 minutes to 2. Here is the one change. #devtools #ci #buildinpublic"
        } },
        "video_url": "https://postwire.io/m/…/v3.1-demo.mp4",
        "privacy": "public",
        "run_at": "2026-12-04T19:00:00-05:00"
      }
    }
  7. Get the link

    TikTok processes the video after the call returns. Codex calls get_post_status with the returned id until it has the TikTok link, usually within a minute or two. If TikTok refuses the video, the result carries a code, what happened and the fix.

From a release script, codex exec "post ./clips/release.mp4 to TikTok, public, caption from CHANGELOG.md" runs the same request without the interactive screen. "What's scheduled on TikTok?" calls list_scheduled_posts and "cancel Friday's TikTok" calls cancel_scheduled_post. Prefer to set it up by hand? Open the dashboard, connect TikTok under Accounts and copy your key under API & MCP.

Ways to post to TikTok from Codex, side by side

How each service plugs into Codex and what it costs to start, read on its own Codex, MCP and pricing pages on Nov 30, 2026.

ServiceHow it plugs into CodexSign-inTikTok on the free startCheapest paid planWrites the caption
PostWirecodex mcp add postwire --url https://postwire.io/api/mcpOAuth (email and a 6-digit code), or an API key in bearer_token_env_varYes — free plan: 1 business, 10 posts a month, 5 AI drafts a day, 2 networks per post, no card$19/mo — 3 businesses, every network in each postYes — generate_posts, hook first, with each other network's version
Postizcodex mcp add postiz --url mcp.postiz.com/mcp-oauth-dynamic, or the Postiz skillOAuth, or POSTIZ_API_KEY for the skill7-day free trial$29/mo — 5 channelsNot listed
BlotatoA Codex plugin, or codex mcp add Blotato --url https://mcp.blotato.com/mcpOAuthNo — "API and MCP access require a paid Blotato plan"$29/mo (Solo)Not listed
Upload-PostIts MCP server mcp.upload-post.com/mcp; no Codex setup listedOAuth, or an API key in an Authorization headerNo — "The Free plan covers the other networks but not TikTok"$24/mo ($16 billed yearly)Not listed

Checked on Nov 30, 2026 (2026-11-30) on each vendor's own pricing or docs page, linked in the first column and below. Monthly billing in USD unless noted. "Not listed" means we could not find it on their page, not that it is missing.

Where PostWire is ahead

  • TikTok on the free plan: 10 posts a month, no card and no time limit, MCP included. Upload-Post's free plan leaves TikTok out, Postiz starts with a 7-day trial, and Blotato's MCP access needs a paid plan.
  • The cheapest paid plan here: $19 a month for 3 businesses, $15.20 billed yearly. Upload-Post $24 ($16 yearly), Postiz and Blotato $29.
  • The caption is written for TikTok: generate_posts writes a hook-first caption and, from the same idea, the YouTube title and the other networks' versions in the same request.
  • No video yet is fine: make_video_from_text makes an 8-12 second vertical MP4 from a few lines, to post to TikTok or YouTube Shorts.
  • No key to copy to start: codex mcp login postwire signs you in with your email and a 6-digit code, and creates the free account too. A key is there for CI.
  • A person approves what Codex queued: on paid plans, approval rules hold the post until you approve it from an emailed link.
Sources, all read on Nov 30, 2026:
  • Postiz — Post to TikTok from Codex (npx skills add gitroomhq/postiz-agent with POSTIZ_API_KEY, or codex mcp add postiz --url https://mcp.postiz.com/mcp-oauth-dynamic, "OAuth, no API key"): postiz.com/codex/tiktok
  • Postiz pricing ("Postiz has a 7-day free trial on every plan, and paid plans start at $29 per month"; Standard $29 a month, 5 channels; $23 a month on annual billing): postiz.com/pricing
  • Blotato + OpenAI Codex (a Codex plugin, or codex mcp add Blotato --url https://mcp.blotato.com/mcp; "API and MCP access require a paid Blotato plan"): www.blotato.com/codex
  • Blotato pricing (Solo $29 a month; "There's no free plan, but every plan includes a 7-day free trial. A card is required"; the trial covers all features "except the API and MCP server"): www.blotato.com/pricing
  • Upload-Post — TikTok MCP server (https://mcp.upload-post.com/mcp, OAuth or an "Authorization: ApiKey" header; "TikTok needs a paid plan: from $24/month, or $16/month billed yearly. The Free plan covers the other networks but not TikTok"): www.upload-post.com/mcp/tiktok/
  • Upload-Post llms-full.txt (Free: 10 uploads a month, no credit card required, "platforms without TikTok"; Basic $24 a month, $16 billed yearly, 5 profiles): www.upload-post.com/llms-full.txt
  • OpenAI — Codex MCP docs (~/.codex/config.toml shared by the ChatGPT desktop app, the Codex CLI and the IDE extension; codex mcp login <server-name>, with --no-browser for a terminal without a local browser; bearer_token_env_var; /mcp in the TUI): developers.openai.com/codex/mcp

What to say in Codex, and what TikTok receives

You sayCodex callsTikTok receives
"Post ./clips/demo.mp4 to TikTok, public"create_upload_link, generate_posts, then post_to_socialThe video with its caption, visible to everyone
"Post the six screenshots in ./assets as a carousel"create_upload_link, then post_to_social with the imagesA photo post of 6 images (up to 35)
"Make a 10-second clip from these release notes"make_video_from_text, then post_to_socialAn 8-12 second vertical video
"Is this export sharp enough for TikTok?"check_video_qualityNothing — it reads the file and reports
"Schedule it for Friday at 7pm"schedule_post with run_at and privacyThe same post, at that time
"Post it to TikTok and YouTube Shorts"post_to_social with both networksThe same file on both, each with its own text

Source: PostWire's MCP server and TikTok publisher, and OpenAI's Codex MCP docs, read Nov 30, 2026. Every TikTok tool and limit: TikTok MCP server; every client's setup: PostWire's MCP server.

Why post to TikTok from Codex

  • The clip and the facts are already in the repo: a screen recording in ./clips, the release notes in CHANGELOG.md. Codex writes the caption from what actually shipped.
  • One video, more than one feed: "post this to TikTok and YouTube Shorts" sends the same file to both, each with its own caption and a YouTube title. On the free plan one post reaches 2 networks; paid plans (from $19 a month) add Instagram Reels and the rest in the same request.
  • The same post from a script: once you know what you want, Codex can put it in your release job as one REST call, POST /api/post with {"platforms": ["tiktok"], "video_url": "…", "privacy": "public"} and your key.
  • A day's limit does not lose the post: when TikTok's daily limit on API publishing stops a direct post, PostWire sends the same file to your TikTok inbox, where you post it from the app, and the result says so.
  • A person can have the last word: on paid plans, a brand's approval rules hold what Codex queues until you approve it from an emailed link.

What Starter adds to posting on TikTok from Codex

One TikTok a day is about 30 a month, past the free plan's 10 and its 3 waiting posts. Starter is $19 a month, or $15.20 a month billed yearly:

  • An unlimited queue and 1,000 posts a month, so a month of TikToks can wait in line.
  • Files of up to 1 GB, against 100 MB on the free plan.
  • 25 recurring posts (create_recurring_post, or Automate → Recurring), for the weekly slot you never want to miss.
  • 3 businesses, each with its own TikTok account and other connections, plus every network in each post.
  • Approvals: what Codex queues waits until you approve it from an emailed link.

TikTok's rules Codex works within

  • Caption up to 2,200 characters; an emoji counts as 2.
  • A video, or 1 to 35 photos. TikTok takes no text-only posts.
  • Who can see it is chosen by the account owner for every post: public, friends or private. Branded content cannot be private.
  • Through TikTok's official Content Posting API and the permission you grant on TikTok's own page. No browser automation or session cookies.

What it does not do

PostWire does not add TikTok sounds to a video, does not edit or cut it, and does not read or answer comments. Over MCP a TikTok is published or scheduled; saving it as a draft in your TikTok inbox on purpose is an option of the REST API (options.tiktok.as_draft). For a cut-down clip, cut it first (Codex can run ffmpeg in your terminal) and give it the finished file.

Questions people ask

Can Codex post to TikTok?

Yes, with an MCP server. Codex has no TikTok access of its own; with PostWire added (codex mcp add postwire --url https://postwire.io/api/mcp, then codex mcp login postwire) and your TikTok account connected once, it writes the caption and publishes or schedules videos and photo posts when you ask.

Do I need a TikTok developer app or an audit?

No. PostWire's TikTok app is already audited for the Content Posting API: you sign in on TikTok's own page and allow PostWire to post. No client key to create and no review to pass.

Can Codex schedule TikTok posts?

Yes. It calls schedule_post with a time up to 365 days ahead, or "next_slot" for your next free posting hour, and PostWire publishes the TikTok at that time with Codex closed. The free plan keeps 3 posts waiting at once; paid plans have no such limit.

Why did my TikTok go out as private?

TikTok asks the account owner to choose who can see each post. If the request says nothing, PostWire posts it private rather than make it public for you, and the result says so. Ask Codex for "public" and it sends privacy: public.

Can it post a TikTok photo carousel?

Yes. Give Codex 1 to 35 images and it makes a TikTok photo post; PNG files are turned into JPEG for you.

Where does Codex keep the PostWire config?

In ~/.codex/config.toml, as a [mcp_servers.postwire] table with url = "https://postwire.io/api/mcp". The Codex CLI, the IDE extension and the ChatGPT desktop app read the same file.

How much does it cost?

The free plan includes TikTok and the MCP server: 1 business, 10 posts a month, 5 AI drafts a day, 2 networks per post, no card. Starter is $19 a month for 3 businesses and Pro $29 for 10, with every network in each post; nothing is charged from Codex.