doodle top mobile

Publish to Medium from NanoClaw

NanoClaw can publish and schedule Medium articles through Postiz. Send NanoClaw a draft or a file from WhatsApp, Telegram, Slack, or Discord, and it uses the Postiz skill to set the title and subtitle, add up to four tags, target a publication if you name one, and set a canonical URL when the piece first appeared on your blog.

Setup GuideGitHub

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

Last updated: September 2026

doodle left mobiledoodle right mobile

How do I set up NanoClaw to post to Medium?

Setup, then just ask

# 1. Install NanoClaw (once)
git clone https://github.com/nanocoai/nanoclaw.git
cd NanoClaw && bash nanoclaw.sh

# 2. Add the Postiz skill to your NanoClaw fork
npx skills add gitroomhq/postiz-agent

# 3. Authenticate Postiz (OAuth device flow)
postiz auth:login   # or: export POSTIZ_API_KEY=...

# 4. Connect Medium in Postiz, then message NanoClaw:
> Publish my draft article on Medium
  under our publication, tomorrow at 9am

NanoClaw: Done! Your Medium post is scheduled.

Which Medium features does NanoClaw support?

📝

Article Publishing

Publish long-form articles directly to Medium with full Markdown support. Write once, publish seamlessly.

📚

Publication Support

Publish articles under any Medium publication you belong to. Reach established audiences with a single setting.

🔗

Canonical URLs

Set canonical URLs for SEO to link back to your original content. Avoid duplicate content penalties across platforms.

🏷

Smart Tagging

Add up to 4 tags per article to improve discoverability. Tags help Medium surface your content to the right readers.

📅

Scheduled Publishing

Schedule articles for future publication with precise timestamps. Plan your content calendar weeks in advance.

🤖

AI-Powered Workflows

Let AI agents draft, format, and publish your articles. From idea to published post without leaving your chat app.

How do I post to Medium from NanoClaw?

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

1

Find Your Medium Integration

Ask NanoClaw whether your Medium account is connected. It also checks which options the platform supports.

Example conversation

> Is my Medium account connected to Postiz?

NanoClaw: Yes — your Medium account is connected
  and ready. Want me to post something?
2

Write Your Article

Compose your article content in Markdown. Medium supports rich formatting including headers, code blocks, images, and embedded links.

Example conversation

> Draft a Medium post about our new
  feature launch

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

Publish Your Article

Create a post with your article content, title, subtitle, tags, and optional publication and canonical URL settings.

Example conversation

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

NanoClaw: Done! Scheduled on Medium for
  tomorrow at 9:00 AM.

Medium Settings Reference

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

FieldTypeDescription
__typestringMust be "medium"
titlestringArticle title (min 2 characters)
subtitlestringArticle subtitle (min 2 characters)
canonicalstringOriginal URL for SEO canonical link
publicationstringPublication ID to publish under
tagsarrayUp to 4 tags: [{value: string, label: string}]

Common Configurations

Ask NanoClaw for any of these common Medium publishing scenarios and it applies the matching settings.

Simple Article with Tags

Just ask

> Post it with: Simple Article with Tags

NanoClaw: Got it. Applying:
  title: Getting Started with TypeScript
  subtitle: A beginner-friendly introduction
  tags: TypeScript, JavaScript, Programming

Cross-Posted Article with Canonical URL

Just ask

> Post it with: Cross-Posted Article with Canonical URL

NanoClaw: Got it. Applying:
  title: How We Scaled to 1M Users
  subtitle: Lessons from our growth journey
  canonical: https://engineering.myblog.com/scaling-to-1m
  tags: Startup, Scaling, Engineering

Publication Article

Just ask

> Post it with: Publication Article

NanoClaw: Got it. Applying:
  title: The Future of AI Agents
  subtitle: Why autonomous agents are the next paradigm
  publication: towards-data-science-id
  tags: Artificial Intelligence, AI Agents, Automation, Future

What is NanoClaw?

NanoClaw is an open-source AI assistant that runs each agent in its own Docker container and is built on Anthropic's Claude Agent SDK. It was created as a smaller, easier-to-audit alternative to OpenClaw. It connects to WhatsApp, Telegram, Slack, Discord, Microsoft Teams, iMessage, and more, and supports per-group memory and recurring jobs.

📦

Container-Based

NanoClaw runs in containers for easy deployment and isolation. Spin up your social media automation agent in seconds with Docker.

💬

Multi-Platform Chat

Connect to WhatsApp, Telegram, Slack, Discord, Microsoft Teams, and more. Message NanoClaw from wherever you already communicate.

🧠

Memory & Context

Schedule recurring tasks with cron jobs. NanoClaw can publish your Medium articles on a schedule without you having to ask each time.

How Postiz Works with NanoClaw

When you install Postiz Agent globally, NanoClaw automatically discovers it by reading the bundled SKILL.md file. This file tells NanoClaw what commands are available, what environment variables are needed, and how to compose Medium articles with the right settings.

  • ✓Install Postiz skill with npx skills add gitroomhq/postiz-agent
  • ✓NanoClaw reads the SKILL.md and learns all Postiz commands
  • ✓Authenticate with postiz auth:login (OAuth device flow) or a POSTIZ_API_KEY
  • ✓Skills are loaded on-demand, keeping the agent context clean
  • ✓Built on Anthropic's Claude Agent SDK, running in an isolated Docker container

Install Postiz

# In your NanoClaw fork: add the Postiz skill
npx skills add gitroomhq/postiz-agent

# Sign in to Postiz (OAuth device flow)
postiz auth:login

# Or use an API key instead
export POSTIZ_API_KEY=your_api_key

# Check the connection
postiz auth:status
postiz integrations:list

Medium Publishing with NanoClaw

Message NanoClaw from any platform — it reads the Postiz skill, discovers your Medium integration, and handles the entire publishing workflow autonomously.

🐳

From Any Chat App

WhatsApp, Telegram, Slack, or Discord

Send a message to NanoClaw from your favorite chat app. It runs as a background service in an isolated container, so it picks up your message, discovers your Medium account via Postiz, formats the article, and publishes it — all while you go about your day.

NanoClaw

You: Post to Medium about our new
  feature launch, schedule for tomorrow
  at 9am

NanoClaw: On it! Here's my plan:
  1. Found your Medium integration
  2. Composing your post
  3. Scheduling for tomorrow 9:00 AM

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

Scheduled & Proactive

Recurring jobs, requested in chat

NanoClaw supports recurring jobs you request in chat. Set up a recurring job that checks a folder for new Markdown drafts and publishes them to Medium automatically — no manual trigger needed.

Recurring job (ask in chat)

> @Andy every weekday at 9am, check
  ~/content/posts for new files and
  schedule each one to Medium for
  noon. Move posted files to
  ~/content/published.

NanoClaw: Got it. I'll run this every
  weekday at 9:00 AM and schedule the
  posts through Postiz.

Why NanoClaw + Postiz for Medium

NanoClaw makes Postiz a natural fit for your Medium workflow. The agent discovers all available commands and autonomously chains them together.

  • ✓Message from WhatsApp or Telegram to post to Medium — no terminal needed
  • ✓Container-based — easy to deploy, isolate, and scale
  • ✓Built-in memory remembers your content preferences
  • ✓Scheduled jobs for hands-free daily posting
  • ✓Cross-post to Medium + other platforms in a single conversation
  • ✓Built on Anthropic's Claude Agent SDK, with each agent group in its own container

SKILL.md (auto-discovered)

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

# Medium Settings
title, subtitle, canonical,
publication, tags

Does Postiz work with other agents too?

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

C

Claude Code

by Anthropic

Claude reads the Postiz skill so it knows what it can do, then autonomously discovers your Medium integration, formats your article, applies tags and publication settings, and publishes the post.

Claude Code

> Publish my API design article to Medium
  under the engineering publication with
  a canonical URL back to my blog

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

Can NanoClaw post to Medium and other platforms at once?

Publish the same article to Medium and other platforms in a single request. Each platform gets its own settings.

Example

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

NanoClaw: Done! Scheduled:
  - Medium + LinkedIn: tomorrow 9:00 AM
  - Daily tips on Medium: Mon-Fri 10:00 AM

What can I ask NanoClaw to post on Medium?

You can ask NanoClaw for anything Postiz supports on Medium: a single post, a scheduled batch, or a recurring job. These are prompts you would type in WhatsApp, Telegram, Slack, or Discord. @Andy is NanoClaw's default trigger word; use whatever name you gave your agent.

Cross-post from your blog

Say to NanoClaw

> @Andy publish ~/posts/scheduling-guide.md to Medium tomorrow at 9am with the canonical URL set to the blog post

NanoClaw: Sets title, subtitle, and canonical so Medium credits the original.

Publication with tags

Say to NanoClaw

> @Andy publish this article in our Engineering publication on Medium with tags: automation, scheduling, ai agents

NanoClaw: Sets publication ID and a tags array with three entries.

Draft from a thread

Say to NanoClaw

> @Andy expand yesterday's X thread into a 600-word Medium article with a subtitle and schedule it for Wednesday

NanoClaw: Writes the article body, title, and subtitle, then schedules through Postiz.

What should I know before posting to Medium from NanoClaw?

Medium has a few rules that Postiz enforces at publish time. NanoClaw applies them when you mention them in plain language, and asks when a required value is missing.

  • ✓title and subtitle are both required and each needs at least 2 characters. NanoClaw can write them from your draft if you do not supply them.
  • ✓Medium allows up to 4 tags per article. NanoClaw passes them as [{value, label}] objects.
  • ✓Set canonical to the original URL when cross-posting from your blog so search engines credit your site, not Medium.
  • ✓To publish under a publication, NanoClaw needs the publication ID; it can fetch your publications with postiz integrations:settings.

Frequently asked questions about NanoClaw and Medium

How do I publish to Medium from NanoClaw?

Add the Postiz skill to NanoClaw with npx skills add gitroomhq/postiz-agent, authenticate with postiz auth:login, and connect Medium in Postiz. Then send NanoClaw the article text or a markdown file with the title, subtitle, and time. It creates the Medium post through Postiz and confirms the schedule.

Can NanoClaw set a canonical URL on Medium articles?

Yes. Tell NanoClaw where the article was first published and it sets the canonical field to that URL. Medium then points search engines to your original page, which protects your blog's rankings when you cross-post. This is the recommended way to syndicate blog content to Medium.

Can NanoClaw publish to a Medium publication?

Yes. Name the publication and NanoClaw looks up its ID with postiz integrations:settings, then sets publication on the post. You need to be a writer or editor in that publication. Without a publication, the article publishes on your personal Medium profile.

How many tags can NanoClaw add to a Medium post?

Up to four, which is Medium's own limit. Mention the topics and NanoClaw builds the tags array with value and label entries. Choose specific tags that match Medium's existing topics so the article surfaces in those feeds. Extra tags beyond four are dropped.

Can NanoClaw turn my notes into a Medium article automatically?

Yes. Because NanoClaw runs on the Claude Agent SDK, it can draft the article, write a title and subtitle, and schedule it through Postiz in one request. Ask for a recurring job to publish from a drafts folder on a weekly cadence, and review each piece in the Postiz calendar before it goes live.

Start publishing to Medium

Install Postiz Agent and automate your Medium content strategy with AI-powered scheduling and publishing.