Post to Lemmy from Claude Code
Claude Code can publish and schedule Lemmy posts through Postiz. Add the Postiz MCP server with one command, sign in with OAuth, connect your Lemmy account in Postiz, and ask Claude Code to post to a community on your instance with a title, attach a link, or cross-post the same content to several communities at once.
Please make sure there is always a human in the loop.
Last updated: September 2026
How to post to Lemmy from Claude Code
Add the Postiz MCP server to Claude Code once, sign in with OAuth, connect Lemmy in Postiz, and then describe the post in plain language. Setup takes about a minute.
Setup once, then just ask
# One-time setup: add the Postiz MCP server (OAuth, no API key)
claude mcp add --transport http postiz https://mcp.postiz.com/mcp-oauth-dynamic
# Or install the Postiz skill instead
npx skills add gitroomhq/postiz-agent
export POSTIZ_API_KEY=your_api_key
# Then ask Claude Code:
> Post our v2.4 release to the technology
community on Lemmy as a link post titled
"Postiz 2.4 released", tomorrow at 9am
Claude Code: Done! Lemmy post scheduled in
technology for tomorrow at 9:00 AM.What can Claude Code do on Lemmy?
On Lemmy, Claude Code can create text or link posts in one or more communities, each with its own title, on the instance you connected in Postiz.
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 does Claude Code post to Lemmy through Postiz?
You describe what you want in plain language and Claude Code handles the Postiz calls for you. Here is how a typical conversation goes.
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?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?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.
| Field | Type | Description |
|---|---|---|
__type | string | Must be "lemmy" |
subreddit | array | Array of community objects: [{value: {subreddit, id, title, url?}}] |
subreddit[].value.subreddit | string | Community name (min 2 characters) |
subreddit[].value.id | string | Community ID on the Lemmy instance |
subreddit[].value.title | string | Post title (min 2 characters) |
subreddit[].value.url | string | Optional 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': 'artificial', 'id': 'comm-456', 'title': 'New AI social media scheduler', 'url': 'https://postiz.com'}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': 'SaaS', 'id': 'comm-789', 'title': 'Let an AI agent run your social media'}, {'subreddit': 'artificial', 'id': 'comm-456', 'title': 'An agent-first alternative to Buffer'}Example prompts for Lemmy in Claude Code
These are prompts you can type into a Claude Code session, or pass to claude -p in a script. Claude Code reads your repo, calls Postiz, and confirms before publishing.
Cross-post to two communities
Claude Code
> Post the release announcement to the
technology and programming communities on
Lemmy with a title tailored to each
Claude Code: Two community entries created,
each with its own title. Ready to post?Link post to the GitHub release
Claude Code
> Share https://github.com/gitroomhq/postiz-app/
releases/latest in the technology community
with the title "Postiz 2.4 release notes"
Claude Code: url set, title set. Scheduled.Text post from docs
Claude Code
> Read docs/agent-setup.md and post a short
guide to the technology Lemmy community
Claude Code: Drafted the post from the doc.
Approve to publish?Lemmy limits and gotchas to know
Lemmy posting through Postiz mirrors the Reddit model, with a few required fields.
- ✓Each target community needs a community name, community ID, and a title (minimum 2 characters each). Claude Code resolves the ID for you.
- ✓url is optional; set it for link posts, leave it out for text posts.
- ✓Several communities can be targeted in one request, each with its own title.
- ✓Community rules differ per instance, and Claude Code asks for permission before submitting.
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.
Not the same as Claude Cowork (Anthropic's desktop agent for knowledge workers) or the Postiz connector for Claude.ai (chat in the browser or desktop app). Claude Code runs in your terminal and IDE and can read your repository while it writes Lemmy posts.
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 discovers the Postiz tools over MCP, or reads SKILL.md when you use the skill
- ✓MCP route: sign in with OAuth, no API key. Skill route: set POSTIZ_API_KEY
- ✓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-123Parallel 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 simultaneouslyWhy 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, urlAlso Works with Claude Cowork
Postiz works with any AI agent that can run commands or call MCP tools. That includes Claude Cowork, Anthropic's desktop agent, and the Claude.ai connector. See the agents overview for every supported agent.
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 programming
communities on Lemmy
Claude Cowork: Done! Scheduled on Lemmy for
tomorrow at 9:00 AM.Post to Lemmy and other platforms from Claude Code
One request can schedule the same content to Lemmy and other channels, and each platform keeps its own settings. Every platform below has its own Claude Code guide.
Example
> Post "Excited to announce our new feature!" to
Lemmy and Reddit tomorrow at 9am, then schedule
a daily tip on Lemmy every weekday at 10am
Claude Code: Done! Scheduled:
- Lemmy + Reddit: tomorrow 9:00 AM
- Daily tips on Lemmy: Mon-Fri 10:00 AMSee all 25 platforms in the Claude Code social media guide, compare agents on the AI agents overview, read about the Postiz MCP server, or check pricing. For the channel itself, seeLemmy scheduling features in Postiz.
Lemmy and Claude Code: frequently asked questions
How do I post to Lemmy from Claude Code?
Add the Postiz MCP server to Claude Code, sign in to Postiz with OAuth, and connect your Lemmy account in Postiz. Then name the community, the title, and whether it is a link or text post. Claude Code resolves the community ID, fills the settings, asks for permission, and publishes or schedules the post.
Can Claude Code cross-post to several Lemmy communities?
Yes. The Lemmy settings accept an array of communities, each with its own name, ID, title, and optional URL. Ask Claude Code to post to two or three communities and it creates one entry per community, so each audience gets a fitting title while the body stays the same.
Does Claude Code support link posts on Lemmy?
Yes. Mention a URL, such as a GitHub release, and Claude Code sets url on the community entry so the post is published as a link post. Leave the URL out for a text post. Both types require a title of at least two characters, which Claude Code drafts if you do not give one.
Can Claude Code post to Lemmy and Reddit in one go?
Yes. Ask for the same announcement on Reddit and Lemmy and Claude Code creates both through Postiz, handling Reddit flairs and Lemmy community IDs separately. It is a practical way to reach both centralized and federated communities from one terminal session, with permission prompts before publishing.
Start posting to Lemmy
Install Postiz Agent and automate your Lemmy community engagement with AI-powered scheduling and publishing.