doodle top mobile

Automate X with Hermes Agent

Schedule tweets, control reply permissions, post threads, and publish to X Communities β€” all from the command line or through your AI agent.

Setup GuideGitHub

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

doodle left mobiledoodle right mobile

Post to X in Seconds

Terminal

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

# Set your API key
export POSTIZ_API_KEY=your_api_key

# Find your X integration
postiz integrations:list

# Schedule a post on X
postiz posts:create \
  -c "Hello world! #buildinpublic" \
  -s "2025-01-15T09:00:00Z" \
  --settings '{"who_can_reply_post":"everyone"}' \
  -i "your-x-integration-id"

# Post a thread (multiple -c flags)
postiz posts:create \
  -c "Thread time! Here's what I learned this week..." \
  -c "1/ First, always ship small increments." \
  -c "2/ Second, get feedback early and often." \
  -c "3/ Third, automate everything you can." \
  -s "2025-01-15T10:00:00Z" \
  --settings '{"who_can_reply_post":"everyone"}' \
  -i "your-x-integration-id"

X-Specific Features

πŸ—£

Reply Controls

Control who can reply to your posts: everyone, people you follow, mentioned users, subscribers, or verified accounts only.

🧡

Thread Support

Create multi-tweet threads by passing multiple -c flags. Each flag becomes a separate tweet in the thread, posted in order.

🏘

Community Posting

Post directly to X Communities by providing a community URL. Reach targeted audiences with relevant content.

✍

Simple Text Posts

Quickly publish text-only tweets with hashtags, mentions, and links. No media upload required for basic posts.

πŸ“Έ

Media Attachments

Attach images or videos to your posts. Upload media through Postiz and include it seamlessly in your scheduled tweets.

πŸ“…

Scheduled Posting

Schedule posts with precise timestamps. Queue up a week of content in minutes and let Postiz handle the publishing.

How It Works

1

Find Your X Integration

List your connected accounts and grab your X integration ID. You can also fetch available settings to see what options are supported.

Discovery

# List all integrations
postiz integrations:list

# Filter for X
postiz integrations:list | jq \
  '.[] | select(.identifier=="x")'

# Get X settings schema
postiz integrations:settings <x-id>
2

Compose Your Content

Write your tweet or thread. Use multiple -c flags to create threads. Add media with the -m flag after uploading through Postiz.

Compose

# Simple tweet
postiz posts:create \
  -c "Just shipped a new feature!" \
  --settings '{"who_can_reply_post":"everyone"}' \
  -i "x-id"

# Thread with multiple tweets
postiz posts:create \
  -c "Big announcement incoming..." \
  -c "We just hit 10k users!" \
  -c "Here's what we learned along the way." \
  --settings '{"who_can_reply_post":"everyone"}' \
  -i "x-id"
3

Schedule & Publish

Schedule your post for a specific time or publish immediately. Set reply controls and optionally target an X Community.

Post Creation

postiz posts:create \
  -c "Check out our latest blog post!" \
  -s "2025-03-01T09:00:00Z" \
  --settings '{
    "who_can_reply_post": "everyone",
    "community": "https://x.com/i/communities/123"
  }' \
  -i "x-id"

X Settings Reference

Every X post accepts these platform-specific settings via the --settings flag.

FieldTypeDescription
__typestringMust be "x"
who_can_reply_poststringWho can reply: everyone, following, mentionedUsers, subscribers, verified
communitystringX Community URL to post into

Common Configurations

Copy-paste these settings for common X posting scenarios.

Public Post β€” Everyone Can Reply

settings.json

{
  "who_can_reply_post": "everyone"
}

Followers Only Replies

settings.json

{
  "who_can_reply_post": "following"
}

Community Post with Verified Replies

settings.json

{
  "who_can_reply_post": "verified",
  "community": "https://x.com/i/communities/1234567890"
}

Mentioned Users Only

settings.json

{
  "who_can_reply_post": "mentionedUsers"
}

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.

🌱

Grows With You

Hermes Agent learns and adapts to your workflows over time. The more you use it, the better it understands your social media strategy and content style.

πŸ”§

Open-Source Framework

Built by Nous Research, Hermes Agent is fully open-source. Customize and extend it to fit your exact social media automation needs.

⚑

Tool Execution

Hermes Agent can execute CLI tools directly. Install Postiz Agent and Hermes will discover and use all available commands autonomously.

How Postiz Works with Hermes Agent

Hermes Agent discovers Postiz through its tool execution framework. Once Postiz Agent is installed, Hermes reads the available commands and can autonomously manage your social media workflow.

  • βœ“Install Postiz Agent globally with npx skills add
  • βœ“Hermes Agent discovers Postiz through tool execution framework
  • βœ“POSTIZ_API_KEY must be set in environment
  • βœ“All Postiz commands become available as agent tools
  • βœ“Works with any compatible LLM backend

Install Postiz

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

# Set your API key
export POSTIZ_API_KEY=your_api_key

# Hermes Agent discovers Postiz
# through its tool execution framework
hermes tools list

X Posting with Hermes Agent

Hermes Agent reads Postiz commands through its tool system, discovers your integrations, and handles the entire posting workflow β€” from content creation to scheduling.

🧠

From Any Chat App

Hermes Agent reads Postiz commands throu...

Hermes Agent reads Postiz commands through its tool system, discovers your integrations, and handles the entire posting workflow β€” from content creation to scheduling.

Hermes Agent

You: Post to X about our new
  feature launch, schedule for tomorrow
  at 9am

Hermes: I'll handle that! Let me:
  1. Find your X integration
  2. Compose your post content
  3. Schedule for tomorrow 9:00 AM

  Done! Post scheduled successfully.
  Post ID: abc-123
🧠

Scheduled & Proactive

Hermes Agent supports scheduled tas...

Hermes Agent supports scheduled task execution. Configure recurring jobs that draft and publish content automatically.

hermes-config.yaml

scheduled_tasks:
  - name: daily_social_posts
    schedule: "0 9 * * 1-5"
    prompt: |
      Check ~/content/posts for new
      .txt files. For each one, read
      the content and schedule a post
      to X for today at noon.
      Move posted files to
      ~/content/published.

Why Hermes Agent + Postiz for X

Hermes Agent makes Postiz a natural fit for your X workflow. The agent discovers all available commands and autonomously chains them together.

  • βœ“Open-source and fully customizable for your X workflow
  • βœ“Grows and adapts to your content strategy over time
  • βœ“Tool execution framework discovers Postiz commands automatically
  • βœ“Scheduled tasks for hands-free daily posting
  • βœ“Cross-post to X + other platforms in a single conversation
  • βœ“Works with any LLM backend β€” not locked to a single provider

SKILL.md (auto-discovered)

---
name: postiz
description: Social media automation
  CLI for scheduling posts across
  30+ platforms including X
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>

# X Settings
who_can_reply_post, community

Also Works with Claude Code

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

C

Claude Code

by Anthropic

Claude reads the SKILL.md file to learn all available Postiz commands, then autonomously discovers your X integration, composes your tweet or thread, applies reply settings, and schedules the post.

Claude Code

> Post a thread about our product launch
  on X, schedule for tomorrow, everyone
  can reply

Claude will automatically run:
  postiz integrations:list
  postiz posts:create \
    -c "Big news! We just launched..." \
    -c "Here's what makes it special..." \
    -c "Try it out today at..." \
    -s "2025-03-02T09:00:00Z" \
    --settings '{"who_can_reply_post":
      "everyone"}' \
    -i "x-id"

X + Other Platforms

Schedule the same content to X and other platforms in a single command. Each platform gets its own settings.

Terminal

# Post to X and LinkedIn simultaneously
postiz posts:create \
  -c "Excited to announce our new feature! #buildinpublic" \
  -s "2025-03-01T09:00:00Z" \
  --settings '{"who_can_reply_post":"everyone"}' \
  -i "x-id,linkedin-id"

# Batch schedule a week of X content
for day in 1 2 3 4 5; do
  postiz posts:create \
    -c "Day $day tip! #dailytips" \
    -s "2025-03-0${day}T10:00:00Z" \
    --settings '{"who_can_reply_post":"everyone"}' \
    -i "x-id"
done

Reply Options

Everyone

everyone

Following

following

Mentioned Users

mentionedUsers

Subscribers

subscribers

Verified

verified

Start posting to X

Install Postiz Agent and automate your X content strategy with AI-powered scheduling and publishing.

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.