Working with her in the terminal
Claude Code is Anthropic’s agentic coding tool. It lives in your terminal, runs real commands and speaks the Model Context Protocol, which is everything she needs to join the session you already have open. You finish the feature, you say what you want the world to see, and the announcement is on your calendar before you have switched windows.Set up
Two routes lead to the same place. Her skill teaches Claude Code thepostqueen CLI, which is the one to pick when you want shell commands and JSON you can pipe into jq. MCP hands it her 11 hosted tools instead, with nothing installed locally. Running both is fine.
1
Install the CLI
2
Install her skill
SKILL.md, registered under the name postqueen and declaring Bash(postqueen:*) as the only tool it needs. Claude Code picks it up on its own when a task looks like posting work, so it arrives already knowing the discovery flow, the flags on posts:create and the rule about media.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 shell you launch Claude Code from: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
postqueen auth:status shows which credentials the CLI is using, though it does not contact
the server, so this same command is the real test.5
Or connect over MCP
Prefer tool calls to shell commands? It is one
claude mcp add line, and the scoping options,
the header variant and self-hosted URLs are all on
Claude Code over MCP.postqueen auth:login runs an OAuth2 device flow against a self-hosted auth server, and there is no hosted one at the moment. On the hosted service, the API key is the route to take.👑 A launch post with a screenshot
You just shipped dark mode and grabbed a screenshot of it. Ask in plain words:“Schedule a launch post about dark mode for tomorrow at 9am on X and LinkedIn, with screenshots/dark-mode.png attached.”It starts by finding your channels and their integration IDs:
-m takes a PostQueen URL rather than a local path. Media has to live on a PostQueen domain, and the API rejects the request otherwise. The tail -n +2 drops the command’s header line, which is not JSON:
-s flag is required and takes an ISO 8601 date, and -i takes the integration IDs from the first command. X requires who_can_reply_post, which LinkedIn ignores, so one call still covers both channels:
-t draft to the same command and the post lands on the calendar unscheduled, waiting until you publish it.
FAQ
Do I need Claude Code to use PostQueen?
Do I need Claude Code to use PostQueen?
No. She works on her own through the dashboard, the CLI and the public API. Claude Code is one of several ways to automate her, and the one to pick when your day already happens in a terminal.
Should I install the skill or connect over MCP?
Should I install the skill or connect over MCP?
Whichever fits the way you work. The skill plus the CLI gives you shell commands with JSON output you can pipe and script, which suits repo work and cron jobs. MCP gives Claude Code 11 tools with no local install, which suits a machine where you would rather not add a global npm package. The two coexist happily, so you can start with one and add the other later.
What can Claude Code actually do with her?
What can Claude Code actually do with her?
Everything the CLI can do. It lists your channels and reads what each one accepts, creates scheduled posts or drafts with media attached, and pulls analytics once they are live. Commands print a one-line header and then JSON, so the agent reads a field rather than guessing at wording on screen. Pipe through
tail -n +2 before jq.Can I review posts before they publish?
Can I review posts before they publish?
Yes. Ask for drafts and each post lands on the calendar unscheduled, waiting until you publish it there. Anything already scheduled is visible on the same calendar before it goes out, so you can still edit or delete it.
Does the integration cost extra?
Does the integration cost extra?
Learn more
CLI introduction
The
postqueen CLI that Claude Code drives, with installation and the full command set.Claude Code over MCP
Project config, the Authorization-header variant and self-hosted URLs.
Why agents love her
Why an agent can drive her without guesswork, and the two rules that matter most.
Agents overview
Every way to put an agent in front of PostQueen, from coding assistants to chat apps.