# Post to social media from Codex

Add PostSyncer to Codex with two commands, then write and schedule posts to 12 networks from the CLI, the IDE extension or the ChatGPT desktop app.

Two commands add PostSyncer to Codex. Then ask it to turn a release, a merged pull request or a docs page into posts and schedule them on the 12 networks you connect.

**PostSyncer MCP address:** https://postsyncer.com/mcp

## Set up with your AI agent

Paste this prompt into Codex. It asks for your email and the 6-digit code we send there, then makes your account, or connects the one you have. Next it connects your social accounts, reads how your posts did and drafts a week of posts in your voice for you to schedule.

```text
Set up PostSyncer for me: read https://postsyncer.com/agents/setup.md and follow it.
```

The steps the prompt points at: https://postsyncer.com/agents/setup.md

## How to connect

Codex adds MCP servers from its command line. Add PostSyncer once, sign in, and it’s ready wherever you use Codex.

1. **Add PostSyncer to Codex.** In your terminal. The CLI, the IDE extension and the ChatGPT desktop app use the same setup. `codex mcp add postsyncer --url https://postsyncer.com/mcp`

2. **Sign in.** Run the login command. Your browser opens to approve PostSyncer. `codex mcp login postsyncer`

3. **Ask Codex.** Start Codex in your project and ask for posts. It can read the repo, and it uses the PostSyncer tools to schedule them.

**Check that it works:** Ask your AI tool to “List my PostSyncer workspaces”. It calls `list-workspaces` and shows them, and “List my connected accounts” calls `list-accounts`. No social accounts yet? Ask for a connect link (`create-account-connect-link`) and sign in on the network’s own page.

**Then try it:** “Read the latest release notes in this repo and save a launch post as a draft in PostSyncer.”

### Running Codex in CI?

Where no one can sign in, give Codex an API key instead. Codex reads the token from an environment variable you name in its config (bearer_token_env_var). Create the key in PostSyncer’s Settings, under API, with only the permissions the job needs.

[Codex MCP guide](https://learn.chatgpt.com/docs/extend/mcp?surface=cli)

Codex connects to PostSyncer’s MCP server, https://postsyncer.com/mcp, over streamable HTTP and signs in with OAuth.

No social accounts in PostSyncer yet? Ask Codex for a connect link and open it in your browser.

## What you can ask

- “Look at the last merged PR and write a post about it for X and Bluesky. Schedule it for Wednesday at 10am.” (`list-accounts`, `create-post`)

- “Write the v3.1 release notes as a LinkedIn post and a Threads post, and save both as drafts.” (`list-accounts`, `create-post`)

- “List everything scheduled for launch week as a table: day, time, network.” (`list-posts`)

- “Delete the draft with the old opening hours.” (`list-posts`, `delete-post`)

- “Check the comments on this week’s posts and answer the setup questions.” (`list-posts`, `sync-comments-from-platforms`, `list-comments`, `create-comment`)

- “Set up a webhook to https://hooks.example.com/postsyncer for failed posts, and send it a test event.” (`create-webhook`, `test-webhook`)

- “Pull last week’s numbers and write them to reports/social.md.” (`get-analytics-workspace`, `get-analytics-post`; paid plans)

## Codex and PostSyncer

### One setup, three places

Codex keeps its MCP servers in one config that the CLI, the IDE extension and the ChatGPT desktop app all read. Add PostSyncer from the terminal, sign in, and it’s there in each of them without doing it again.

### From a merge to a post

Codex already knows what changed: it can read the commit log, a pull request or the docs. Ask it to explain the change for people who don’t read code, then schedule that on the networks your users follow.

### Drafts for review

A good habit for posts written from code: ask for drafts. They wait on the PostSyncer calendar, where someone who knows the audience can read, edit and schedule them. On paid plans, if your role in a workspace can’t publish, Codex’s posts go to approval anyway.

### Keys with only what they need

For automated runs, a PostSyncer API key can be narrow. Pick the permissions in Settings, under API; a job gets the least it needs.

- brand:read lets it read your brand voice first

- posts:create saves drafts

- posts:schedule also lets it schedule

- posts:publish also lets it publish now

- webhooks:create sets up failure alerts

## What PostSyncer offers Codex

The tools PostSyncer’s MCP server offers: the same things the app does, in the workspaces you belong to.

### Posts

- Write a post and publish it now, schedule it or save it as a draft, with its own text and settings for each network (`create-post`)

- See what’s scheduled, published, waiting for approval, drafted or failed (`list-posts`)

- Find a post by its PostSyncer ID, its public link or the network’s own post ID (`get-post`, `get-post-by-url`, `get-post-by-platform-post-id`)

- See who changed a post, what they changed and when, and whether each network posted it (`get-post-history`)

- Change a post’s text, media, accounts or time, or send a failed post again (`update-post`)

- Approve a post that’s waiting, then publish it, schedule it or keep it as a draft (`approve-post`)

- Retry publishing failed accounts on a failed or partially failed post (`retry-post`)

- Delete a post from the calendar (`delete-post`)

- Add a follow-up reply that goes out once a post reaches a number of likes, reposts, replies or views (`update-post-auto-plug`)

- Set a post’s comment rules: keyword filters, which comments to remove and AI auto-replies (`update-post-comment-moderation`)

- Read the replies under any public X post and answer a question about them (`analyze-twitter-post`)

Approving posts, comment moderation and reading an X post with AI need a paid plan.

### Accounts and workspaces

- List your workspaces: one per brand or client (`list-workspaces`)

- Make a workspace for a new brand or client, or delete one for good (`create-workspace`, `delete-workspace`)

- Read and change a workspace’s time zone, posting times and what new posts start with (`get-workspace-settings`, `update-workspace-settings`)

- See the connected social accounts, a Pinterest account’s boards and a YouTube channel’s playlists (`list-accounts`, `get-account`)

- See the sections of a Pinterest board, to put a Pin in one (`list-pinterest-board-sections`)

- Make a link where you or a client connect an account: no PostSyncer login, one use, good for 7 days (`create-account-connect-link`)

- Find people and companies to tag in a LinkedIn post, and get the exact tag to put in the text (`find-linkedin-mentions`)

- Disconnect a social account (`delete-account`)

- After you reconnect an account, put it back on the posts it was on. Posts the disconnect moved to drafts are scheduled again at their old time, if no one changed them and that time is still ahead (`put-back-account-posts`)

### Brand and snippets

- Read a workspace’s brand: who you are, how you sound, what works on each account, your competitors and your rules (`get-brand`)

- Change parts of the brand. What you set stays yours and AI won’t write over it (`update-brand`)

- Add a suggested competitor to the brand, or say it isn’t one so it’s never suggested again (`accept-brand-suggestion`, `dismiss-brand-suggestion`)

- Save sign-offs, calls to action and hashtag groups the team can drop into any post (`list-snippets`, `create-snippet`, `update-snippet`, `delete-snippet`)

### Media

- Add images, videos and PDFs to the media library from links, Google Drive and Dropbox share links included (`upload-media-from-url`)

- Put a photo or video you attach in ChatGPT straight into the library, or a small file the AI can read itself (`upload-media-file`)

- Make an upload link for a file the chat can’t pass, like a video in Claude: you open it, drop the file, and the AI gets it (`create-media-upload-link`, `get-media-upload-link`)

- Browse the media library and reuse what’s there (`list-media`, `get-media`)

- Watch a video from a post link or the library: what’s said and shown, its hook and its key points (`analyze-video`)

- Delete a file from the library (`delete-media`)

- Sort the library into folders (`list-folders`, `create-folder`, `get-folder`, `update-folder`, `delete-folder`)

Watching a video with AI needs a paid plan.

### Comments and reviews

- Read a post’s newest comments now, without waiting for the next scheduled read (`sync-comments-from-platforms`)

- Read a post’s comments and their replies (`list-comments`, `get-comment`)

- Reply to a comment, or add one of your own (`create-comment`)

- Edit or delete your comments (`update-comment`, `delete-comment`)

- Count the questions under a post nobody has answered yet, and the team threads waiting on you (`get-comment-summary`)

- List the teammates you can @mention in a post’s team comments (`list-post-people`)

- Hide a comment, like spam, on Instagram, Facebook, Threads, X or YouTube, and keep it in PostSyncer. Facebook, Instagram and YouTube can show it again. LinkedIn, Bluesky and Mastodon can’t hide one: delete it instead (`hide-comment`)

- Read your Google Business Profile reviews (`sync-reviews`, `list-reviews`, `get-review`)

- Reply to a review, change the reply or remove it (`reply-to-review`, `delete-review-reply`)

Review replies are public on Google, so the AI tool is told to use your words or ask you first. X comments are read on every plan.

### Analytics

- Totals across all your workspaces, for the dates you ask (`get-analytics-summary`)

- Totals for one workspace, with each account’s followers (`get-analytics-workspace`)

- How one account is doing, post by post (`get-analytics-account`)

- How one post did on each network (`get-analytics-post`)

- Read a post’s numbers again from the networks (`sync-post-analytics`)

On the Free plan, the summary, workspace and account numbers cover the last 7 days, and numbers are read once a day, so reading them again needs a paid plan.

### Campaigns and labels

- Group posts into a campaign, like a launch or a monthly theme (`list-campaigns`, `create-campaign`, `get-campaign`, `update-campaign`, `delete-campaign`)

- Tag posts with labels, like Promo or Client A (`list-labels`, `create-label`, `get-label`, `update-label`, `delete-label`)

Creating or changing campaigns and labels needs a paid plan.

### Webhooks

- Send signed events, like a post published or failed, to your own address (`list-webhooks`, `get-webhook`, `create-webhook`, `update-webhook`, `delete-webhook`)

- See what was sent to an address and whether it arrived (`list-webhook-deliveries`)

- Send a test event to check an address works (`test-webhook`)

### Team

- See who is on a workspace’s team, their roles, and who hasn’t accepted an invitation yet (`list-team-members`)

- Invite someone to the team by email, with a role (`invite-team-member`)

- Change a teammate’s role, or send an invitation again (`update-team-member`)

- Take someone off the team, or cancel an invitation (`remove-team-member`)

Inviting someone needs a paid plan.

### Notifications

- Read your notifications and mark them read, unread or done (`list-notifications`, `update-notifications`)

- See and change which events reach you, and where (`get-notification-settings`, `update-notification-settings`)

- Make a link to connect Slack, Discord or Telegram for alerts (`create-notification-connect-link`)

- Pick a Slack channel and the events it gets (`list-slack-channels`, `create-notification-destination`)

- Send a test message to a Slack, Discord or Telegram channel (`test-notification-destination`)

- Stop sending alerts to a channel (`delete-notification-destination`)

### Blog-to-social

- See your blog feeds, their accounts and schedule, and the posts they made (`list-blog-sources`)

- Turn a blog’s new articles into posts, as drafts or on a schedule (`create-blog-source`)

- Change a blog feed, or pause it and start it again (`update-blog-source`)

- Delete a blog feed, keeping the posts it made (`delete-blog-source`)

A feed’s posts are written with AI on paid plans.

### Products

- Save the products your posts promote, with a description, a link and hooks (`list-products`, `create-product`, `update-product`, `delete-product`)

Products need a paid plan.

### Your profile and API keys

- See your name and sign-in email, and change your name (`get-profile`, `update-profile`)

- See your API keys and their permissions, and delete one (`list-api-keys`, `delete-api-key`)

## Other AI tools that work with PostSyncer

- [ChatGPT](https://postsyncer.com/chatgpt)

- [Claude](https://postsyncer.com/claude)

- [Claude Code](https://postsyncer.com/claude-code)

- [Claude Desktop](https://postsyncer.com/claude#claude-desktop)

- [Grok Bot](https://postsyncer.com/grok-bot)

- [OpenClaw](https://postsyncer.com/openclaw)

- [Cursor](https://postsyncer.com/cursor)

- [OpenBot](https://postsyncer.com/openbot)

- [Grok](https://postsyncer.com/grok)

- [Gemini CLI](https://postsyncer.com/gemini-cli)

- [Antigravity](https://postsyncer.com/antigravity)

- [Any MCP client](https://postsyncer.com/mcp-social-media)

All of them: https://postsyncer.com/agents

## FAQ

### How do I add PostSyncer to Codex?

Run codex mcp add postsyncer --url https://postsyncer.com/mcp, then codex mcp login postsyncer. Your browser opens; approve PostSyncer and you’re connected. The CLI, the IDE extension and the ChatGPT desktop app all use that setup.

### Is this the same as PostSyncer in ChatGPT?

It’s the same PostSyncer account, reached a different way. In ChatGPT chats, PostSyncer is a plugin you install from the directory. Codex, OpenAI’s coding agent, adds it as an MCP server with codex mcp add.

### Can Codex use an API key?

Yes, for runs where nobody can sign in. Name an environment variable in Codex’s config with bearer_token_env_var and put a PostSyncer key in it. Give the key only the permissions the job needs.

### Is it free?

Codex works with every PostSyncer plan, the free plan included, with no card. Campaigns and labels are on paid plans. Analytics shows the last 7 days on the free plan, and the rest of it is on paid plans.

### Which networks can Codex post to?

PostSyncer’s 12, once you connect them: Instagram, TikTok, Facebook, X, LinkedIn, YouTube, Threads, Pinterest, Bluesky, Google Business Profile, Mastodon and Telegram.

### Can Codex tell me when a post fails?

Ask it to set up a webhook: PostSyncer then sends a signed event to your address when a post is published or fails. The signing secret is shown once, so keep it somewhere safe.

---

Page: https://postsyncer.com/codex · Updated 2026-11-24
