Skip to content
CodexCodex + Postemi

Schedule Social Media Posts with Codex

  • Add the Postemi MCP server or the CLI in a minute
  • Codex lists channels, adds media and schedules posts
  • Works from your terminal, IDE or a codex exec script
Setup

How do I connect Postemi to Codex?

Codex keeps its MCP servers in one config file, shared by the CLI, the IDE extension and the Codex tab of the ChatGPT desktop app.
1Connectabout a minute

Add Postemi to Codex

One command writes the entry to ~/.codex/config.toml.

terminal
codex mcp add postemi --url https://mcp.postemi.com/mcp
2Asklive in Postemi

Then just ask Codex

Once connected, Codex calls the Postemi tools. Scheduled posts go out on time, even after you close the chat.

Schedule a post to X and LinkedIn for tomorrow at 9:00 announcing our new feature. Keep it short.
Codex

Done. I found your X and LinkedIn accounts and scheduled both posts for 9:00 tomorrow. Want me to save a version for Instagram as a draft too?

via PostemiXLinkedIn
Also try
  • List my connected channels
  • Plan a week of posts about our launch
  • Save this as a draft instead
  1. 1

    Connect your social accounts in Postemi

    Sign in to Postemi and connect the accounts Codex may post to.

  2. 2

    Add the server

    One command writes the entry to ~/.codex/config.toml.

  3. 3

    Sign in

    This opens Postemi's sign-in page in your browser. Approve access to one workspace.

  4. 4

    Ask Codex

    In a session, ask it to post about what you just built. Codex checks your channels and the calendar first.

Sign in
terminal
codex mcp login postemi
One connection

One Codex connection powers every channel you run

Connect your accounts in Postemi once. From then on Codex can post to any of them, 20 platforms today, without a separate setup per network.

  • Each account keeps its own rules and character limit, and Codex reads them first.
  • One request can go to several platforms, with the text adapted to each.
  • New accounts you connect in Postemi show up for Codex at once.
Ways to connect

MCP server or the CLI?

Both work with the same Postemi account. Many people use both.
MCP serverRecommended
Setup
codex mcp add, then codex mcp login
Needs
Codex CLI, IDE extension or the ChatGPT desktop app
Sign-in
Your Postemi account in the browser, no key
Best for
Asking for posts while you work
The Postemi CLIScripts
Setup
npm install -g postemi, then postemi auth:login
Needs
A shell; an API key in CI
Sign-in
Browser device sign-in, or POSTEMI_API_KEY
Best for
codex exec jobs, CI and analytics
What it can do

What can Codex do with Postemi?

Codex gets the same Postemi tools in every workspace it connects to. It writes; Postemi schedules and publishes.

Draft, schedule or publish

Codex creates a post as a draft, schedules it for a time you name, or publishes it right away. Ask for a draft when you want to check it first.

Preview per account

Before it creates anything, Codex can show what would go out on each account: the text, the media and the character count.

Reads your calendar

Codex sees what is already scheduled, in your time zone, so it can find a free slot or move a post.

Knows each platform's rules

Postemi tells Codex the character limit and the options of every connected account before it writes.

Images and video

Codex adds media from a link, or gives you an upload link for a file on your own computer.

Workspaces and client groups

If you manage several brands, Codex lists your workspaces and client groups and works in the one you pick.

The MCP server

What is the Postemi MCP?

MCP (Model Context Protocol) is an open standard that lets an AI agent use outside tools. Postemi runs a hosted MCP server at https://mcp.postemi.com/mcp. Codex connects to it, and from then on it can list your channels, read your calendar and create posts in your Postemi account.

The server runs on Postemi's side, so there is nothing to install for it. You sign in to Postemi in the browser, or use an MCP key, and that decides the workspace Codex works in. Your social accounts stay connected in Postemi itself: Codex never sees their passwords.

Postemi has no built-in AI writer, on purpose. Codex writes the posts, Postemi schedules and publishes them.

How Codex uses Postemi

Once Postemi is connected, Codex finds the tools by itself and calls them when you ask for a post.

  • Reads your connected accounts and each one's rules
  • Checks the calendar and your time zone before it picks a time
  • Can show a preview per account before it creates a post
  • Saves a draft, schedules, or publishes now, as you asked
  • Adds images and video from a link, or from an upload link you open
Server URL

https://mcp.postemi.com/mcp

~/.codex/config.toml
[mcp_servers.postemi]
url = "https://mcp.postemi.com/mcp"
# For CI, a key instead of the browser sign-in:
# bearer_token_env_var = "POSTEMI_MCP_KEY"
# Tools it gets:
# list_integrations connected accounts
# get_integration_schema rules and limits
# list_posts the calendar
# preview_post what would go out
# create_post draft, schedule, publish
# delete_post remove an unpublished post
# upload_media_from_url add an image or video
# create_upload_link upload from your computer

Your AI agent can run your social calendar

Codex schedules your next post

create_post

ChatGPT, Claude, Cursor and Codex sign in with your Postemi account. Manus, DeepSeek Harness and NanoClaw use an MCP key.

Example prompts

What can you ask Codex to post?

Anything you would ask a teammate: name the platforms, the time and the tone, and Codex handles the rest.
ReleaseXLinkedIn
Release notes to posts
Read CHANGELOG.md and write a post about the latest release. Schedule it on X and LinkedIn for tomorrow at 9:00, as drafts.
ReleaseLinkedIn
From a merged pull request
Summarize the pull request we just merged for users, and schedule it as a LinkedIn post for tomorrow at 10:00.
ThreadX
A thread on X
Turn this blog post into a five part thread on X and schedule it for Tuesday at 17:00.
Content calendarLinkedIn
Plan a week
Look at my Postemi calendar for next week and suggest three LinkedIn posts for the empty days. Save them as drafts.
Platforms

Which platforms can Codex post to?

Any account you connect in Postemi: 20 platforms today. Connect them once, then post to any of them by asking Codex.
Good to know

Is Codex the same as ChatGPT?

No. Codex reads its MCP servers from ~/.codex/config.toml; ChatGPT on the web uses plugins. Both can use the same Postemi account at the same time.
Codex
What it is
OpenAI's coding agent: CLI, IDE extension, cloud and the ChatGPT desktop app
How Postemi connects
codex mcp add, or the postemi CLI
Best for
Release posts from your code
ChatGPT
What it is
OpenAI's assistant for conversations
How Postemi connects
The plugin, or a custom MCP server
Best for
Planning posts in a chat

ChatGPT and Postemi

AI agents

Other AI agents that post through Postemi

The same Postemi account works with every agent below. Each page shows the exact setup.
FAQ

Frequently asked questions about Codex and Postemi

Yes. The Codex CLI, the IDE extension and the Codex tab of the ChatGPT desktop app read the same ~/.codex/config.toml.

Let Codex announce what it ships

Add Postemi with one command and ask Codex for your first post.

Add to Codex
Get started today

Grow your audience,not your workload

Postemi brings your social accounts together in one calendar, so you can spend more time on your leads and your business. Don't let managing your accounts take up ten hours a week.