Automate X with AI Agents
Schedule tweets, control reply permissions, post threads, and publish to X Communities โ all from the command line or through your AI agent.
Please make sure there is always a human in the loop.
Post to X in Seconds
Terminal
# Install globally
npm install -g postiz
# 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
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>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"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.
| Field | Type | Description |
|---|---|---|
__type | string | Must be "x" |
who_can_reply_post | string | Who can reply: everyone, following, mentionedUsers, subscribers, verified |
community | string | X 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 OpenClaw?
OpenClaw is the open-source personal AI agent with 145k+ GitHub stars. It runs locally on your machine, connects through apps you already use, and takes real actions on your behalf.
Works Where You Are
Message OpenClaw from WhatsApp, Telegram, Slack, Discord, Signal, iMessage, or 10+ other platforms. No new app to learn.
Skill-Based Architecture
OpenClaw extends its abilities through Skills โ lightweight plugins defined in Markdown files. Postiz is available as a skill on ClawHub.
Proactive Automation
Schedule recurring tasks with cron jobs. OpenClaw can post your X content on a schedule without you having to ask each time.
How Postiz Becomes an OpenClaw Skill
When you install Postiz Agent globally, OpenClaw automatically discovers it by reading the bundled SKILL.md file. This file tells OpenClaw what commands are available, what environment variables are needed, and how to compose X posts with the right settings.
- โInstall from ClawHub with one command: clawhub install nevo-david/postiz
- โOpenClaw reads the SKILL.md and learns all Postiz commands
- โEligibility is checked automatically โ POSTIZ_API_KEY must be set
- โSkills are loaded on-demand, keeping the agent context clean
- โWorks with any LLM backend: Claude, GPT, Gemini, Llama, and more
Install from ClawHub
# Install the Postiz skill
clawhub install nevo-david/postiz
# Or install the CLI globally
npm install -g postiz
# Set your API key
export POSTIZ_API_KEY=your_api_key
# Verify OpenClaw sees it
openclaw skills list --eligible
# Output:
# - postiz: Social media automation
# CLI for scheduling posts
# across 30+ platformsX Posting with OpenClaw
Message OpenClaw from any platform โ it reads the Postiz skill, discovers your X integration, and handles the entire posting workflow autonomously.
From Any Chat App
WhatsApp, Telegram, Slack, Discord...
Send a message to OpenClaw from your favorite chat app. It runs as a persistent daemon on your machine, so it picks up your message, discovers your X account via Postiz, composes your tweet, and schedules the post โ all while you go about your day.
WhatsApp / Telegram
You: Post a thread on X about our new
feature launch, schedule for tomorrow
at 9am, let everyone reply
OpenClaw: Got it! Here's what I'll do:
1. Create a 3-tweet thread
2. Schedule for 2025-03-02T09:00:00Z
3. Settings: everyone can reply
Done! Your X thread is scheduled.
Post ID: abc-123Scheduled & Proactive
Cron jobs for recurring content
OpenClaw supports cron-based heartbeat tasks. Set up a recurring job that drafts and posts tweets on a schedule automatically โ no manual trigger needed.
openclaw.json (heartbeat)
{
"heartbeat": [
{
"cron": "0 9 * * 1-5",
"prompt": "Check ~/content/tweets
for new .txt files. For each one,
read the content and schedule an
X post for today at noon.
Use everyone reply settings.
Move posted files
to ~/content/posted."
}
]
}Why OpenClaw + Postiz for X
OpenClaw's skill system makes Postiz a natural fit. The agent reads the SKILL.md to understand every available command, then autonomously chains them together for X workflows.
- โMessage from WhatsApp to post a tweet โ no terminal needed
- โCron jobs for hands-free daily posting schedules
- โStructured JSON output lets OpenClaw verify each step succeeded
- โThread creation handled automatically with multiple content flags
- โCross-post to X + other platforms in a single conversation
- โModel-agnostic โ works with Claude, GPT, Gemini, or open-source LLMs
SKILL.md (auto-discovered)
---
name: postiz
description: Social media automation
CLI for scheduling posts across
30+ platforms including X
metadata:
openclaw:
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, communityAlso 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.
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"
doneReply Options
Everyone
everyoneFollowing
followingMentioned Users
mentionedUsersSubscribers
subscribersVerified
verifiedStart 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.
Open-source social media scheduling tool