Skip to content

Introduction to OpenQuok CLI

An CLI-first tool for AI agents. Give your agents the OpenQuok CLI to schedule posts, manage integrations, and upload media from the terminal.

3 min read

Connect your agent today

Draft from chat, review in your calendar, and publish only what you approve.

Start for $0

Overview

@openquok/auto-cli is the programmatic CLI for the OpenQuok scheduling API — built for automation and AI agents. It wraps the public API so you can schedule posts, manage integrations, and upload media from shell scripts.

CLI documentation

Install and authenticate first, then use command reference, platform recipes, agent host setup, and sibling skills.

Installation

Requires Node.js 20.19+ (or 22.12+, or 23+). Older versions may install with warnings or fail at runtime.

Verify the install:

openquok --help

Authentication

Use OAuth2 device flow, so you never embed client secrets in the CLI, or set a programmatic access token (opo_) for CI and scripts. Full variable reference and self-hosted auth options are on CLI authentication.

Option 1: OAuth2 (Suggested)

OAuth2 (device flow) — this will automatically open a browser with a one-time code and approval screen to authorize, then it stores credentials at ~/.openquok/credentials.json as default:

openquok auth:login

Check or clear stored credentials:

# Check current auth status
openquok auth:status

# Remove the stored credentials
openquok auth:logout

Option 2: Programmatic token

Set a workspace programmatic token as an environment variable — see Programmatic token on the authentication page (rotate from DevelopersAccess in the dashboard).

export OPENQUOK_API_KEY="opo_..."

Custom API URL (self-hosted)

If you’re running your own self-hosted openquok backend, point the CLI to your server:

export OPENQUOK_API_URL="https://api.yourserver.com"

Quick start

List your connected social media channels or accounts:

openquok integrations:list

Create a scheduled post (adjust IDs and timestamps):

openquok posts:create 
  -s "2026-01-01T12:00:00Z" 
  -c "Hello from OpenQuok" 
  -i "<integration-id-1>,<integration-id-2>"

Create an agent draft with a review todo (shown on the account kanban for humans):

openquok posts:create 
  -c "Draft for human review" 
  -s "2026-01-01T12:00:00Z" 
  -t draft 
  -i "<integration-id>" 
  --note "Verify links and hashtags before scheduling"

Upload media (use returned data.id + data.filePath in posts:create; videos over ~4 MB use direct-to-storage automatically):

openquok upload ./image.png
openquok upload ./clip.mp4

List your scheduled posts (defaults to ±30 local calendar days from today when you omit dates):

openquok posts:list

Commands (overview)

Auth

openquok auth:login
openquok auth:status
openquok auth:logout

Integrations

openquok integrations:list
openquok integrations:settings <id>
openquok integrations:trigger <id> <method> [-d '<json>']

Posts

openquok posts:create -c "…" -s "2026-01-01T12:00:00Z" -t draft -i "<integration-id>" --note "Human checklist"
openquok posts:review-todo <post-id> --note "Updated checklist"
openquok posts:list
openquok posts:list --start "2026-01-01T00:00:00Z" --end "2026-02-01T00:00:00Z"
openquok posts:status <post-id> -s draft
openquok posts:delete <post-id>

Explore More

Other CLI sections plus the public API and self-hosted auth server.

Search documentation
Find a docs page
Discord Support