Skip to main content

Post Publishing

Create, schedule, publish, retry, AI-rewrite, and AI-score posts across X, LinkedIn, YouTube, Instagram, and Threads.

Brand & Agent Management

Manage brands, platform connections, and AI-powered autonomous posting agents.

AI Content Generation

Generate ideas, create carousels, clip videos, and search knowledge bases with AI.

Built-in MCP Server

Run ap mcp to expose 55 tools to Claude Desktop, Cursor, or any AI agent.

Install

npm install -g @autoposting.ai/cli
Both autoposting and ap (short alias) are available after install.

Quick Start

# Authenticate
export AUTOPOSTING_API_KEY=sk-social-your-key

# Create and publish a post
ap posts create --brand my-brand --text "Hello world!" --platforms x,linkedin
ap posts publish <post-id>

# Set a default brand, then omit --brand everywhere
ap config set-context --brand my-brand
ap posts create --text "Launch day!" --platforms x,linkedin \
  --media ./hero.png --at 2026-07-01T09:00:00Z --account x=@myhandle

# Run an AI agent
ap agents run <agent-id>

# Generate content ideas
ap ideas generate --topic "AI trends" --count 5

# Health check
ap doctor

Command Domains

DomainCommandsDescription
Posts10Create (media, threads, per-account, scheduled, bulk), publish, schedule/unschedule, retry, AI-rewrite, AI-score
Brands9CRUD, platform auth status, default-account defaults
Agents8Create, run, toggle, view run history
Knowledge Base7Create, search, ingest URLs, list docs
Clips6Upload, import, render, manage video clips
Carousels6Create, AI-generate, convert to post draft
Webhooks6Create, test, manage event hooks
Auth5Device-code/browser login, profiles, switch, status
Ideas4AI-generate, enrich, manage ideas
Config3Default brand context (set/get/unset)
Billing2Plan status, credit balance
Workspaces2List, switch workspace
Usage1Publishing statistics
Utility6doctor, whoami, open, update, completion, mcp

Output Modes

ModeWhenFormat
InteractiveTTY terminalTables, spinners, colors
JSON--json or pipedClean JSON for parsing
Quiet--quietErrors only, no spinners

Global Flags

FlagDescription
--api-key <key>Override API key
--jsonJSON output
--quietSuppress non-essential output
--format <type>auto (default — table on a terminal, JSON when piped), table, or json
--jq <expr>Filter JSON output with a minimal jq expression (e.g. .[].id)
--no-colorDisable colors

Installation

Install, configure, and verify the CLI.

Commands

Full command reference with flags and examples.

MCP Server

Let AI assistants manage social media for you.

TypeScript SDK

Programmatic API access in Node.js.