Schedule social media posts from Codex (CLI and the ChatGPT app)
Ask what performed best, turn it into a carousel, and schedule it from the terminal.
MCP access is included from Essentials up.
Krevaya is the review-first content workspace Codex drives through our hosted MCP server. Drafts wait for your approval; auto-publish is opt-in. Last updated October 2026.
How do I connect Krevaya to Codex?
Mint a key, paste one snippet, and ask. Codex discovers the Krevaya tools your key allows and calls them for you.
Mint a key in Settings → API keys
Pick the scopes Codex should have; a read-only key can look but never publish.
Add Krevaya to Codex
codex mcp add takes the key only through an environment variable, so it has to live in your shell profile.
Terminalecho 'export KREVAYA_API_KEY=krv_...' >> ~/.zshrc && source ~/.zshrc # bash: ~/.bashrc codex mcp add krevaya --url https://api.krevaya.com/mcp \ --bearer-token-env-var KREVAYA_API_KEYCodex finds the Krevaya tools
Filtered to the scopes you chose and your plan, plus four ready-made prompts: content_ops · weekly_review · repurpose_source · plan_week (two on Essentials, which has no Krevaya AI).
Ask in plain language
Drafts land in your review queue, and a connection with Publish can also approve and schedule posts. Scheduled posts publish on time, even after you close Codex.
Or: config.toml
~/.codex/config.toml. Use this form when you need a longer tool timeout; the add command cannot set one.
[mcp_servers.krevaya]
url = "https://api.krevaya.com/mcp"
http_headers = { "Authorization" = "Bearer krv_..." }
tool_timeout_sec = 600 # repurpose runs a real pipelineWhat can you ask Codex to do?
Good to know for Codex
- codex mcp add has no --header flag; it takes the key only as an environment variable name (--bearer-token-env-var).
- The add command cannot set a tool timeout, and Codex's default is shorter than a repurpose run. Set tool_timeout_sec = 600 in ~/.codex/config.toml.
- Codex rejects a literal bearer_token on HTTP servers; literal http_headers are fine, and so are bearer_token_env_var and env_http_headers.
- Codex has been part of the ChatGPT desktop app since July 2026: there, Settings → MCP servers → Add server → Streamable HTTP, then Restart. The IDE extension's gear menu has the same screen. All three share ~/.codex/config.toml.
- Krevaya hosts the MCP server, so there is nothing to install or run. How the Krevaya MCP server works
Codex or OpenAI Agents SDK?
Both connect to the same server and see the same tools. The difference is where you work.
| Codex | OpenAI Agents SDK | |
|---|---|---|
| What it is | OpenAI's coding agent, in your terminal and the ChatGPT app | A library for building your own agent in Python or TypeScript |
| How it connects | codex mcp add with the key in an environment variable | MCPServerStreamableHttp in your code |
| Best for | Asking in your own words, interactively | Scheduled or unattended runs you control |
Questions about Codex and Krevaya
How does Krevaya work with Codex?
Krevaya hosts a remote MCP server. Add it to Codex with the snippet on this page and Codex gets Krevaya's tools: list and triage drafts, create posts, draft a week, design and edit video templates, schedule, and read results. Everything runs through the same review-first pipeline as the dashboard.
How do I connect Krevaya to Codex?
Mint a key in Settings → API keys, choose its scopes, then run the command above in your terminal. There is nothing to install on Krevaya's side; the server is hosted.
Do I need a paid plan?
MCP access is included on every paid Krevaya plan, starting with Essentials ($19 per month), with the same usage allowances as the rest of your account. On Essentials, Codex writes the copy itself; the tools that generate with Krevaya AI need Plus or higher. Codex's own requirements are set by OpenAI, not by Krevaya.
Can Codex post while I'm away?
Only what is approved, by you or by a connection you gave the Publish permission. Without Publish, Codex can only draft, and drafts wait in your review queue; with it, Codex can approve and schedule posts itself. Approved and scheduled posts publish at their time whether or not Codex is open. Auto-publish is opt-in per brand, and you can turn it back off any time. Pinterest, TikTok, Tumblr and YouTube are the exception: no connection can approve those, you approve each one in Krevaya.
Is it safe? Does Codex need my social media passwords?
No. Codex talks to Krevaya with a scoped API key, and Krevaya publishes through each platform's official API with tokens encrypted at rest. A read-only connection cannot publish at all. Revoke it in one click under Settings → API keys and the connection is gone.
Which platforms can Codex post to?
Any channel connected to your Krevaya workspace: Facebook, Instagram, Threads, LinkedIn, Bluesky, X, Mastodon, Tumblr, TikTok, YouTube, Pinterest, Telegram, LINE, Microsoft Teams, Mattermost, Google Chat, Lemmy, Discourse, Circle, WordPress, Ghost, Dev.to, Hashnode, Beehiiv, Buttondown, Kit, Listmonk, Pixelfed and Dribbble. Available formats depend on the channel and your connected account. Reddit is in platform review and open to preview accounts only. Discord, Slack, Whop and Vimeo are coming soon and cannot be connected yet.
Codex doesn't show the Krevaya tools. What should I check?
Three things: the key is sent as an Authorization: Bearer header, the URL is exactly https://api.krevaya.com/mcp, and the key's scopes cover what you are asking for, because tools are filtered per key. For Codex specifically: codex mcp add has no --header flag; it takes the key only as an environment variable name (--bearer-token-env-var).
Is it free to start?
MCP access starts with Essentials. Eligible accounts can try a plan for 7 days at $0 with a card required. Sign-up is open.
Connect Codex to your Krevaya workspace
MCP access is included from the Essentials plan up. Create your account and choose your plan.
Try a plan for 7 days. Card required.