Codex social media from your CLI and editor
Codex social media work starts with one entry in your Codex config that points at the OnlySocial MCP server. Then Codex can read your accounts, draft and schedule posts to 16 networks and answer the inbox from the CLI or the IDE extension, while anything you mark for approval waits for a person.
Add the Codex MCP server in config.toml
The Codex MCP setup lives in ~/.codex/config.toml. Add a table named [mcp_servers.onlysocial] with one line, url = "https://app.onlysocial.io/mcp". If you prefer the command line, codex mcp add onlysocial --url https://app.onlysocial.io/mcp writes the same entry for you. Codex treats it as a streamable HTTP server, so nothing runs on your machine.
Next, run codex mcp login onlysocial. Your browser opens, you sign in to OnlySocial and you pick the workspace Codex should work in. If you work over SSH without a local browser, add the --no-browser flag. The full tool list, and how the same server treats Claude, ChatGPT and Cursor, is on the social media MCP server page.
Because the connection is a remote HTTP server, there is nothing to install or keep updated on your side. When OnlySocial adds tools, Codex sees them the next time it lists the server, and if you ever want to remove access, delete the table from config.toml or disconnect the app in OnlySocial. Codex social media access is tied to the workspace you picked at sign-in, so a personal test workspace keeps experiments away from client accounts.
Run social tasks from the OpenAI Codex CLI
The OpenAI Codex CLI is built for working in a repository from the terminal, and the OnlySocial tools slot in beside its file and shell tools. Ask it to write a short post about the feature you just merged, show you the draft, then schedule it. Each network gets its own version, with the right length for X and a longer take for LinkedIn.
Codex social media requests can be quick checks too. Ask what goes out this week, whether anything failed to publish or which drafts still wait for approval. Codex reads your real calendar, so the answers match what your team sees in the social media scheduler, and new posts sit there ready to edit or move.
The same tools in the IDE extension
The Codex IDE extension shares the CLI's configuration, so once OnlySocial is set up you can ask for a post from the editor panel while the diff you are describing is still open. No second setup is needed.
Inbox passes between tasks
Codex can read Salesbot conversations, reply to customers, tag contacts and move pipeline stages. Replies you mark for approval wait for a teammate, so a quick pass through the inbox never sends anything unchecked.
Schedule posts with Codex from your release notes
Codex can read your repository, which makes launch day simple. Point it at CHANGELOG.md, a merged pull request or the release notes and ask for launch posts. It picks out the changes users notice, writes a version per network and lets you schedule posts with Codex across the morning, so Threads, LinkedIn, Bluesky and Mastodon each get the right tone.
Keep yourself in the editor's seat. Ask for drafts, read them in the terminal, request changes, then schedule. If publishing is marked for approval, the posts wait on the Home page until a teammate signs off. Codex social media drafts get better when the prompt names real details: the audience on each network, the change to lead with and the link people should open. For a long launch week, bulk scheduling and the calendar show everything at once.
Codex automation with scripts and repeatable prompts
Once a prompt works, write it down. Codex reads an AGENTS.md file in your repository for project instructions, so a short section there can hold your launch post brief: which networks, what tone, when to schedule and that every post waits for approval. Each run then starts from the same rules, and the brief is versioned with your code where the team can review it.
For runs without a person at the keyboard, Codex has a non-interactive mode, codex exec, that a script or CI job can call with a prompt after a release tag. Keep that kind of Codex automation narrow. Let it create drafts, keep publishing behind approval, and set a small send budget so a person still reads every post before your audience does.
- Keep your launch brief in AGENTS.md next to the code
- Call codex exec from a release job with a fixed prompt
- Let scripts draft while approval handles publishing
- Check every run in the activity log
Start with a dry run
Before you wire Codex automation into a release job, run the same prompt by hand a few times. Check the drafts, tighten the brief in AGENTS.md and only then let the job call it on every tag.
Pair Codex with the REST API and webhooks
MCP suits the moments when you want to ask an agent for help. For code that runs by itself, the social media API covers the same ground: a Publishing API, a Messaging API and a Link in Bio API on one workspace key with scoped permissions. Webhooks send events for posts, messages, contacts, bookings, payments and store orders to your URL.
A clean split is to let webhooks and your own services handle the predictable work, such as logging published posts or sending new bookings to a sheet, and to keep Codex social media sessions for writing and judgement. Codex can also help you build the API client, reading the reference at api.onlysocial.io while it edits your code. Both paths share one workspace, so their posts and replies land in the same calendar and inbox.
# Claude Code claude mcp add --transport http onlysocial https://app.onlysocial.io/mcp # Cursor: ~/.cursor/mcp.json { "mcpServers": { "onlysocial": { "url": "https://app.onlysocial.io/mcp" } } }
curl -X POST https://app.onlysocial.io/os/api/$WORKSPACE_UUID/posts \ -H "Authorization: Bearer osk_YOUR_SECRET" \ -H "Content-Type: application/json" \ -d '{ "accounts": [12, 18], "date": "2026-11-12", "time": "18:00", "timezone": "Europe/Lisbon", "schedule": true, "versions": [{ "account_id": 0, "is_original": true, "content": [{ "body": "The rust tote is back." }] }] }'
Keep approvals on for Codex social media
An agent that can edit code, run commands and post to brand accounts needs clear limits. In OnlySocial you choose which actions wait for a person, such as publishing a post or replying to a customer. Those actions sit in the approvals list until someone signs off, so a Codex social media session can draft freely without anything going public by mistake.
Send budgets add a second limit. Each connection has a cap on how many messages and posts the agent can send, and when it runs out, further sends wait for a person. Every action shows in the workspace activity log, so you can see what Codex read, created and sent. The same controls apply to replies in the AI sales chatbot inbox.
A sensible way to begin is to give Codex read access first. Let it list accounts, summarise the calendar and read the inbox for a week. Then let it create drafts that wait for approval, and only later allow it to publish small things, such as a scheduled reminder, within a tight budget.
How to start with Codex social media
- Step 1
Add the server
Add [mcp_servers.onlysocial] with url = "https://app.onlysocial.io/mcp" to ~/.codex/config.toml, or run codex mcp add onlysocial --url with the same address.
- Step 2
Sign in and pick a workspace
Run codex mcp login onlysocial, sign in to OnlySocial in your browser and choose the workspace Codex should read and act in.
- Step 3
Turn on approvals
In OnlySocial, mark publishing and customer replies for approval and set a send budget, so drafts wait for a person before going out.
- Step 4
Give Codex a first task
Ask Codex to turn your release notes into posts, check the week's calendar or sum up the inbox, then review what it created.
What OnlySocial customers say
Rated 4.4 out of 5 from 61 reviews on Trustpilot. Read every review
Infinite accounts, API endpoint, all good.
I had issues setting up my comment auto reply using chatgpt, and the support went through the stress of guiding me through every step. … Exceptional service... with lots of features.
The variety of available integrations is impressive, allowing the consolidation of many services, saving costs, and simplifying management.
Codex social media FAQ
Something else? The help and API docs cover every feature.
How do I set up Codex social media posting?
Add an [mcp_servers.onlysocial] table with url = "https://app.onlysocial.io/mcp" to ~/.codex/config.toml, then run codex mcp login onlysocial and sign in to OnlySocial. Pick a workspace, and Codex social media requests work in plain words, such as asking for a LinkedIn post about today's release.
Does the Codex MCP setup need a bridge for remote servers?
No. Codex supports streamable HTTP MCP servers, so the Codex MCP entry is just the OnlySocial URL. You do not need a local proxy or an extra package. The social media MCP server page lists every tool the connection gives you.
Does the OpenAI Codex CLI share setup with the IDE extension?
Yes. The OpenAI Codex CLI and the Codex IDE extension read the same configuration, so after you add OnlySocial once, its tools are available in both. You can draft a post in the terminal and check the calendar from your editor.
Can I schedule posts with Codex from a changelog?
Yes. Codex can read files in your repository, so ask it to turn the newest changelog section into one post per network and schedule them. Ask for drafts first, and keep publishing marked for approval in OnlySocial.
Is Codex automation safe in CI?
It can be when you keep it narrow. Call codex exec with a fixed prompt, let it create drafts only, and keep approvals and a small send budget on the connection. Every action appears in the activity log, so you can audit each run.
Should I use MCP or the REST API with Codex?
Use MCP when you want to ask an agent for help in plain words. Use the social media API and webhooks for services that run on their own. Both work on the same workspace, and the reference is at api.onlysocial.io.
Does this work with Claude Code or Cursor?
Yes. Every MCP app connects to the same address. See Claude Code social media for the one-line terminal setup, Cursor social media for mcp.json, or schedule posts with ChatGPT if you work in the ChatGPT app.
Bring social media into Codex
Add the OnlySocial MCP server to Codex, keep approvals on and turn your next release notes into launch posts.
