Skip to content

Post to TikTok from Codex

Codex is OpenAI's coding agent. It runs as the Codex CLI in your terminal, as an IDE extension and inside the ChatGPT desktop app, and all three can use MCP servers. A video with your caption, shared with the privacy you choose; TikTok takes no text-only post.

Updated November 2026

Connect Codex to Kreatix

Sign in with Kreatix

No key to copy: paste the address, sign in to Kreatix and press Allow.

  1. Run once in a terminal: codex mcp add kreatix --url https://api.kreatix.cc/mcp
  2. Run codex mcp login kreatix, sign in to Kreatix in the browser and press Allow.
  3. Start codex and type /mcp to check that kreatix is listed.
codex mcp add kreatix --url https://api.kreatix.cc/mcp

With a key

For setups without sign-in. The key works like a password, so keep it to yourself.

  1. In Kreatix, open Settings > AI agent and create a key. It is shown once.
  2. Add the [mcp_servers.kreatix] table from the snippet to the end of ~/.codex/config.toml.
  3. To keep the key out of the file instead, run export KREATIX_API_KEY=YOUR_KEY in your shell and then codex mcp add kreatix --url https://api.kreatix.cc/mcp --bearer-token-env-var KREATIX_API_KEY.
  4. Check with codex mcp list, or with /mcp inside codex.
[mcp_servers.kreatix]
url = "https://api.kreatix.cc/mcp"
http_headers = { "Authorization" = "Bearer YOUR_KEY" }

What Codex can do on TikTok

A video with your caption, shared with the privacy you choose; TikTok takes no text-only post.

SettingValuesNeededWhat it does
media_urlURLYesThe video: a link from your Kreatix library or a public YouTube, TikTok, Instagram or Facebook post, which Kreatix imports first.
tiktok_privacyPUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR, SELF_ONLYYesWho can see the video: everyone, friends, followers or only you (private), in that order. There is no default, so the agent has to ask you.
tiktok_music_confirmedtrueYesSet to true once you agree to TikTok's Music Usage Confirmation. Without it, the TikTok post is refused.
captionstring (max 5000)NoThe video's text on TikTok. Only the first 2,200 characters go.

Ask in plain words

Ask inside the codex terminal app, or one-off from a script: codex exec "Which of my Kreatix pages got the most views this week?"

  • codex exec "Post my newest video on both TikTok pages tomorrow at 19:00, public. I agree to TikTok's music terms."
  • codex exec "Take this YouTube Shorts link and post it on TikTok tonight at 21:00, followers only."
  • codex exec "Move Saturday's TikTok post to Sunday 12:00."

TikTok rules to know

  • Kreatix never picks a privacy level for you: a TikTok post without your choice is refused.
  • You must agree to TikTok's Music Usage Confirmation, or the TikTok post is refused.
  • TikTok refuses videos whose average frame rate is outside 23 to 60 fps, so Kreatix sends it a 30 fps copy and keeps your original.
  • Only the first 2,200 characters of the caption go to TikTok.
  • The agent schedules videos only; TikTok photo posts go from Kreatix's Publish now to your TikTok inbox.

Tips for Codex

  • Add default_tools_approval_mode = "writes" to [mcp_servers.kreatix]. Codex then asks before schedule_post, reschedule_post and cancel_post, and runs the reading tools straight away.
  • Set it up once: the Codex CLI, the IDE extension and Codex in the ChatGPT desktop app share ~/.codex/config.toml.
  • In the IDE extension you can skip the terminal: gear menu > MCP servers > Add server, choose Streamable HTTP, enter the address, save, select Restart extension, then Authenticate.
  • The agent checks the pages, caption and time with you before it posts. It cannot delete pages, read messages or change your account, and you can remove it any time in Settings > AI agent.

Questions

How do I post to TikTok from Codex?

Connect Codex to Kreatix once, as shown above. Then ask it to post: name your TikTok pages or a page group, the video or text and the time. Codex shows you the plan and posts after you say yes.

Why does the agent ask me about privacy every time?

TikTok's rule for apps that post for you: the person picks who can see each video, and there is no default. Kreatix never picks Public for you, so a TikTok post without your choice is refused.

Can I post a YouTube Short to TikTok?

Yes. Give the agent the public link: Kreatix downloads the video into your library first (from YouTube, the best version up to 1080p), then schedules it on TikTok. If the download fails, the agent says so and nothing is scheduled.

My video was shot at a low frame rate. Will TikTok take it?

TikTok refuses videos whose average frame rate is outside 23 to 60 fps. Kreatix checks the file and sends TikTok a 30 fps copy; your original stays as it is.

Can the agent turn off comments, duets or stitches?

No. schedule_post sends TikTok only your privacy choice. The comment, duet and stitch switches, branded content and the AI label are set on Kreatix's Publish screen.

Can I sign in on a machine without a browser?

Yes. Run codex mcp login kreatix --no-browser, open the printed link on another device, sign in and press Allow, then paste the full redirect URL back into the terminal.

Does the config go in my home folder or the project?

~/.codex/config.toml works everywhere. A project's .codex/config.toml also works, but only in projects you trust.

Kreatix schedules one video to every page you run, each with its own platform settings.

Start free, then connect Codex

Codex with other platforms

TikTok from other agents