Create AI-powered UGC videos for your social media with Agent Media β generate engaging video content and schedule it directly with Postiz. Perfect for OpenClaw π¦
Installation
- npm
- pnpm
Authentication
Option 1: OAuth2 (Recommended)
Authenticate using the device flow β no client ID or secret needed:- Display a one-time code in your terminal
- Open your browser to authorize
- Automatically save credentials to
~/.postiz/credentials.json
Option 2: API Key
Set your Postiz API key as an environment variable. You can get your API key from the Postiz Settings page.OAuth2 credentials take priority over the API key when both are present.
Custom API URL (self-hosted)
If youβre running a self-hosted Postiz instance, point the CLI to your server:Self-Hosting the Auth Server
By default,postiz auth:login uses the hosted auth server at cli-auth.postiz.com. If you want to self-host the OAuth2 device flow server, see the Authentication page for the full setup guide.
Quick Start
Commands Overview
| Command | Description |
|---|---|
auth:login | Authenticate via OAuth2 device flow |
auth:status | Check current authentication status |
auth:logout | Remove stored credentials |
integrations:list | List all connected social media accounts |
integrations:settings | Get the settings schema for an integration |
integrations:trigger | Trigger a dynamic tool on an integration |
posts:create | Create a new post |
posts:list | List posts with optional date filtering |
posts:delete | Delete a post by ID |
posts:missing | List available content from provider for a post with missing release ID |
posts:connect | Connect a post to its published content by release ID |
analytics:platform | Get analytics for an integration/channel |
analytics:post | Get analytics for a specific post |
upload | Upload a media file |
All commands output JSON, making the CLI easy to use in scripts and automation pipelines.

