Claude Code drafts it. You approve it. PostDelegate posts it.Lemmy: Posts to one or more communities on your instance.
How to post to Lemmy from Claude Code
- Add PostDelegate to Claude Code. Add the PostDelegate MCP server with the command below. Run /mcp inside Claude Code and authenticate the postdelegate server. Your browser opens to sign in.
Terminal
claude mcp add postdelegate --transport http "https://app.postdelegate.com/mcp-oauth-dynamic" - Connect Lemmy in PostDelegate. On the calendar page choose Add Channel, then Lemmy. Enter the instance address starting with http:// or https://, your username or email, and your password. PostDelegate signs in to the instance and shows your account on the channel.
- Ask Claude Code for a draft. Describe the post in plain words. Claude Code checks your Lemmy channel's rules, creates the post and sends back a preview link.
Teach Claude Code the posting rules
Save the PostDelegate skill to ~/.claude/skills/postdelegate/SKILL.md. Call it with /postdelegate, or just ask for a post and Claude Code loads it. Agent files has the steps.
What to ask Claude Code
Mention any Lemmy setting in plain words and Claude Code fills it in. Claude Code can also read text files in your project, such as a changelog or a draft in Markdown.
- Draft a Lemmy post for the selfhosted community with the title “We open-sourced our scheduler” and a link to the repository.
- Post the same announcement to two communities, each with its own title, as drafts.
- Write a Lemmy post from the project’s README introduction, link to the docs, and save it as a draft.
What Claude Code can do on your Lemmy channel
- Check the rules first. Before writing, it reads your Lemmy channel's length limit (10,000 characters) and required settings.
- Draft, schedule or post. It creates a draft, a scheduled post or an immediate post, and runs the same checks as the app.
- Use your media. It attaches files from your media library or adds one from a public link.
- Review and fix. It lists what is scheduled, changes the Lemmy settings of a post that has not gone out, and deletes posts you no longer want.
Lemmy is made of separate instances, so PostDelegate asks which one you use, for example https://lemmy.world, along with your username or email and password. Each post goes to one or more communities, and every community needs its own title.
Lemmy settings Claude Code can fill in
| Setting | Notes |
|---|---|
| Community | Required. Choose one or more communities. Each one needs its own title. |
| Title | Required, at least 2 characters, one per community. |
| URL | Optional link to attach to the post. |
Before you start
- Lemmy has no app passwords, so you connect with your real account password. It is encrypted before it is stored.
- A post fails with a readable reason if your account is banned, the community no longer exists, or the instance blocks a link in the post.
The Lemmy channel guide has every field, and MCP tools lists exactly what an assistant can and cannot do.
Questions
Will Claude Code publish to Lemmy without asking me?
Do I need an API key to connect Claude Code?
Does it cost extra to use Claude Code with PostDelegate?
Can Claude Code attach images or video to a Lemmy post?
Can I post to several Lemmy communities at once?
Is my Lemmy password stored?
Lemmy from other assistants
Other networks from Claude Code
- YouTube
- Bluesky
- Mastodon
- Google Business Profile
- Telegram
- Discord
- Slack
- Tumblr
- Nostr
- Twitch
- Kick
- Dribbble
- DEV.to
- Medium
- WordPress
- Hashnode
- Listmonk (email)
Prefer to plan Lemmy posts yourself? See the Lemmy scheduler.