Codex + Threads
Post to Threads from Codex
Ask Codex to write and schedule your Threads posts. BrokenPost connects the two, follows Threads's rules and posts at the time you pick.
How to connect Codex to Threads
- 1
Connect Threads in BrokenPost. Sign in with your Threads account.
- 2
In BrokenPost, open Plugins and copy your MCP URL.
- 3
Add the lines below to ~/.codex/config.toml.
- 4
Run codex mcp login brokenpost and sign in.
- 5
Ask Codex to schedule a post.
# ~/.codex/config.toml
[mcp_servers.brokenpost]
url = "<MCP_URL>"Prefer another way? See every way to connect Codex.
What to ask Codex
Type these in Codex. Change the details to fit your posts.
- “Post this on Threads tomorrow at 9am and add two replies with more detail.”
- “Share these 3 pictures as a Threads carousel on Friday afternoon.”
- “Take my last X post and schedule it on Threads for tonight.”
- “Read the commits since the last tag and turn them into a short Threads post. Schedule it for 10am tomorrow.”
- “What Threads posts do I have scheduled for next week?”
What happens next
- 1
You ask in Codex, in plain words.
- 2
Codex lists the channels you connected in BrokenPost and picks your Threads account.
- 3
It reads Threads's rules and settings from BrokenPost, so the post fits Threads's limits before it is written.
- 4
If you shared a picture, a video or a link to one, it uploads it to your media library.
- 5
It creates the post as scheduled, as a draft, or to go out now, and gives you a preview link.
- 6
At the set time BrokenPost publishes it to Threads and it shows on your calendar.
Threads limits Codex follows
Codex reads these rules from BrokenPost before it writes, so the post fits the first time.
| Characters | 500 characters |
|---|---|
| Media | Pictures and videos, several make a carousel |
| Carousel | Several pictures or videos in one post |
| Replies | Yes, extra parts are posted as replies |
If Threads rejects a post
Codex sees the same message and can fix the post for you.
| What you see | How to fix it |
|---|---|
| Post text exceeds 500 characters limit | Shorten the post, or split it into a reply chain. |
| Threads access token expired | Reconnect Threads in BrokenPost. |
Good to know
- Each part of a Threads post can have up to 500 characters.
- Media must be uploaded to BrokenPost first. Your AI agent can do it from a link.
- Codex only posts when you ask. Ask for a draft to check the post in BrokenPost first.
Questions people ask
Can Codex post to Threads directly?
Yes, through BrokenPost. Connect Threads in BrokenPost, connect BrokenPost to Codex, and Codex can schedule, draft or publish Threads posts.
Does Codex know the Threads limits?
Yes. Codex reads Threads's rules from BrokenPost before it writes: 500 characters and pictures and videos, several make a carousel. BrokenPost checks again before it posts.
Can Codex schedule Threads posts for later?
Yes. Give a day and time, like "Friday at 6pm", and the post goes out then. Ask for a draft if you want to check it first.
Is it free?
Codex with BrokenPost works on every plan. The Free plan includes 1 account on every app and 20 posts a month. Paid plans start at $19 a month with unlimited posts.
Can Codex post a Threads thread or comments?
Yes. Ask for a thread or a first comment and BrokenPost posts each part as a reply, right after the first one.
Can I schedule a Threads reply chain?
Yes. Add more parts under your post and each one goes out as a reply to the one before.
More apps with Codex
Post to Threads with other AI
Write once. Post everywhere.
Start free with BrokenPost. Connect your apps and your AI in a few minutes.