---
title: "Codex Social Media Scheduling"
description: "Add PostQueen to Codex with one command, codex mcp add, and plan a week of posts for 30+ networks from the Codex CLI, your IDE or the desktop app."
canonical_url: "https://postqueen.ai/codex"
markdown_url: "https://postqueen.ai/codex.md"
last_updated: "2026-09-25"
llms_txt: "https://postqueen.ai/llms.txt"
---

# Run your social media from Codex.

Codex + PostQueen

- Add PostQueen with one command
- Plan a week of posts without leaving your editor
- Runs in the Codex CLI, your IDE or the desktop app

[Start 7-day trial for $0](https://app.postqueen.ai/auth?utm_source=postqueen.ai&utm_medium=landing&utm_campaign=trial&utm_content=agent-hero) [See the setup prompt](https://postqueen.ai/codex#setup)

Every post waits on your calendar first. Checked on September 25, 2026.

Setup

## Connect Codex in about a minute.

1 Connect about a minute

### Run this in your terminal

One command adds PostQueen’s tools to Codex.

terminal

```
codex mcp add postqueen \
  --url https://api.postqueen.ai/mcp/YOUR_API_KEY
```

Run codex mcp list, or /mcp inside Codex, to check it.

Once connected

- Write and schedule posts on 30+ networks
- Make AI images and video for them
- See how your posts did over 7, 30 or 90 days

2 Ask live in PostQueen

### Ask Codex to post for you

Once connected, Codex calls PostQueen’s tools. Posts go out at the time you set, even after you close the chat.

Also try

- List my PostQueen channels
- What is scheduled this week?
- How did last month’s posts do?

1. In PostQueen, open Connections, then API Keys, and copy your key. Only workspace admins can see it.
2. Run the command from the box.
3. Run `codex mcp list` (or `/mcp` inside Codex) to check it. In the IDE extension: gear menu > MCP servers > Add server > Streamable HTTP, paste the URL, save and choose Restart extension. In the ChatGPT desktop app: Settings > MCP servers > Add server, then Restart.

### Good to know

- Prefer MCP over the PostQueen CLI in Codex: the default workspace-write sandbox has network access off, so every CLI call asks for approval and unattended runs fail.
- To keep the key out of the file: `codex mcp add postqueen --url https://api.postqueen.ai/mcp --bearer-token-env-var POSTQUEEN_API_KEY`.
- Prefer to sign in? Use `https://api.postqueen.ai/mcp-oauth-dynamic` as the URL. Codex opens the PostQueen sign-in, which a workspace admin approves.

## One message, every channel. Your calendar first.

Codex writes the posts. PostQueen puts each one on your calendar, where you can change anything, and publishes it at its time on every network you connected.

### You ask

Codex

Write five TikTok hooks for our app and turn the best two into slideshows for this week

### It lands on your calendar

### It goes out everywhere

- [Instagram](https://postqueen.ai/channels/instagram)
- [TikTok](https://postqueen.ai/channels/tiktok)
- [YouTube](https://postqueen.ai/channels/youtube)
- [X](https://postqueen.ai/channels/x)
- [LinkedIn](https://postqueen.ai/channels/linkedin)
- [Facebook](https://postqueen.ai/channels/facebook)
- [Threads](https://postqueen.ai/channels/threads)
- [Pinterest](https://postqueen.ai/channels/pinterest)
- [Reddit](https://postqueen.ai/channels/reddit)
- [Bluesky](https://postqueen.ai/channels/bluesky)
- [Discord](https://postqueen.ai/channels/discord)
- [Slack](https://postqueen.ai/channels/slack)

And 19 more, including Mastodon, Telegram, WordPress and Google Business.

- [Mastodon](https://postqueen.ai/channels/mastodon)
- [Telegram](https://postqueen.ai/channels/telegram)
- [WordPress](https://postqueen.ai/channels/wordpress)
- [Google Business Profile](https://postqueen.ai/channels/google-business)
- [Dribbble](https://postqueen.ai/channels/dribbble)
- [Tumblr](https://postqueen.ai/channels/tumblr)
- [Twitch](https://postqueen.ai/channels/twitch)
- [Kick](https://postqueen.ai/channels/kick)
- [DEV (dev.to)](https://postqueen.ai/channels/devto)
- [Hashnode](https://postqueen.ai/channels/hashnode)
- [VK](https://postqueen.ai/channels/vk)
- [MeWe](https://postqueen.ai/channels/mewe)
- [Lemmy](https://postqueen.ai/channels/lemmy)
- [Nostr](https://postqueen.ai/channels/nostr)
- [Farcaster](https://postqueen.ai/channels/farcaster)
- [Listmonk](https://postqueen.ai/channels/listmonk)
- [Whop](https://postqueen.ai/channels/whop)
- [Skool](https://postqueen.ai/channels/skool)
- [Moltbook](https://postqueen.ai/channels/moltbook)

[See all 30+ networks](https://postqueen.ai/channels)

Ideas by who you are

## What can you ask Codex to post?

A single post, a thread, a week of content or a post with a generated image. Ask the way you would ask a teammate.

**Creators**

Cross-post ![X](https://postqueen.ai/assets/channels/x.svg) ![Threads](https://postqueen.ai/assets/channels/threads.svg) ![LinkedIn](https://postqueen.ai/assets/channels/linkedin.svg)

### One idea, three networks

“Turn this idea into an X thread, a Threads post and a LinkedIn post, each written for its network, for tomorrow at 9am as drafts: [idea]”

Carousel ![Instagram](https://postqueen.ai/assets/channels/instagram.svg)

### An Instagram carousel

“Make five square images for an Instagram carousel about [topic], one tip per slide, and save it as a draft for Friday at 6pm.”

Analytics ![Instagram](https://postqueen.ai/assets/channels/instagram.svg) ![TikTok](https://postqueen.ai/assets/channels/tiktok.svg) ![X](https://postqueen.ai/assets/channels/x.svg)

### More of what worked

“Which of my posts from the last 30 days got the most engagement? Draft three more in the same style for next week.”

**Business owners**

Content calendar ![Instagram](https://postqueen.ai/assets/channels/instagram.svg) ![Facebook](https://postqueen.ai/assets/channels/facebook.svg)

### Plan the whole week

“Plan next week for [business] in [city]: one Instagram and Facebook post a day at 11am about [this week’s special], each with a realistic image, all as drafts.”

Announcement ![Google Business Profile](https://postqueen.ai/assets/channels/google-business.svg) ![Facebook](https://postqueen.ai/assets/channels/facebook.svg)

### Closed for a day

“We are closed on [date]. Make a simple image that says so and draft a Google Business update and a Facebook post for [date] at 9am.”

Weekly special ![Instagram](https://postqueen.ai/assets/channels/instagram.svg) ![Facebook](https://postqueen.ai/assets/channels/facebook.svg)

### This week’s special

“Draft this week’s special for Instagram and Facebook from my notes, with an image, and save it for Monday at 8am: [notes]”

**App developers**

Slideshow ![TikTok](https://postqueen.ai/assets/channels/tiktok.svg) ![Instagram](https://postqueen.ai/assets/channels/instagram.svg)

### A TikTok slideshow

“Make a six-slide TikTok slideshow about [feature] of [app], with a hook on the first slide, and save it for TikTok and Instagram on [day] at 6pm as drafts.”

Video ![TikTok](https://postqueen.ai/assets/channels/tiktok.svg) ![Instagram](https://postqueen.ai/assets/channels/instagram.svg) ![YouTube](https://postqueen.ai/assets/channels/youtube.svg)

### A narrated slideshow

“Make a narrated vertical slideshow that explains [feature] in four slides and draft it for TikTok, Instagram and YouTube on Friday at 6pm.”

Analytics ![TikTok](https://postqueen.ai/assets/channels/tiktok.svg)

### Learn from your best videos

“Rank my TikTok posts from the last 30 days by impressions and draft five new slideshows that open the same way.”

**Agencies**

Client plan ![Instagram](https://postqueen.ai/assets/channels/instagram.svg) ![Facebook](https://postqueen.ai/assets/channels/facebook.svg)

### A week for one client

“For [client], plan next week: three Instagram posts with images and two Facebook posts about [topics]. Use only [client]’s channels and save them as drafts.”

Overview ![Instagram](https://postqueen.ai/assets/channels/instagram.svg) ![LinkedIn](https://postqueen.ai/assets/channels/linkedin.svg) ![X](https://postqueen.ai/assets/channels/x.svg)

### Who needs more posts?

“List what is scheduled next week for each client and tell me which one has fewer than three posts.”

Report ![Instagram](https://postqueen.ai/assets/channels/instagram.svg) ![Facebook](https://postqueen.ai/assets/channels/facebook.svg) ![LinkedIn](https://postqueen.ai/assets/channels/linkedin.svg)

### A 30-day client summary

“For [client], sum up the last 30 days on each channel: posts sent, reactions, impressions and the three best posts, as a note I can send.”

**Founders**

Demo video ![TikTok](https://postqueen.ai/assets/channels/tiktok.svg) ![Instagram](https://postqueen.ai/assets/channels/instagram.svg) ![YouTube](https://postqueen.ai/assets/channels/youtube.svg)

### A demo video

“Make an 8-second video that shows [product] doing [one job], and draft it for TikTok, Reels and Shorts on [day] at [time].”

Launch ![X](https://postqueen.ai/assets/channels/x.svg) ![LinkedIn](https://postqueen.ai/assets/channels/linkedin.svg) ![Bluesky](https://postqueen.ai/assets/channels/bluesky.svg) ![Threads](https://postqueen.ai/assets/channels/threads.svg)

### Launch day, every network

“We launch on [date] at [time UTC]. Draft posts for X, LinkedIn, Bluesky and Threads for that time, and a thank-you post a day later.”

Visual post ![LinkedIn](https://postqueen.ai/assets/channels/linkedin.svg) ![X](https://postqueen.ai/assets/channels/x.svg)

### Explain it in one image

“Make a minimalist image that shows how [product] works in one scene, and use it in a LinkedIn and an X post for Tuesday at 9am.”

**Bloggers**

New article ![X](https://postqueen.ai/assets/channels/x.svg) ![Bluesky](https://postqueen.ai/assets/channels/bluesky.svg) ![Threads](https://postqueen.ai/assets/channels/threads.svg) ![LinkedIn](https://postqueen.ai/assets/channels/linkedin.svg)

### Share today’s article

“I just published [article URL]. Here is the opening: [paste]. Write a post for X, Bluesky, Threads and LinkedIn that links to it, for tomorrow at 9am, as drafts.”

Thread ![X](https://postqueen.ai/assets/channels/x.svg)

### An article as a thread

“Turn this article into a 5-part X thread with the link in the last part, for Wednesday at 8am: [paste article]”

Header image ![LinkedIn](https://postqueen.ai/assets/channels/linkedin.svg)

### A header image and a post

“Make a header image for my post about [topic] and draft a LinkedIn post with it for Monday at 10am.”

[More ideas in the prompt library](https://postqueen.ai/prompts)

Compare

## How Codex compares to other AI agents.

Every agent here connects to the same PostQueen account and gets the same tools. What changes is how you connect it and where it runs. Pick a row to open that agent’s setup.

How each AI agent connects to PostQueen, where it runs, how it signs in, and whether it has an upload panel and AI images and video

| Agent | How you connect | Where it runs | Sign-in | Uploads | Images, video |
| --- | --- | --- | --- | --- | --- |
| [Grok Bot](https://postqueen.ai/grok-bot) NEW | Ask the Bot in chat to connect PostQueen, then paste your key in its secure card. Marketplace plugin soon | Grok Bot desktop app and mobile, running in the cloud | Key | Upload panel No | Yes |
| [Muse](https://postqueen.ai/muse) NEW | Ask Muse in chat to build a custom connector, then paste your key in its secure prompt | Muse app (iOS, Android), muse.ai and WhatsApp, in the US | Key | Upload panel No | Yes |
| [OpenClaw](https://postqueen.ai/openclaw) | PostQueen skill and CLI on your gateway, or MCP with a header | Your OpenClaw gateway, chatting from WhatsApp, Telegram, Slack and more | Key or sign-in | Upload panel No | Yes |
| [Hermes Agent](https://postqueen.ai/hermes-agent) | One mcp_servers entry in ~/.hermes/config.yaml | Your computer, a server or Hermes Cloud, chatting from Telegram, Discord and more | Key or sign-in | Upload panel No | Yes |
| [Claude](https://postqueen.ai/claude) | Custom connector under Customize > Connectors | claude.ai, Claude Desktop, iOS and Android | Sign-in or key | Upload panel Yes | Yes |
| [ChatGPT](https://postqueen.ai/chatgpt) | Developer mode app at chatgpt.com/plugins | ChatGPT on the web | Sign-in or key | Upload panel Yes | Yes |
| [Claude Cowork](https://postqueen.ai/claude-cowork) | The same custom connector as Claude, on in a Cowork task | Claude Desktop | Sign-in or key | Upload panel Yes | Yes |
| [Grok](https://postqueen.ai/grok) | Custom connector at grok.com/connectors | grok.com and the Grok iOS and Android apps | Key | Upload panel No | Yes |
| [Perplexity Computer](https://postqueen.ai/perplexity-computer) | Custom remote connector in Perplexity settings | Web, iOS, Android, Comet, Slack and email | Key | Upload panel No | Yes |
| [NanoClaw](https://postqueen.ai/nanoclaw) | Three commands: key in the OneCLI vault, server in your agent group | Your Mac or Linux machine with Docker, chatting from WhatsApp, Telegram and more | Key | Upload panel No | Yes |
| [Claude Code](https://postqueen.ai/claude-code) | One command: claude mcp add | Terminal on macOS, Linux and Windows, plus IDEs | Key or sign-in | Upload panel No | Yes |
| Codex | One command: codex mcp add | Codex CLI, IDE extension and desktop app | Key or sign-in | Upload panel No | Yes |
| [Cursor](https://postqueen.ai/cursor) | One entry in mcp.json | Cursor on macOS, Windows and Linux, and the Cursor CLI | Key or sign-in | Upload panel No | Yes |
| [Gemini CLI](https://postqueen.ai/gemini-cli) | One command: gemini mcp add | Terminal on macOS, Windows and Linux | Key | Upload panel No | Yes |
| [Grok Build](https://postqueen.ai/grok-build) | One command: grok mcp add | Terminal on macOS, Linux and Windows | Key or sign-in | Upload panel No | Yes |
| [Paperclip](https://postqueen.ai/paperclip) | Apps > Connect your own MCP server | Your own server, for its Claude Code and Codex agents | Key or sign-in | Upload panel No | Yes |
| Other MCP apps | VS Code, Devin Desktop, Zed, Muse Code and more: one entry with the MCP address | Your editor or terminal | Key or sign-in | Upload panel No | Yes |

Sign-in means PostQueen’s sign-in page approves the agent, and an API key goes in the address or a header. The upload panel lets you add files from your device in the chat. Every agent can make AI images and video through PostQueen.

Ways to connect

## Pick how Codex signs in.

Ways to connect Codex to PostQueen

| Route | How it signs in | API key needed | Best for |
| --- | --- | --- | --- |
| Key in the address https://api.postqueen.ai/mcp/YOUR_API_KEY | The key is part of the address. | Yes | The quickest setup |
| Token from your environment https://api.postqueen.ai/mcp | `--bearer-token-env-var POSTQUEEN_API_KEY` reads the key when Codex starts. | Yes | Keeping the key out of config.toml |
| Sign-in https://api.postqueen.ai/mcp-oauth-dynamic | Codex opens the PostQueen sign-in, which a workspace admin approves. | No | Not copying or storing a key |

The sign-in address has 20 tools and the key address 21. Only workspace admins can approve a sign-in or see the key.

Run it on a schedule

## Run Codex on a schedule.

Run `codex exec` from cron or CI. It reads the same `config.toml`, so the PostQueen tools come along.

[Official docs](https://learn.chatgpt.com/docs/non-interactive-mode)

Example

```
codex exec "Save three post ideas for our app as PostQueen drafts"
```

Scheduled runs act without you, so ask for drafts first and check them on your calendar.

[Official docs](https://learn.chatgpt.com/docs/non-interactive-mode)

If it does not work

## If it does not work.

### Every PostQueen CLI call asks for approval

The default sandbox has network access off. Use the MCP server instead of the CLI.

### The IDE extension does not see PostQueen

Choose Restart extension after you add the server.

### ChatGPT on the web does not see it

It does not read Codex’s config. Add PostQueen to ChatGPT on its own.

### The key is rejected

Copy it again from Connections > API Keys. Only workspace admins see it.

Similar names

## Is it the same as ChatGPT?

No. Each one is its own product with its own setup.

### Codex

This page

Codex is OpenAI’s coding agent, available as a CLI, an IDE extension, in the ChatGPT desktop app and in the cloud.

### ChatGPT

[Open the guide](https://postqueen.ai/chatgpt)

ChatGPT is OpenAI’s AI assistant. You add PostQueen as a developer mode app from the Plugins page on the web.

## Codex questions, answered.

Anything else? Write to [support@postqueen.ai](mailto:support@postqueen.ai) and a person answers.

### Which plans include Codex?

Every ChatGPT plan includes Codex: Free and Go (in the desktop app, as it rolls out), Plus, Pro, Business, Enterprise and Edu. Weekly limits may apply. On the PostQueen side, every plan includes MCP.

### Where does it work?

CLI, IDE extension and ChatGPT desktop app (these three share one config), plus Codex on the web

### Anything to watch out for?

Prefer MCP over the PostQueen CLI in Codex: the default workspace-write sandbox has network access off, so every CLI call asks for approval and unattended runs fail.

### Can Codex post without me seeing it first?

Only if you ask it to schedule. Ask for drafts and they wait on your PostQueen calendar until you schedule them. Either way every post lands on the calendar first, where you can edit or delete it until it goes out.

### Does it cost extra?

No. Connecting an agent is included in every plan and posts are unlimited. After the 7-day trial, Pro is $49 a month, or $33 a month billed yearly.

Your agent, your channels

### Hand your socials to Codex.

Get your time back. Every post still lands on your calendar first.

[Start 7-day trial for $0](https://app.postqueen.ai/auth?utm_source=postqueen.ai&utm_medium=landing&utm_campaign=trial&utm_content=agent-band) $0 due today. Cancel in one click.

## Guides for other agents

### Assistants and bots

- [Grok Bot NEW](https://postqueen.ai/grok-bot)
- [Muse NEW](https://postqueen.ai/muse)
- [OpenClaw](https://postqueen.ai/openclaw)
- [Hermes Agent](https://postqueen.ai/hermes-agent)
- [Claude](https://postqueen.ai/claude)
- [ChatGPT](https://postqueen.ai/chatgpt)
- [Claude Cowork](https://postqueen.ai/claude-cowork)
- [Grok](https://postqueen.ai/grok)
- [Perplexity Computer](https://postqueen.ai/perplexity-computer)
- [NanoClaw](https://postqueen.ai/nanoclaw)

### Coding agents

- [Claude Code](https://postqueen.ai/claude-code)
- [Cursor](https://postqueen.ai/cursor)
- [Gemini CLI](https://postqueen.ai/gemini-cli)
- [Grok Build](https://postqueen.ai/grok-build)
- [Paperclip](https://postqueen.ai/paperclip)

[Using another agent? It works the same](https://postqueen.ai/mcp#clients)

### Related guides

- [MCP Server](https://postqueen.ai/mcp)
- [CLI](https://postqueen.ai/cli)
- [Pricing](https://postqueen.ai/pricing)
