Publish to Hashnode from Claude Code
Claude Code can publish and schedule Hashnode blog posts through Postiz. Add the Postiz MCP server with one command, sign in with OAuth, and ask Claude Code to publish a markdown file to your Hashnode publication with a title, subtitle, cover image, at least one tag, and a canonical URL, straight from the terminal.
Please make sure there is always a human in the loop.
Last updated: September 2026
How to post to Hashnode from Claude Code
Add the Postiz MCP server to Claude Code once, sign in with OAuth, connect Hashnode 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:
> Publish docs/blog/monorepo-migration.md to my
Hashnode publication with the tag
"TypeScript" and ./assets/cover.png
Claude Code: Done! Hashnode post scheduled
with publication, tag and cover image.What can Claude Code do on Hashnode?
On Hashnode, Claude Code can publish to a chosen publication with a title, subtitle, cover image, canonical URL, and one or more tags.
Blog Publishing
Publish long-form blog posts with full Markdown support. Code blocks, embeds, and rich formatting work out of the box.
Publication Support
Publish posts under your Hashnode publication. Every post requires a publication ID to target the right blog.
Cover Images
Upload and attach cover images to make your posts stand out. Eye-catching visuals drive more clicks from the Hashnode feed.
Canonical URLs
Set canonical URLs for SEO when cross-posting from your original blog. Avoid duplicate content penalties across platforms.
Required Tagging
Hashnode requires at least one tag per post. Tags use tag IDs for precise categorization and improved discoverability.
Scheduled Publishing
Schedule blog posts for future publication with precise timestamps. Build a consistent publishing cadence effortlessly.
How does Claude Code post to Hashnode 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 Hashnode Integration
Ask Claude Code whether your Hashnode account is connected. It also checks which options the platform supports.
Example conversation
> Is my Hashnode account connected to Postiz?
Claude Code: Yes — your Hashnode account is connected
and ready. Want me to post something?Prepare Your Content
Write your blog post in Markdown. Hashnode supports rich formatting including headers, code blocks with syntax highlighting, images, and embedded content. Optionally upload a cover image.
Example conversation
> Draft a Hashnode post about our new
feature launch
Claude Code: Here's a draft for Hashnode:
"We just shipped something big..."
Want me to add media and schedule it?Publish Your Post
Create a post with your content, title, publication, tags, and optional cover image and canonical URL. Remember: publication and at least one tag are required.
Example conversation
> Yes — add screenshot.png and schedule
it for tomorrow at 9am
Claude Code: Done! Scheduled on Hashnode for
tomorrow at 9:00 AM.Hashnode Settings Reference
Mention any of these in plain language and Claude Code sets them for you. These are the Hashnode options it can apply to any post.
| Field | Type | Description |
|---|---|---|
__type | string | Must be "hashnode" |
title | string | Article title (min 6 characters) |
subtitle | string | Article subtitle (min 2 characters) |
main_image | object | Cover image: {id: string, path: string} |
canonical | string | Original URL for SEO canonical link |
publication | string | Publication ID (required) |
tags | array | At least 1 tag: [{value: string (tag ID), label: string}] |
Common Configurations
Ask Claude Code for any of these common Hashnode publishing scenarios and it applies the matching settings.
Basic Blog Post
Just ask
> Post it with: Basic Blog Post
Claude Code: Got it. Applying:
title: Understanding React Server Components
publication: my-publication-id
tags: React, Next.jsFull-Featured Post with Cover Image
Just ask
> Post it with: Full-Featured Post with Cover Image
Claude Code: Got it. Applying:
title: Complete Guide to Node.js Streams
subtitle: Master streams for high-performance I/O
main_image: id=img-abc123, path=https://uploads.postiz.com/streams-cover.png
publication: my-publication-id
tags: Node.js, Backend, TutorialCross-Posted Article with Canonical URL
Just ask
> Post it with: Cross-Posted Article with Canonical URL
Claude Code: Got it. Applying:
title: Why We Migrated to Bun
subtitle: Our experience switching JavaScript runtimes
canonical: https://engineering.mycompany.com/migrating-to-bun
publication: company-blog-id
tags: Bun, JavaScript, DevOpsExample prompts for Hashnode 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.
Find your publication and tags
Claude Code
> Which Hashnode publication and tags do I
have? Publish ./posts/edge-caching.md there
with the closest matching tags
Claude Code: Publication: myblog.hashnode.dev.
Tags matched: Caching, Web Performance.
Ready to publish?Syndicate with canonical
Claude Code
> Publish ./posts/edge-caching.md to Hashnode
with canonical https://example.com/blog/
edge-caching and subtitle "A practical guide"
Claude Code: canonical and subtitle set.
Scheduled on Hashnode.Publish on release, headless
Claude Code
$ claude -p "Write a Hashnode post about the
changes in the latest git tag and publish it
via Postiz with the tag 'Release Notes'."
# Add to your release workflowHashnode limits and gotchas to know
Hashnode has more required fields than most blogging platforms, and Claude Code fills them in for you.
- ✓publication is required. Claude Code can look up your publication ID from Postiz.
- ✓At least one tag is required, and tags are passed as tag ID and label pairs from Hashnode's tag list.
- ✓title must be at least 6 characters; subtitle is optional with a 2 character minimum.
- ✓main_image is the cover image, uploaded through Postiz and passed with id and path.
- ✓canonical points Hashnode at the original article when you syndicate from your own blog.
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 Hashnode 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"Hashnode Publishing 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 Hashnode about our
new feature launch, schedule for
tomorrow at 9am"
Claude Code: I'll handle that.
Found your Hashnode 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 Hashnode
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 Hashnode 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
- ✓Publication ID and tags resolved automatically from your settings
- ✓Cross-post to Hashnode + other platforms in a single session
- ✓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 Hashnode
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>
# Hashnode Settings
title, subtitle, main_image,
canonical, publication, tagsAlso 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 Hashnode integration, uploads your cover image, resolves publication and tag IDs, and publishes the post.
Claude Cowork
> Publish my Node.js streams guide to
Hashnode with a cover image and tags
Claude Cowork: Done! Scheduled on Hashnode for
tomorrow at 9:00 AM.Post to Hashnode and other platforms from Claude Code
One request can schedule the same content to Hashnode 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
Hashnode and Dev.to tomorrow at 9am, then schedule
a daily tip on Hashnode every weekday at 10am
Claude Code: Done! Scheduled:
- Hashnode + Dev.to: tomorrow 9:00 AM
- Daily tips on Hashnode: 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, seeHashnode scheduling features in Postiz.
Hashnode and Claude Code: frequently asked questions
How do I publish to Hashnode from Claude Code?
Add the Postiz MCP server to Claude Code, sign in to Postiz with OAuth, and connect your Hashnode account in Postiz. Then point Claude Code at a markdown file and name a tag. It resolves your publication and tag IDs, uploads the cover image, asks for permission, and publishes or schedules the post.
Why does Hashnode need a publication and a tag?
Hashnode organizes posts under publications and requires at least one tag from its tag list, so Postiz marks publication and tags as required. Claude Code handles this by listing your publications and matching your tag names to Hashnode tag IDs, so you only need to describe the topic in plain language.
Can Claude Code add a cover image and canonical URL to a Hashnode post?
Yes. Reference an image file and Claude Code uploads it through Postiz as main_image. Mention the original URL and it sets canonical so Hashnode credits your blog. Both are optional, but together they make a cross-posted article look and rank like a native one.
Can Claude Code publish Hashnode posts automatically on release?
Yes. Use headless mode, claude -p, in your release workflow with a prompt that asks for a post about the latest tag. Claude Code reads the git history, drafts the article with a title over six characters, sets the publication and a tag, and publishes through Postiz before exiting.
Start publishing to Hashnode
Install Postiz Agent and automate your Hashnode content strategy with AI-powered scheduling and publishing.