Run your social media from Codex.
Codex knows your repo, so it can turn what you shipped into posts. Add SociaHive with two commands.
https://www.sociahive.com/api/mcpCodex and SociaHive at a glance
- How it connects
- codex mcp add, or an [mcp_servers] entry in config.toml
- Sign-in
- OAuth through codex mcp login
- What you need
- A ChatGPT plan that includes Codex, or an OpenAI API key, plus SociaHive
- Best for
- Turning releases and diffs into posts
- Not for
- Running on a timer by itself; it works when you or a script start it
Set it up in Codex.
Needs a SociaHive trial or paid plan.
Connect SociaHive to Codex
Your server address
https://www.sociahive.com/api/mcpCodex
Codex CLI or the Codex IDE extension
- 1
Run codex mcp add sociahive --url with the server address.
- 2
Run codex mcp login sociahive and sign in to SociaHive.
- 3
Start codex and ask away.
Then: Ask “Which accounts do I have connected in SociaHive?”
Install in Codex
Two commands
codex mcp add sociahive --url https://www.sociahive.com/api/mcp codex mcp login sociahive
config.toml
Or add it by hand to ~/.codex/config.toml, then run codex mcp login sociahive.
[mcp_servers.sociahive] url = "https://www.sociahive.com/api/mcp"
Skill
Optional. Teaches the agent when to use the SociaHive CLI.
npx skills add sociahive/sociahive-mcp
Things to ask first.
Copy one into a chat once you are connected.
Codex writes it from the diff, SociaHive queues it.
Your connected accounts and their platforms.
Follower, engagement and content trends.
Codex MCP for social media
Codex is OpenAI’s coding agent. It runs in your terminal as the Codex CLI and in your editor through the Codex IDE extension, and it reads, edits and runs the code in your repo.
Connected to SociaHive, Codex can turn a release into posts, list the accounts you post to and read how they performed, with the diff and your numbers in the same session.
You add SociaHive with codex mcp add and sign in with codex mcp login, which uses OAuth. The CLI and the IDE extension read the same config.
Can Codex post on a schedule?
Codex works when you start it. codex exec runs it without the interactive screen, so a cron job or CI step you set up can start it, for example after each release.
Your posts do not depend on Codex being around. SociaHive holds each scheduled time and publishes then, long after Codex has finished.
Everything Codex can do in SociaHive.
Schedule posts
Write a post and queue it at your best time, on any account you connected.
Post right now
Publishes straight away, after you confirm in the chat.
See your calendar
Everything that is scheduled, across all your accounts.
Read your numbers
Reach, saves and engagement per post, and what to post more of.
Build DM automations
Describe it in one sentence. It builds the flow as a draft for you to turn on.
Check your automations
Which flows are live and how often each one fires.
Reuse what works
Save your best posts to an evergreen queue and reshare them later.
Move posts in bulk
Shift a whole day of posts in one go, keeping their times.
What Codex gets: the SociaHive MCP server.
One address, https://www.sociahive.com/api/mcp. The same server works in every AI tool on this site.
MCP (Model Context Protocol) is the open standard AI tools use to reach outside apps. SociaHive runs a hosted MCP server, so there is nothing to install or keep running: Codex calls it over the internet and acts in your SociaHive account. These are the tools it uses most. See every tool and the API.
| Tool | What it does |
|---|---|
| list_accounts | Lists the social accounts you connected to SociaHive. |
| create_scheduled_post | Writes a post, with text, images or video, for one or more accounts. |
| schedule_post | Queues a post at a time you pick or at your best time. |
| find_next_slot | Finds the next free slot in your posting schedule. |
| publish_post_now | Publishes straight away, after you confirm. |
| upload_media_from_url | Copies an image or video from a public link into your media. |
| get_scheduler_calendar | Shows what is scheduled, across all accounts. |
| get_post_analytics | Reads reach, likes, comments and saves per post. |
| get_content_insights | Finds which formats and topics beat your usual numbers. |
| generate_flow | Builds a DM automation from one sentence, as a draft. |
| list_flows | Lists your automations, which are live and how often they run. |
| bulk_reschedule_posts | Moves many scheduled posts in one go. |
One connection, every channel.
Connect each account once in SociaHive and Codex can post to it. Scheduling covers 22 platforms; X needs a paid plan.
DM automations run on Instagram, Facebook, Messenger and WhatsApp on every paid plan, and on Telegram on Pro and Agency.
Is it safe to let Codex post for you?
You approve the connection
Sign in to SociaHive and approve, or use an API key you can delete at any time. The agent never sees your social passwords.
Read-only if you want
Tick “Read-only access” when you connect and the agent can look at everything and change nothing.
Nothing goes live by surprise
Publishing right now asks for your yes in the chat. Automations it builds start as drafts until you turn them on.
Revoke in one click
Settings → Connected apps in SociaHive cuts the agent off on its next request. API keys are deleted under Settings → API keys.
Codex or another AI tool?
Every one of them connects to the same SociaHive account.
| Agent | Kind | How it connects | Best for |
|---|---|---|---|
| Codex | Coding agent | codex mcp add, or an [mcp_servers] entry in config.toml | Turning releases and diffs into posts |
| Claude Code | Coding agent | The SociaHive plugin, or claude mcp add with the server address | Bulk work from files: CSVs, changelogs, release notes |
| Cursor | Coding agent | The Add to Cursor link, or mcp.json with the server address | Announcing what you ship without leaving the editor |
| Gemini CLI | Coding agent | gemini extensions install, or settings.json with httpUrl | Quick checks and posts from the terminal |
| ChatGPT | Chat assistant | A custom MCP plugin on chatgpt.com, with the SociaHive server address | Writing captions and scheduling them in the same chat |
| OpenAI dots | Autonomous agent | Custom MCP server added in ChatGPT, then allowed for the dot | Watching your calendar and automations between check-ins |
What does it cost?
Codex is included in several ChatGPT plans and also works with an OpenAI API key. See OpenAI’s Codex pricing page for which plans include it and their limits.
On SociaHive, MCP access is part of the 7-day trial and every paid plan, from Creator up. There is no extra charge per tool call. See plans.
Included in the trial.
And on every paid plan. 7-day free trial for the paid features. No credit card required.
Connect CodexTroubleshooting Codex.
- codex mcp add does not accept --url
- Update the Codex CLI; adding a server by URL needs a recent version. Or add the server to ~/.codex/config.toml by hand.
- SociaHive tools do not show
- Run codex mcp list to check that sociahive is there, then codex mcp login sociahive if you are not signed in.
- It asks me to upgrade
- MCP access is part of the SociaHive trial and every paid plan. On the free plan the agent can connect, but each request answers with an upgrade link.
- An account is missing
- The agent only sees accounts connected in SociaHive. Connect it under Connected accounts, then ask the agent to list your accounts again.
- A post did not go out
- Ask the agent for the post’s status, or open it in SociaHive. A failed post shows the platform’s reason, for example an expired login that needs reconnecting.
- It says it is not allowed to change anything
- You connected with read-only access. Remove SociaHive under Settings → Connected apps and connect again without ticking it.
FAQ
Does it work in the Codex IDE extension?
Yes. The CLI and the IDE extension read the same ~/.codex/config.toml.
Where does codex mcp login keep my sign-in?
On your computer. Revoke it any time in SociaHive under Settings → Connected apps.
Can Codex write a post from my last release?
Yes. Point it at the release, the changelog or the diff, and it writes the post and schedules it through SociaHive.
Can I run it in CI?
Yes. codex exec runs without the interactive screen. If the job has no browser to sign in with, use the sociahive CLI with SOCIAHIVE_API_KEY instead.
Do I need a ChatGPT plan for Codex?
A ChatGPT plan that includes Codex, or an OpenAI API key. SociaHive needs its trial or a paid plan either way.
Can it post or change things without asking me?
Automations it builds start as drafts, with every step written out, until they are turned on. Publishing a post right away needs your yes in the chat. If you only want it to look, tick “Read-only access” when you connect: it can read everything and change nothing.
Which plans include it?
The 7-day trial and every paid plan. On the free plan your assistant can still connect, but each request answers with a link to upgrade instead of running.
How do I disconnect it?
Open Settings → Connected apps in SociaHive and revoke it. It is cut off on its very next request. You can also remove the connector in your assistant.


