doodle top mobile

Automate Lemmy with Claude Code

Post to Lemmy communities, share links across the fediverse, and cross-post to multiple communities — just by asking Claude Code.

Setup GuideGitHub

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

doodle left mobiledoodle right mobile

Post to Lemmy in Seconds

Setup, then just ask

# One-time setup
npx skills add gitroomhq/postiz-agent
export POSTIZ_API_KEY=your_api_key

# Then just ask Claude Code:
> Post our update to the selfhosted
  Lemmy community tomorrow at 9am

Claude Code: Done! Your Lemmy post is scheduled.

Lemmy-Specific Features

🏘️

Community Posting

Post directly to any Lemmy community. Target specific communities by name and ID for precise content distribution.

🔗

Link Posts

Share URLs alongside your post content. Perfect for sharing articles, resources, and external content with your communities.

🌐

Federated Network

Reach users across the entire fediverse. Your posts on one Lemmy instance are visible to federated instances automatically.

🔀

Cross-Community Posting

Post to multiple Lemmy communities in a single request. Share content across related communities to maximize reach.

📝

Custom Titles

Set unique titles for each community post. Tailor your headlines to match the culture and expectations of each community.

📅

Scheduled Posting

Schedule posts with precise timestamps. Plan your community engagement ahead of time and post at peak activity hours.

How It Works

You describe what you want in plain language and Claude Code handles the Postiz calls for you. Here is how a typical conversation goes.

1

Find Your Lemmy Integration

Ask Claude Code whether your Lemmy account is connected. It also checks which options the platform supports.

Example conversation

> Is my Lemmy account connected to Postiz?

Claude Code: Yes — your Lemmy account is connected
  and ready. Want me to post something?
2

Choose Your Communities

Identify the Lemmy communities you want to post to. Each community requires a name, ID, and a post title. You can optionally include a URL for link posts.

Example conversation

> Draft a Lemmy post about our new
  feature launch

Claude Code: Here's a draft for Lemmy:
  "We just shipped something big..."
  Want me to add media and schedule it?
3

Create Your Post

Schedule a Lemmy post with your content, target communities, and optional link URL. Posts can target one or multiple communities at once.

Example conversation

> Yes — add screenshot.png and schedule
  it for tomorrow at 9am

Claude Code: Done! Scheduled on Lemmy for
  tomorrow at 9:00 AM.

Lemmy Settings Reference

Mention any of these in plain language and Claude Code sets them for you. These are the Lemmy options it can apply to any post.

FieldTypeDescription
__typestringMust be "lemmy"
subredditarrayArray of community objects: [{value: {subreddit, id, title, url?}}]
subreddit[].value.subredditstringCommunity name (min 2 characters)
subreddit[].value.idstringCommunity ID on the Lemmy instance
subreddit[].value.titlestringPost title (min 2 characters)
subreddit[].value.urlstringOptional URL for link posts

Common Configurations

Ask Claude Code for any of these common Lemmy scenarios and it applies the matching settings.

Simple Text Post to One Community

Just ask

> Post it with: Simple Text Post to One Community

Claude Code: Got it. Applying:
  subreddit: {'subreddit': 'technology', 'id': 'comm-123', 'title': 'Interesting discussion on AI agents'}

Link Post with URL

Just ask

> Post it with: Link Post with URL

Claude Code: Got it. Applying:
  subreddit: {'subreddit': 'opensource', 'id': 'comm-456', 'title': 'New open-source social media tool', 'url': 'https://github.com/gitroomhq/postiz-app'}

Cross-Post to Multiple Communities

Just ask

> Post it with: Cross-Post to Multiple Communities

Claude Code: Got it. Applying:
  subreddit: {'subreddit': 'technology', 'id': 'comm-123', 'title': 'AI-powered social media automation'}, {'subreddit': 'selfhosted', 'id': 'comm-789', 'title': 'Self-host your social media scheduler'}, {'subreddit': 'opensource', 'id': 'comm-456', 'title': 'Open-source alternative to Buffer'}

What is Claude Code?

Claude Code is Anthropic's agentic coding tool that lives in your terminal. It handles software engineering tasks — writing features, fixing bugs, and answering questions about your codebase — and it can run shell commands and MCP tools like Postiz.

💻

Terminal & IDE Native

Claude Code runs in your terminal, with extensions for VS Code and JetBrains. You type what you want in plain English and it handles Postiz for you.

🔧

Agentic Execution

Claude Code plans and works through multi-step tasks on its own — discovering channels, uploading media, and scheduling posts — and asks for permission before it acts.

Parallel Tasks

Run several Claude Code sessions side by side, or spawn subagents in one. Schedule posts to different platforms while it handles other coding work.

How Postiz Works with Claude Code

Claude Code discovers Postiz through the Postiz skill or the Postiz MCP server. It reads the SKILL.md (or the MCP tool list) to learn what it can do, then chains calls together for social media workflows.

  • Install the Postiz skill, or add the Postiz MCP server with claude mcp add
  • Claude Code reads the SKILL.md and learns all Postiz commands
  • POSTIZ_API_KEY must be set in environment
  • Claude Code asks for permission before running commands
  • Works alongside your coding tasks in parallel

Install Postiz

# Option A: add the Postiz MCP server
claude mcp add --transport http postiz https://mcp.postiz.com/mcp-oauth-dynamic

# Option B: install the Postiz skill
npx skills add gitroomhq/postiz-agent
export POSTIZ_API_KEY=your_api_key

# Then just ask
claude "list my social media integrations"

Lemmy Posting with Claude Code

Tell Claude Code what to post from your terminal or IDE — it discovers your integrations via Postiz and handles the entire publishing workflow.

💻

Just Ask Claude Code

Terminal and IDE integration

Tell Claude Code what to post from your terminal or IDE — it discovers your integrations via Postiz and handles the entire publishing workflow.

Claude Code CLI

$ claude "Post to Lemmy about our
  new feature launch, schedule for
  tomorrow at 9am"

Claude Code: I'll handle that.
  Found your Lemmy integration.
  Composing and scheduling the post.

  Done! Your post is scheduled.
  Post ID: abc-123
💻

Parallel Tasks

Multiple tasks at once

Claude Code runs headless with claude -p, so several tasks can run in parallel. Schedule posts to different platforms while it works on other coding tasks.

Claude Code Parallel Tasks

# Run multiple posting tasks in parallel
$ claude -p "Schedule a post about our
  launch to X for tomorrow 9am" &

$ claude -p "Write a LinkedIn article
  about our new feature and schedule
  for tomorrow noon" &

$ claude -p "Fix the bug in auth.ts"

# All three tasks run simultaneously

Why Claude Code + Postiz for Lemmy

Claude Code's autonomous execution makes Postiz a natural fit. The agent reads the SKILL.md to understand every available command, then autonomously chains them together for Lemmy workflows.

  • Runs in your terminal or IDE — just type what you want
  • Permission-based execution — you stay in control
  • Parallel task support — post while coding
  • Cross-post to multiple communities in a single session
  • Share links and articles across the fediverse effortlessly
  • Powered by Claude — Anthropic's most capable models

SKILL.md (auto-discovered)

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

# Lemmy Settings
subreddit (array of communities),
each with: subreddit, id, title, url

Also Works with Claude Cowork

Postiz works with any AI agent that can run commands or call MCP tools — you ask, the agent does the work. That includes Claude Cowork, Anthropic's desktop agent — no terminal needed.

C

Claude Cowork

by Anthropic

Claude Cowork reads the Postiz skill so it knows what it can do, then autonomously discovers your Lemmy integration, composes your post with the right community settings, and schedules it.

Claude Cowork

> Post an article about our new release
  to the technology and opensource
  communities on Lemmy

Claude Cowork: Done! Scheduled on Lemmy for
  tomorrow at 9:00 AM.

Lemmy + Other Platforms

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

Example

> Post "Excited to announce our new feature!" to
  Lemmy and LinkedIn tomorrow at 9am, then schedule
  a daily tip on Lemmy every weekday at 10am

Claude Code: Done! Scheduled:
  - Lemmy + LinkedIn: tomorrow 9:00 AM
  - Daily tips on Lemmy: Mon-Fri 10:00 AM

Start posting to Lemmy

Install Postiz Agent and automate your Lemmy community engagement with AI-powered scheduling and publishing.