Skip to main content
The PostQueen CLI puts her one command away in your terminal. Schedule a post to 30+ networks, upload the image that goes with it or pull last week’s numbers, from a shell script, a CI job or an AI agent. Underneath it is the same Public API the SDK and the n8n node run on. The data commands print JSON, so anything that can run a shell command can run your social media.
Claude Code schedules two launch posts to X and LinkedIn with the postqueen CLI

Installation

Verify the installation:

Give your AI agent the skill

If an AI assistant will be driving the CLI for you, install the PostQueen skill first. It hands the agent her full command set and the patterns behind it, so it gets the flags right the first time instead of guessing at them:
Prefer to wire it up by hand? Load the SKILL.md file directly from github.com/GkhanKINAY/postqueen-agent.

Authentication

One key and the CLI is talking to your account. Getting it takes a minute:
  1. Open app.postqueen.ai
  2. Go to Settings > Developers > Public API
  3. Click Reveal and copy your key
Then export it:
Add this to your shell profile (~/.bashrc, ~/.zshrc, etc.) so it persists across sessions.
Keep the key secret: it grants full access to your account, and you can revoke or rotate it any time from the same screen.

Custom API URL (self-hosted)

If you run a self-hosted PostQueen instance, point the CLI at your backend URL, the same value as NEXT_PUBLIC_BACKEND_URL. The CLI appends /public/v1/... to whatever you set, and most single-domain setups serve the backend under /api:
Running your own auth server? There is an OAuth2 device flow for that instead, and every command works the same either way. Setup guide: Authentication.

Your first post

Repeat -c to turn a post into a thread; each extra -c becomes a reply or comment on the platforms that support it. The -d flag sets the delay between those comments in minutes (default: 0):

What she can do from a shell

Full flag-by-flag details: Command Reference.
The data commands print a one-line header and then JSON, which makes the CLI easy to use in scripts and automation pipelines. Drop the header with tail -n +2 before piping into jq.
Anything you can type here, an agent can run for you at six in the morning while you sleep. Why she works so well with agents: Why agents love her.

Next steps

Get your key in place

Where the key lives, and the self-hosted URL shape that trips people up.

Schedule a post

Channels, threads and drafts, in one command.

Every flag

The full reference, including which commands print plain text.

What it cannot do

Thirteen of the API’s twenty-two endpoints, and where the other nine live.