OpenAI Codex Integration

PostQuickAI for OpenAI Codex CLI

Codex + PostQuickAI = autonomous social media from your terminal. MCP server + 6 skills + AGENTS.md — all three open standards, all working together.

Requires Codex CLI and the PostQuickAI API add-on.

1. MCP server — the CLI way (recommended)

codex mcp add postquickai -- npx -y @postquickai/mcp

The -- separator is required — everything after it is the command and its args.

Then edit ~/.codex/config.toml to add your API key env var:

[mcp_servers.postquickai]
command = "npx"
args = ["-y", "@postquickai/mcp"]
env = { POSTQUICKAI_API_KEY = "pq_live_your_key_here" }

Prefer a project-scoped config? Put it in .codex/config.toml in your repo root (trusted projects only).

2. Skills bundle (optional, recommended)

Add opinionated workflows for common social media tasks:

# Plugin install (recommended)
codex plugin install postquickai/agent-skills

# Or manual
git clone https://github.com/kodenark/postquickai-agent-skills
cp -r postquickai-agent-skills/skills ~/.codex/skills/

Catalog of skills: postquick.ai/agent-skills.

3. AGENTS.md in your project

Codex treats AGENTS.md as its primary project-level config. Paste our snippet from /agents-md and any Codex session in that project understands when and how to use the PostQuickAI MCP tools.

4. Try it

In a Codex session:

"Show my PostQuickAI content groups"
"Plan this week's content for my Pro brand — 7 posts spread across Monday-Friday"
"Pull the last 30 days of analytics and summarize top performers"
"Create a thread about our Series A for twitter, threads, bluesky — schedule for tomorrow 10am ET"
"Reset and retry all posts that failed yesterday"

API + Agent access

MCP server, Skills, and REST API are all included with the API add-on on any paid plan.

FAQ

Frequently Asked Questions

Easiest: `codex mcp add postquickai -- npx -y @postquickai/mcp` then edit ~/.codex/config.toml to add the POSTQUICKAI_API_KEY env var. Or add the whole [mcp_servers.postquickai] block to config.toml directly.

Global: ~/.codex/config.toml. Project-scoped (trusted projects only): .codex/config.toml in your repo root. MCP servers are defined in [mcp_servers.<name>] tables.

Yes. Codex loads SKILL.md files from ~/.codex/skills/ (user-level) and .agents/skills/ (project-level). Run `codex plugin install postquickai/agent-skills` or clone github.com/kodenark/postquickai-agent-skills and copy the skills/ folder.

Yes — Codex treats AGENTS.md as its primary project-config file. Paste our snippet from /agents-md and Codex automatically understands how to use PostQuickAI in that project.

MCP tools are the low-level primitives (createPost, publishPost, getAnalytics). Skills are opinionated workflows that chain those tools (weekly-content-batch, analyze-post-performance). Install MCP first — Skills depend on it.

Yes. Use `codex exec "..."` with the MCP config loaded. Set POSTQUICKAI_API_KEY in the CI environment. Useful for nightly analytics digests, failed-post retry automations, etc.

Troubleshooting

"Failed to connect to postquickai"

Almost always a config format issue. Make sure command is just npx and args is an array — never put the whole command in one string. Also fully quit and restart your agent after editing config.

"API add-on required" / 403 errors

MCP and REST API access both require the API add-on on your plan. Enable it at postquick.ai/pricing.

"Missing POSTQUICKAI_API_KEY"

Generate a key at postquick.ai/dashboard/api. Keys start with pq_live_. Put it in the env block of your MCP config.

Rate limit exceeded

Basic plan: 30 req/min, 5k/day. Pro plan: 120 req/min, 50k/day. See rate limits in the API docs.

Codex-specific issues

Still stuck? See the developer docs or email support@postquick.ai.

Also works with

PostQuickAI is agent-native — same API, same MCP server, same skills bundle across every major AI coding agent.

Ship faster with Codex + PostQuickAI

One CLI command and you're set. Use Codex for code, use it for social too.

Start free trial