Codex CLI
BulkPublish
Post to social media from Codex CLI
Codex CLI works from your terminal, and so can your social posts. Connect BulkPublish and Codex can draft, schedule and publish from the same session you used to write the code.
Suits terminal-first developers who want release posts, weekly updates or build-in-public threads to go out without switching windows.
Setting up Codex CLI
Codex keeps its servers in a TOML file. Add the table below to it; there is no add command for remote servers, so edit the file directly. The first tool call opens the sign-in in your browser.
- Create a BulkPublish account. The free plan connects three channels and does not ask for a card.
- Add the hosted MCP server to Codex CLI with the configuration below. The address is https://mcp.bulkpublish.com/mcp and there is no key to copy.
- Sign in when Codex CLI asks you to. That sign-in is OAuth 2.1, so the token stays with Codex CLI and you can revoke it from your account at any time.
- Ask it to post something. It can see your channels, your queue and your analytics from the first message.
Configuration for Codex CLI
[mcp_servers.bulkpublish]
url = "https://mcp.bulkpublish.com/mcp" [mcp_servers.bulkpublish]
command = "npx"
args = ["-y", "@bulkpublish/mcp-server"]
env = { BULKPUBLISH_API_KEY = "bp_your_api_key" } Checked against the Codex CLI documentation on September 10, 2026. Read it there
The AI toolkit has a Codex CLI section that walks through this step by step.
Prompts to start with
Once Codex CLI is connected, paste one of these to get going. Swap anything in square brackets for your own details.
Sum up what we changed in this session as a short build-in-public post. Show me the draft, then publish it with BulkPublish to [channels]. Read the git log for the past seven days and write a weekly update post from it. Schedule it in BulkPublish for [Friday afternoon]. List what is already scheduled on my BulkPublish channels this week, so we do not post about [topic] twice. What Codex CLI can do
Codex CLI gets the same set of tools as every AI agent that connects to BulkPublish. See every tool on the MCP server page
Where the posts go
Whatever Codex CLI schedules can go to any of these 15 networks, to one account or to all of them at once. Each one links to its own page with its limits and post types.
Building something of your own instead? Every network above also has a developer page, one for AI agents and one for code.
Details
The practical facts about Codex CLI in one place, for setting it up now or checking something later.
| Detail | Value |
|---|---|
| Authentication | OAuth 2.1. Sign in once, nothing to copy, revoke whenever you like |
| Operations | 46 operations |
| Networks | 15 networks |
Open Codex CLI · Read the API docs
Frequently asked questions
What people usually want to know before they connect Codex CLI.
Is there a command to add the server?
Not for remote servers. Codex keeps its servers in a TOML file, so add the table on this page to it directly. The first tool call opens the sign-in in your browser.
Can I post build-in-public updates from a session?
Yes. Codex can draft, schedule and publish from the session you used to write the code, so a release post or a weekly update goes out without switching windows.
Can Codex CLI post to social media on its own?
Yes, once you have connected it. Codex CLI reaches the same API the app uses, so it can write a post, put it in the queue, publish it, and read the numbers back. Everything it schedules appears in your content calendar, so you can look before it goes out.
Do I need an API key?
No. The hosted server uses OAuth 2.1, so you sign in once in your browser and Codex CLI holds a token from then on. You can revoke that token from your account at any time, and nothing else stops working.
Is anything installed on my machine?
No. The server is hosted, so Codex CLI connects to a web address. There is nothing to run locally and nothing to keep updated, and it works the same on every machine you sign in from.
Still stuck? The Help Center walks through it step by step.
Guides and tutorials
Walkthroughs from our blog that use Codex CLI.
Other integrations
BulkPublish also works with 8 other tools. Pick one to see how it connects.
Start publishing
Create an account, connect your channels, and your first post can be scheduled a couple of minutes later. Free plan, no card, cancel whenever you like.