Working with her in the repo
Codex is OpenAI’s software engineering agent. It works inside a repo, runs real commands and checks its own results, which is exactly the shape her CLI was built for. Point Codex atpostqueen and shipping a release stops being two jobs: the code goes out and the launch posts land on the calendar in the same session.
Because Codex runs commands rather than clicking a dashboard, it fits the places a person does not want to be at 6 AM. A cron entry or a CI job can hold the same session, run the same commands and report back.
Set up
1
Install the CLI where Codex runs
Codex executes shell commands on the machine or container it lives in, so the CLI belongs there too:
2
Install the PostQueen skill
3
Export your API key
Your key lives in the app at app.postqueen.ai: open Settings > Developers > Public API and click Reveal. Export it in the environment Codex runs in:Self-hosting PostQueen? Point the CLI at your backend URL, the same value as
NEXT_PUBLIC_BACKEND_URL. Most single-domain setups serve the backend under /api:4
Verify the connection
auth:status confirms the credentials are valid.Prefer tool calls to shell commands? The Codex CLI speaks MCP natively, so you can register her hosted server in
~/.codex/config.toml and skip the local install. The Codex MCP page has both the URL form and the bearer-token form, which keeps your key out of the config file.👑 One campaign file, a whole launch
For a single post, flags are enough. For a launch where each network gets its own wording, write the campaign to a file and hand the file over:campaign.json
Required fields differ per network, and Create Post lists them for each one.
postqueen integrations:settings <integration-id> reports the same thing at runtime, which is what Codex should call before writing a campaign file for a channel it has not posted to yet.
In a pipeline
A campaign file is plain JSON and a CLI call is a plain command, so a release job can announce itself. Generate the file from your tag and changelog, then create the posts as a step:- Draft first. Set
"type": "draft"in the campaign file while you are getting a pipeline right. The posts appear on your calendar unscheduled, so a broken job costs you a click instead of a public apology. - Watch the budget. The create-post endpoint allows 30 requests per hour, and a campaign file counts as one request no matter how many networks it covers. Batch the launch into a single file rather than looping over channels.
Staying in control
She runs on your terms. Leave the schedule alone and she is a true autopilot: whatever a job puts on the calendar goes out on time without another word from you. Want a closer look first? Everything is visible at app.postqueen.ai before it publishes, so you can edit or delete it, and a campaign file with"type": "draft" saves each post unscheduled until you publish it there.
FAQ
Do I need Codex to use PostQueen?
Do I need Codex to use PostQueen?
No. She works on her own through the dashboard, the CLI and the API. Codex is one of several ways to automate her.
What can Codex actually do with PostQueen?
What can Codex actually do with PostQueen?
Everything the CLI can do. It can list your channels and read their settings, and it can upload media, schedule posts across your 30+ networks and pull analytics afterwards, with JSON output on every command.
Can I review posts before they publish?
Can I review posts before they publish?
Yes. Ask Codex for drafts, or set
"type": "draft" in the campaign file, and each post sits on the calendar unscheduled until you publish it.Does the integration cost extra?
Does the integration cost extra?
Flags or a campaign file?
Flags or a campaign file?
Flags for one post to one place. A campaign file once the wording differs per network, or once a script is generating the content, because a file is easier to diff and review than a long command.
Learn more
Codex MCP setup
Register her hosted server in
~/.codex/config.toml, with or without the key in the URLCLI introduction
The
postqueen CLI that Codex drives: installation, authentication and the full command setWhy agents love her
Why her command line reads well to something that parses flags and JSON
Create Post API
The request body a campaign file mirrors, with every provider’s settings schema