doodle top mobile

Social Media CLI for Hermes Agent

Automate social media posting across 30+ platforms. Built for Hermes Agent to schedule, publish, and manage your social media presence through its tool execution framework.

View DocsGitHub

Please make sure there is always a human in the loop.

doodle left mobiledoodle right mobile

Get Started in Seconds

Terminal

# Install the skill
npx skills add gitroomhq/postiz-agent

# Set your API key
export POSTIZ_API_KEY=your_api_key

# List your connected platforms
postiz integrations:list

# Create your first post
postiz posts:create \
  -c "Hello from Postiz Agent!" \
  -s "2025-01-01T12:00:00Z" \
  -i "your-integration-id"

Built for Automation

πŸ€–

AI Agent Ready

Every command outputs structured JSON. Designed for LLMs and automation pipelines to parse, plan, and execute social media workflows.

🌐

30+ Platforms

Post to Twitter/X, LinkedIn, Reddit, Instagram, YouTube, TikTok, and 22 more platforms from a single CLI.

🧡

Threads & Comments

Create threaded posts with multiple comments, each with their own media. Automatic conversion to platform-native threads.

πŸ“·

Rich Media Support

Upload and attach images, videos, audio, and documents. Supports PNG, JPG, MP4, MOV, PDF, and many more formats.

πŸ“…

Scheduled Posting

Schedule posts with precise timestamps, create drafts for review, and batch schedule entire content campaigns.

βš™οΈ

Platform-Specific Settings

Dynamic discovery of platform features like Reddit flairs, YouTube playlists, Pinterest boards, and LinkedIn company pages.

How It Works

1

Discover Integrations

List all your connected social media accounts and discover platform-specific features like subreddit flairs and YouTube playlists.

Discovery

postiz integrations:list

# Get platform settings
postiz integrations:settings <id>

# Fetch platform-specific data
postiz integrations:trigger <id> getFlairs \
  -d '{"subreddit":"programming"}'
2

Create Posts

Compose posts with content, media, comments, and platform-specific settings. Use simple CLI flags for quick posts or JSON files for complex campaigns.

Post Creation

# Simple post
postiz posts:create \
  -c "Check out our new feature!" \
  -m "screenshot.png" \
  -s "2025-01-15T09:00:00Z" \
  -i "twitter-id,linkedin-id"

# Complex post from JSON
postiz posts:create --json campaign.json
3

Manage & Analyze

List, filter, and manage your scheduled posts. Track performance with platform and post-level analytics. Build batch workflows to schedule entire content campaigns programmatically.

Management & Analytics

# List scheduled posts
postiz posts:list

# Get platform analytics (last 30 days)
postiz analytics:platform <id> -d 30

# Get analytics for a specific post
postiz analytics:post <post-id> -d 7

# Upload media for reuse
postiz upload video.mp4

One Command, Every Platform

Post to multiple platforms simultaneously, each with their own media and platform-specific settings.

Terminal

# Post to multiple platforms at once
postiz posts:create \
  -c "Launching our new feature today!" \
  -m "banner.png" \
  -s "2025-03-01T09:00:00Z" \
  -i "twitter-id,linkedin-id,facebook-id"

# Post with threaded comments
postiz posts:create \
  -c "Main announcement post" -m "hero.png" \
  -c "First follow-up comment" -m "demo.gif" \
  -c "Links and resources" \
  -s "2025-03-01T09:00:00Z" \
  -i "twitter-id,reddit-id"

# Post with platform-specific settings
postiz posts:create \
  -c "Check out this tutorial" \
  -m "video.mp4" \
  -s "2025-03-01T09:00:00Z" \
  --settings '{"subreddit":[{"value":{"subreddit":"programming","title":"New Tutorial","type":"text"}}]}' \
  -i "reddit-id"

# Batch schedule a week of content
for day in 1 2 3 4 5; do
  postiz posts:create \
    -c "Day $day content" \
    -s "2025-03-0${day}T09:00:00Z" \
    -i "twitter-id,linkedin-id"
done

What is Hermes Agent?

Hermes Agent is an open-source AI agent framework by Nous Research β€” β€œthe agent that grows with you.” It's a flexible platform for building and running AI agents that can execute real-world tasks β€” including managing your social media with Postiz.

🌱

Grows With You

Hermes Agent learns and adapts to your workflows over time, becoming more effective at managing your social media presence the more you use it.

πŸ”§

Open-Source Framework

Fully customizable and built by Nous Research. Inspect the source, extend functionality, and tailor the agent to your exact needs.

⚑

Tool Execution

Hermes Agent executes CLI tools directly, making it a natural fit for running Postiz commands to manage your social media workflows.

How Postiz Works with Hermes Agent

Hermes Agent discovers Postiz through its tool execution framework. Once configured, it can call Postiz commands directly β€” no manual setup needed.

  • βœ“Install Postiz Agent globally and set your POSTIZ_API_KEY
  • βœ“Hermes Agent discovers Postiz through its tool execution framework
  • βœ“POSTIZ_API_KEY is needed for authentication
  • βœ“Works with any LLM backend supported by Hermes

Install Postiz

# Install the Postiz skill
npx skills add gitroomhq/postiz-agent

# Set your API key
export POSTIZ_API_KEY=your_api_key

# Hermes discovers Postiz tools
hermes tools list

# All Postiz commands are now
# available through Hermes Agent

Post With Hermes Agent

Tell Hermes Agent what to post β€” it connects to Postiz, discovers your integrations, and handles the entire publishing workflow autonomously.

🧠

Chat Workflow

Natural language commands

Tell Hermes Agent what to post in natural language. It connects to Postiz, discovers your accounts, uploads media, and schedules posts β€” all autonomously.

Hermes Agent

You: Post my blog article to Twitter,
  LinkedIn, and Reddit with the cover
  image, schedule for tomorrow at 9am

Hermes: On it. Let me handle that.
  1. Found your integrations via Postiz
  2. Uploading cover image
  3. Scheduling across 3 platforms

  Done! Posts scheduled:
  - X (Twitter): scheduled 9:00 AM
  - LinkedIn: scheduled 9:00 AM
  - Reddit (r/programming): scheduled 9:00 AM
🧠

Scheduled Workflows

Cron-based automation

Define recurring workflows in a hermes-config.yaml file. Hermes Agent runs on a schedule, drafting and publishing content automatically.

hermes-config.yaml

tasks:
  - name: daily-social-posts
    schedule: "0 8 * * 1-5"
    description: >
      Check ~/content/drafts for new
      posts. Schedule them to all my
      social platforms for noon today.
      Move published drafts to
      ~/content/published.
    tools:
      - postiz

# Hermes Agent will autonomously:
#   1. Monitor your drafts folder
#   2. Read and format each post
#   3. Schedule via Postiz
#   4. Move files when done

Why Hermes Agent + Postiz

  • βœ“Open-source β€” fully inspectable and customizable
  • βœ“Grows with you β€” learns and adapts to your workflows
  • βœ“Tool execution β€” runs Postiz CLI commands directly
  • βœ“Scheduled tasks β€” automate recurring social media workflows
  • βœ“Cross-post to multiple platforms in a single request
  • βœ“Any LLM backend β€” use your preferred model with Hermes

SKILL.md (auto-discovered)

---
name: postiz
description: Social media automation
  CLI for scheduling posts across
  30+ platforms
metadata:
  hermes-agent:
    requirements:
      env:
        - POSTIZ_API_KEY
      binaries:
        - postiz
---

# Available Commands
- postiz integrations:list
- postiz integrations:settings <id>
- postiz posts:create
- postiz upload <file>
- postiz analytics:platform <id>

Also Works with Claude Code

Postiz Agent is a CLI tool β€” it works with any AI agent that can run shell commands, including Anthropic's Claude Code.

C

Claude Code

Anthropic's agentic coding tool

Claude Code reads the SKILL.md file to learn all available Postiz commands. It autonomously discovers your integrations, uploads media, composes posts with platform-specific settings, and schedules content across all your connected platforms.

Claude Code

> Schedule a tweet for tomorrow morning
  announcing our new feature, attach
  the screenshot from ./assets/launch.png

Claude Code will automatically run:
  postiz integrations:list
  postiz upload ./assets/launch.png
  postiz posts:create \
    -c "We just launched..." \
    -m "uploaded-url" \
    -s "2025-03-02T09:00:00Z" \
    -i "twitter-id"

Command Reference

CommandDescription
postiz integrations:listList all connected social media accounts
postiz integrations:settings <id>Get platform-specific settings schema
postiz integrations:trigger <id> <method>Trigger platform tools (flairs, playlists, etc.)
postiz posts:createCreate and schedule a new post
postiz posts:listList all scheduled and published posts
postiz posts:delete <id>Delete a scheduled post
postiz analytics:platform <id>Get analytics for an integration/channel
postiz analytics:post <id>Get analytics for a specific post
postiz upload <file>Upload media and get a reusable URL

Start automating today

Install Postiz Agent and let Hermes Agent handle social media posting across all your platforms.

Ready to get started?

Grow your social media presence with Postiz.
Schedule, analyze, and engage with your audience.

Grow your social media presence with Postiz.