Codex + Slack
Post to Slack from Codex
Through iHatePosting, Codex can post messages and team updates into a Slack channel. 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 message can hold up to 3,000 characters, Slack's own limit for a block of text.
Posting to Slack from Codex
Add iHatePosting to Codex once, connect Slack, and then describe the post. Setup takes about a minute.
Add iHatePosting to Codex once
Add the iHatePosting entry to Codex's config.toml and sign in with codex mcp login. Then connect Slack in iHatePosting if you have not already.
Add to the end of ~/.codex/config.toml, then run the login command.
[mcp_servers.ihateposting]
url = "https://app.ihateposting.com/mcp/oauth"
# then, in a terminal:
codex mcp login ihatepostingAsk for the Slack post
Describe the post in plain language. Codex writes it, applies the settings and schedules it.
> Post the changelog summary to #releases on Slack today at 17:00.
Codex: Done. Scheduled on Slack.What Codex can do on Slack
On Slack, Codex can post messages and team updates into a Slack channel.
Channel messages
Send a message into a channel of your workspace.
Channel list
List the channels available, then choose one.
Pictures
Attach pictures to a message; video is not sent to Slack.
Scheduling
Send the update at a time you name.
How Codex gets a post onto Slack
You say what you want and Codex makes the calls. A typical conversation goes like this.
Find your Slack channel
Which Slack accounts do I have in iHatePosting?
What happens
- Codex lists your channels and finds Slack
- It can also run the channels helper: Lists the channels the agent can post to.
Compose your content
List my Slack channels and post this week's plan to #team-updates on Monday at 9:00.
What happens
- Codex drafts the text for Slack
- 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 Slack at that time
Slack settings reference
Say the option in your own words and Codex fills in the matching field. This is every Slack setting it can use.
| Field | Type | Required | Description |
|---|---|---|---|
| channel | string | Yes | Channel must be an id |
Common configurations
Each case below is a request Codex understands, followed by the Slack options it sets.
Choose a channel
Post it in #team-updates
- Applies: channel: the channel's id
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, thencodex mcp login - iHatePosting MCP server (API key): Entry in
~/.codex/config.tomlthat names the variable holding your key - iHatePosting skill (command line): npx skills add
iHatePostingOrg/iHatePosting-Agent
# iHatePosting MCP server (sign in)
[mcp_servers.ihateposting]
url = "https://app.ihateposting.com/mcp/oauth"
# then, in a terminal:
codex mcp login ihatepostingSlack and the other platforms Codex reaches
Ask for Slack and other channels in a single message; every channel still applies its own settings.
Slack requests to try in Codex
A release note
Post the changelog summary to #releases on Slack today at 17:00.
A Monday update
List my Slack channels and post this week's plan to #team-updates on Monday at 9:00.
A picture
Post chart.png with a two-line explanation to #metrics tomorrow at 10:00.
Slack limits and gotchas to know
A few of Slack's rules shape how Codex writes your request, so it helps to know them.
- A message can hold up to 3,000 characters, Slack's own limit for a block of text.
- Pictures only: a post with a video is refused for Slack.
- Every post names one channel by its id; the agent lists the channels first and picks the one you mean.
Frequently asked questions
Start free for 30 daysAdd the iHatePosting entry to Codex's config.toml and sign in with codex mcp login, connect Slack in iHatePosting, then ask Codex for the post in plain language. It schedules the post and iHatePosting publishes it at the time you set.
A message can hold up to 3,000 characters, Slack's own limit for a block of text.
Codex can set channel. The settings reference on this page lists what each one does.
No. The first route opens an iHatePosting sign-in in your browser, and no key changes hands. The route that takes a key uses one from Settings → Agents / Dev in iHatePosting. The command line signs in with ihateposting auth:login.
Yes. Name a day and a time and iHatePosting publishes the post then, whether or not Codex is still open.