doodle top mobile

Publish to Medium from Hermes Agent

Hermes Agent can publish and schedule Medium articles through Postiz. After you add the Postiz skill, you give Hermes the article text or a file from Telegram, Discord, Slack, or the CLI. It sets the title, subtitle, and tags, publishes under your publication when asked, and adds a canonical URL when you are cross-posting.

Setup GuideGitHub

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

Last updated: September 2026

doodle left mobiledoodle right mobile

Publish to Medium 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 Hermes Agent:
> Publish my draft article on Medium
  under our publication, tomorrow at 9am

Hermes Agent: Done! Your Medium post is scheduled.

Medium-Specific Features

📝

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 to publish to Medium from Hermes Agent

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

1

Find Your Medium Integration

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

Example conversation

> Is my Medium account connected to Postiz?

Hermes Agent: 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

Hermes Agent: 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

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

Medium Settings Reference

Mention any of these in plain language and Hermes Agent 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 Hermes Agent 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

Hermes Agent: 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

Hermes Agent: 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

Hermes Agent: 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 Hermes Agent?

Hermes Agent is an open-source AI agent from Nous Research, released under the MIT license. It runs on your own machine or server, you talk to it from Telegram, Discord, Slack, WhatsApp, Signal, or the CLI, and it executes tools such as the Postiz skill to post to Medium and other channels. It works with Nous Portal, OpenRouter, OpenAI, or your own model endpoint.

💬

Message From Anywhere

Talk to Hermes from Telegram, Discord, Slack, WhatsApp, Signal, email, or the terminal. Ask for a Medium post from whichever app you already have open.

⏰

Built-in Cron Scheduler

Create recurring jobs in plain language, such as weekdays at 9am. Hermes drafts and schedules Medium content through Postiz and reports back to your chat.

🔧

Open Source, Any Model

Hermes Agent is MIT licensed and self-hosted. Run it on Nous Portal, OpenRouter, OpenAI, or your own endpoint, and extend it with MCP servers or skills like Postiz.

How Postiz Works with Hermes Agent

Postiz ships as an agent skill in the agentskills.io SKILL.md format that Hermes Agent reads. The skill documents every Postiz CLI command, the credentials it needs, and the Medium settings, so Hermes knows how to list your channels, upload media, and create posts without any custom code.

  • ✓Install the Postiz CLI (npm install -g postiz) and add the skill with npx skills add gitroomhq/postiz-agent
  • ✓Hermes loads skills from ~/.hermes/skills and shows them with hermes skills list
  • ✓Authenticate with POSTIZ_API_KEY, or run postiz auth:login for an OAuth device flow
  • ✓Every Postiz command returns JSON, so Hermes can chain discovery, upload, and posting
  • ✓Prefer MCP? Add https://mcp.postiz.com/mcp-oauth-dynamic under mcp_servers in ~/.hermes/config.yaml

Install Postiz

# Install the Postiz CLI and skill
npm install -g postiz
npx skills add gitroomhq/postiz-agent

# Authenticate: API key or OAuth device flow
export POSTIZ_API_KEY=your_api_key
# or: postiz auth:login

# Confirm Hermes can see the skill
hermes skills list

Medium Publishing with Hermes Agent

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

🧠

From Any Chat App

Telegram, Discord, Slack, WhatsApp, Signal

Send a message to Hermes Agent from your favorite chat app. Its gateway runs in the background, 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.

Hermes Agent

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

Hermes: I'll handle that! Let me:
  1. Find your Medium integration
  2. Compose your post content
  3. Schedule for tomorrow 9:00 AM

  Done! Post scheduled successfully.
  Post ID: abc-123
🧠

Scheduled & Proactive

Built-in Hermes cron jobs

Hermes Agent has a built-in cron scheduler. Create a recurring job in plain language and Hermes drafts and schedules your Medium content through Postiz on that schedule, then reports back to whichever chat you use.

Hermes cron job

# From the terminal
hermes cron create "weekdays at 9am" \
  "Check ~/content/medium for new posts.
   Upload any media with postiz upload,
   then schedule each one to Medium
   for noon today via Postiz. Move posted
   files to ~/content/published."

# Or from any chat with Hermes
/cron add "weekdays at 9am" "Schedule
  today's Medium post via Postiz"

Why Hermes Agent + Postiz for Medium

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

  • ✓Hermes Agent is MIT licensed and Postiz has a public API, so nothing is locked in
  • ✓Chat-first: ask for a Medium post from Telegram, Discord, Slack, WhatsApp, or Signal
  • ✓Cron jobs in plain language for hands-free recurring Medium posts
  • ✓Cross-post to Medium and other channels in one request, each with its own settings
  • ✓Model-agnostic: run Hermes on Nous Portal, OpenRouter, OpenAI, or your own endpoint
  • ✓Credentials stay in Postiz; Hermes only holds a Postiz API key or OAuth session

SKILL.md (what Hermes reads)

---
name: postiz
description: Postiz is a tool to schedule
  social media and chat posts to 28+
  channels including Medium
homepage: https://docs.postiz.com/public-api/introduction
---

# Commands Hermes can run
postiz auth:status
postiz integrations:list
postiz integrations:settings <id>
postiz upload <file>
postiz posts:create -i <id> -c "..." -s <iso>
postiz posts:list
postiz analytics:platform <id>

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

Using a different agent for Medium?

Postiz works with any AI agent that can run CLI commands or call MCP tools, and the Medium settings on this page are the same for every agent. Read the same guide for Claude Code, OpenClaw, Codex. Or see the guide for any AI agent and the Postiz MCP server.

Medium + Other Platforms

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

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

What can you ask Hermes Agent to do on Medium?

You can ask Hermes Agent to create, schedule, cancel, and measure Medium posts in plain language. These are the kinds of requests it handles through Postiz.

Ask Hermes Agent

> Publish my draft in ~/posts/agents.md to Medium under our publication with the tags AI and Automation, tomorrow at 9am.

Hermes reads the file, sets title, publication, and tags, and schedules the article.

Ask Hermes Agent

> Cross-post this blog article to Medium with the canonical URL pointing back to our site.

Hermes sets canonical to your original URL so search engines credit the source.

Ask Hermes Agent

> Which Medium publications can I publish to from Postiz?

Hermes fetches your publications through postiz integrations:trigger and lists them.

Medium rules Hermes Agent has to follow

Postiz validates every Medium post before it is scheduled, so these limits and required settings decide whether a request succeeds.

  • ▸title is required and must be at least 2 characters. The post content is the article body.
  • ▸Postiz accepts up to 4 tags per Medium article, passed as value/label pairs.
  • ▸Set canonical when the article first appeared elsewhere so Medium points search engines to the original.
  • ▸publication is a publication ID. Ask Hermes to list your publications if you are unsure which one to use.

Hermes Agent and Medium: frequently asked questions

Can Hermes Agent publish articles to Medium?

Yes. With the Postiz skill installed, Hermes Agent creates and schedules Medium articles with a title, subtitle, tags, and optional publication and canonical URL. It can read the draft from a file or write it for you. You ask in plain language from any chat Hermes is connected to and it runs the Postiz commands.

How do I connect Medium to Hermes Agent?

Connect your Medium account in the Postiz dashboard, then install the Postiz skill in Hermes with npx skills add gitroomhq/postiz-agent and set POSTIZ_API_KEY. Hermes finds the Medium channel with postiz integrations:list. Your Medium token stays in Postiz; Hermes only holds the Postiz API key.

Can Hermes Agent publish to a Medium publication?

Yes. The publication setting takes a publication ID. Hermes fetches the publications you belong to through Postiz, matches the name you gave, and passes the ID. If you leave it out, the article publishes on your personal Medium profile instead.

How does Hermes Agent handle canonical URLs on Medium?

When you say the article was first published elsewhere, Hermes sets the canonical field to that original URL. Medium then adds a canonical link so search engines treat your site as the source, which protects your SEO when you syndicate blog posts to Medium.

Can Hermes Agent publish to Medium on a schedule?

Yes. Hermes Agent has a built-in cron scheduler. Run hermes cron create "every wednesday 9am" with a prompt such as "publish the newest file in ~/posts/ready to Medium via Postiz with canonical set to our blog". Hermes runs it unattended and confirms in your chat.

Start publishing to Medium

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