New MCP server: let ChatGPTClaudeClaude CodeCodexCursorOpenClaw or any AI agent schedule your posts See how it works

Codex + Threads

Post to Threads from Codex

Through iHatePosting, Codex can publish short posts and connected replies. Add the iHatePosting entry to Codex's config.toml and sign in with codex mcp login, then ask it for the post you want.

Setup takes about a minute. A post can hold up to 500 bytes, so emoji and accented letters use more than one each.

ThreadsCodex15 networks

Posting to Threads from Codex

Add iHatePosting to Codex once, connect Threads, and then describe the post. Setup takes about a minute.

Step 1

Add iHatePosting to Codex once

Add the iHatePosting entry to Codex's config.toml and sign in with codex mcp login. Then connect Threads in iHatePosting if you have not already.

Add to the end of ~/.codex/config.toml, then run the login command.

~/.codex/config.toml
[mcp_servers.ihateposting] url = "https://app.ihateposting.com/mcp/oauth" # then, in a terminal: codex mcp login ihateposting
Step 2

Ask for the Threads post

Describe the post in plain language. Codex writes it, applies the settings and schedules it.

Codex
> Post a one-line product update on Threads tomorrow at 10:00. Codex: Done. Scheduled on Threads.

What Codex can do on Threads

On Threads, Codex can publish short posts and connected replies.

Short posts

Publish text posts of up to 500 bytes: an emoji or an accented letter counts for more than one.

Connected posts

Ask for a thread and the text is split into connected posts.

Media

Attach pictures or video from your media library.

Scheduling

Choose a date and time for the post.

How Codex gets a post onto Threads

You say what you want and Codex makes the calls. A typical conversation goes like this.

Find your Threads channel

Which Threads accounts do I have in iHatePosting?

What happens

  • Codex lists your channels and finds Threads
  • It also reads the channel's rules and settings

Compose your content

Turn the changelog into a four-post thread on Threads and schedule it for Wednesday at 9:00.

What happens

  • Codex drafts the text for Threads
  • It uploads any media you mention

Schedule and publish

Yes, schedule it for tomorrow at 9:00.

What happens

  • Codex schedules the post in iHatePosting
  • iHatePosting publishes it to Threads at that time

Threads settings reference

Threads needs nothing beyond the text, the media and the time.

FieldTypeRequiredDescription
(none)-NoNo extra settings: Codex sends the text, the media and the time

What is Codex?

Codex is OpenAI's coding agent. The command line, the IDE extension and the ChatGPT desktop app all read the same config.toml, so one entry connects every one of them.

It can read a repository, write the announcement for a change and schedule it in iHatePosting.

How iHatePosting works with Codex

Once connected, iHatePosting hands Codex its tools: your channels, posts, media and each channel's settings (14 tools in all). Codex calls them while you describe what you want.

  • iHatePosting MCP server (sign in): Entry in ~/.codex/config.toml, then codex mcp login
  • iHatePosting MCP server (API key): Entry in ~/.codex/config.toml that names the variable holding your key
  • iHatePosting skill (command line): npx skills add iHatePostingOrg/iHatePosting-Agent
Set up Codex
# iHatePosting MCP server (sign in) [mcp_servers.ihateposting] url = "https://app.ihateposting.com/mcp/oauth" # then, in a terminal: codex mcp login ihateposting

Threads and the other platforms Codex reaches

Ask for Threads and other channels in a single message; every channel still applies its own settings.

Threads requests to try in Codex

A short post

Post a one-line product update on Threads tomorrow at 10:00.

A conversation

Turn the changelog into a four-post thread on Threads and schedule it for Wednesday at 9:00.

A picture

Post photo.png on Threads with a friendly caption today at 17:30.

Threads limits and gotchas to know

A few of Threads's rules shape how Codex writes your request, so it helps to know them.

  • A post can hold up to 500 bytes, so emoji and accented letters use more than one each.
  • The channel has no extra settings to choose.

Frequently asked questions

Start free for 30 days

Add the iHatePosting entry to Codex's config.toml and sign in with codex mcp login, connect Threads in iHatePosting, then ask Codex for the post in plain language. It schedules the post and iHatePosting publishes it at the time you set.

Hand your Threads posts to Codex

Start free for 30 days.