Publish to social media from Codex
Codex already works in your terminal and your repository. With SPREVA added as a remote MCP server, it turns what you just shipped into posts, schedules them on every network and reports on how they did, without leaving the terminal.
The short answer
Yes: add SPREVA with codex mcp add, sign in once with codex mcp login, and Codex can use SPREVA's 25 tools: drafts, scheduling, publishing, the media library, queues, analytics and, on Pro and Business, the Studio's video tools. It posts to Instagram, TikTok, LinkedIn and 31 networks in all.
What it can do in SPREVA
- Write one post for several accounts, with its own version for each network, and schedule it or put it in a queue.
- Announce a release on X, LinkedIn, Bluesky and Mastodon from the repository you are working in.
- Find your photos and videos by what they show, and import new ones from a link.
- Turn photos into a narrated vertical video, cut clips from a long one and change any scene by name, on Pro and Business.
- Turn a changelog or a README into a post for each network, and schedule it.
- Tell you how last week's posts did, per network and per account.
Prompts to try
Look at the commits since the last tag, write a post about what changed for X, LinkedIn and Bluesky, and schedule it for tomorrow at 10.
Make a 20 second vertical video from the screenshots in the Release folder of my SPREVA library, with music and captions, and export it.
Which were last month's top posts on X and LinkedIn, and at what time of day did they go out?
Good to know
- It needs a ChatGPT plan, and Free, Go, Plus, Pro, Business, Edu and Enterprise all include Codex. It also works with an OpenAI API key.
- The Codex CLI runs on your computer and shares its configuration with the IDE extension and the ChatGPT desktop app, so adding SPREVA once sets it up in all three.
- You choose in Codex's configuration whether it asks before it uses SPREVA's tools, and SPREVA still asks before anything public or costly, as your workspace decides.
Set it up
- 1
Add SPREVA as a remote server. Codex saves it in
~/.codex/config.toml:Terminal codex mcp add spreva \ --url https://dev-app.spreva.ai/api/mcp - 2
Run
codex mcp login spreva. Your browser opens SPREVA. - 3
Choose the workspace and click Allow.
codex mcp list, or/mcpinside Codex, now shows spreva.
The API key, the Agent Skill and the local bridge are on Codex's setup page. To use SPREVA in ChatGPT's chats on the web too, see posting from ChatGPT.
Questions
Can Codex post to Instagram?
Yes, through SPREVA: feed posts, carousels, Reels and Stories on a professional Instagram account. Instagram lets apps publish only to professional accounts, whatever the tool.
Can Codex post to TikTok and YouTube?
Yes. SPREVA publishes to TikTok, YouTube and 31 networks in all, each in its own format, and Codex can post to any account connected to your workspace.
Will Codex publish without asking me?
Not unless you let it. Publishing right away and spending AI credits ask you first unless you change it in SPREVA under Agents, then Policy. Scheduling at least an hour ahead goes ahead, unless you set that to ask too.
Which SPREVA plan do I need?
Every plan includes MCP, so Codex can draft, schedule, publish and report on any of them. Making videos needs Pro or Business. Every plan starts with a 7-day trial.
Keep reading
- Post to Instagram, TikTok and LinkedIn from ChatGPTConnect ChatGPT to SPREVA and ask it to write, schedule and publish posts on Instagram, TikTok, LinkedIn and 31 networks, make videos from your photos and read your results. What it can do, prompts to try and how to set it up.
- Manage your social media from Claude CodeAdd SPREVA to Claude Code with one command and let it schedule posts, make videos from your media and read results on Instagram, TikTok, LinkedIn and 31 networks, from the terminal, your editor or a script.
- How to let an AI agent manage your social media safelyLet Claude, ChatGPT or another AI agent draft, schedule and publish your social media without giving it your passwords: what it can see, what it must ask first, who can approve, and how to switch it off.