Installation
- npm
- pnpm
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:Authentication
One key and the CLI is talking to your account. Getting it takes a minute:- Open app.postqueen.ai
- Go to Settings > Developers > Public API
- Click Reveal and copy your key
Custom API URL (self-hosted)
If you run a self-hosted PostQueen instance, point the CLI at your backend URL, the same value asNEXT_PUBLIC_BACKEND_URL. The CLI appends /public/v1/... to whatever you set, and most single-domain setups serve the backend under /api:
Your first post
-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.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.