Automate X with Claude Cowork
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 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
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 Claude Cowork?
Claude Cowork is Anthropic's agentic AI tool for knowledge workers. It runs on your desktop, connects to local files and apps like Google Drive, Gmail, and DocuSign, and completes multi-step tasks autonomously.
Desktop Native
Claude Cowork runs directly on your desktop, connecting to your local files and apps. No browser or cloud setup needed to manage your social media workflow.
App Integrations
Connects to Google Drive, Gmail, DocuSign, and more. Pull content from your existing tools and publish it to social media seamlessly.
Autonomous Tasks
Claude Cowork completes multi-step tasks on its own. Tell it to draft, schedule, and publish posts โ it handles the entire workflow.
How Postiz Works with Claude Cowork
Claude Cowork discovers Postiz through MCP (Model Context Protocol) tool integration. Once configured, it can call Postiz commands directly from your desktop โ no terminal needed.
- โInstall Postiz Agent and set your POSTIZ_API_KEY
- โClaude Cowork discovers Postiz through MCP integration
- โAll Postiz commands become available as tools
- โClaude Cowork autonomously chains commands for complex workflows
- โWorks seamlessly with your existing desktop apps and files
Install Postiz
# Install the Postiz skill
npx skills add gitroomhq/postiz-agent
# Set your API key
export POSTIZ_API_KEY=your_api_key
# Claude Cowork discovers Postiz
# through MCP tool integration
# and can call all commands directlyX Posting with Claude Cowork
Tell Claude Cowork what to post from your desktop โ it connects to Postiz, discovers your integrations, and handles the entire publishing workflow without you touching the terminal.
From Any Chat App
Tell Claude Cowork what to post from you...
Tell Claude Cowork what to post from your desktop โ it connects to Postiz, discovers your integrations, and handles the entire publishing workflow without you touching the terminal.
Claude Cowork
You: Post to X about our new
feature launch, schedule for tomorrow
at 9am
Claude Cowork: I'll handle that for you.
1. Found your X integration
2. Composing your post
3. Scheduling for tomorrow at 9:00 AM
Done! Your post is scheduled.
Post ID: abc-123Scheduled & Proactive
Claude Cowork can be asked to perfo...
Claude Cowork can be asked to perform recurring tasks through its desktop interface. Set up automated workflows that draft and publish content on a schedule.
Claude Cowork Task
Tell Claude Cowork:
"Every weekday morning, check my
~/content/drafts folder for new posts
and schedule them to X
for noon today. Move published drafts
to ~/content/published."
Claude Cowork will autonomously:
1. Monitor your drafts folder
2. Read and format each post
3. Schedule via Postiz
4. Move files when doneWhy Claude Cowork + Postiz for X
Claude Cowork makes Postiz a natural fit for your X workflow. The agent discovers all available commands and autonomously chains them together.
- โDesktop-native โ no terminal or CLI knowledge needed
- โConnects to your local files to pull content for X posts
- โMulti-step autonomy โ handles discovery, composition, and scheduling
- โWorks with Google Drive, Gmail, and other desktop apps
- โCross-post to X + other platforms in a single request
- โPowered by Claude โ Anthropic's most capable AI model
SKILL.md (auto-discovered)
---
name: postiz
description: Social media automation
CLI for scheduling posts across
30+ platforms including X
metadata:
claude-cowork:
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 OpenClaw
Postiz Agent works as a CLI tool with any AI agent that can execute shell commands โ including OpenClaw, the open-source personal AI agent.
OpenClaw
Open-source AI agent
OpenClaw reads the SKILL.md file to learn all available Postiz commands, then autonomously discovers your X integration, composes your content, and schedules the post.
OpenClaw
> 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