Publish to Dev.to from Claude Code
Claude Code can publish and schedule Dev.to articles through Postiz. Add the Postiz MCP server with one command, sign in with OAuth, and ask Claude Code to turn a markdown file into a Dev.to post with a title, cover image, up to four tags, a canonical URL to your blog, and an organization, all from the command line.
Please make sure there is always a human in the loop.
Last updated: September 2026
How to post to Dev.to from Claude Code
Add the Postiz MCP server to Claude Code once, sign in with OAuth, connect Dev.to 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/testing-strategy.md to
Dev.to with ./assets/cover.png as the cover
and tags testing, javascript, webdev
Claude Code: Done! Dev.to article scheduled
with cover image and 3 tags.What can Claude Code do on Dev.to?
On Dev.to, Claude Code can publish articles with a title, cover image, canonical URL, up to four tags, and an organization to publish under.
Developer Articles
Publish technical articles with full Markdown support including code blocks, syntax highlighting, and embedded content.
Organization Posting
Publish articles under your Dev.to organization. Share content on behalf of your team or company with a single setting.
Cover Images
Upload and attach eye-catching cover images to your articles. Stand out in the Dev.to feed with visual content.
Canonical URLs
Set canonical URLs to link back to your original content. Perfect for cross-posting from your personal blog without SEO penalties.
Smart Tagging
Add up to 4 tags per article to reach the right developer audience. Tags drive discoverability on the Dev.to platform.
Scheduled Publishing
Schedule articles for future publication with precise timestamps. Plan your developer content calendar ahead of time.
How does Claude Code post to Dev.to 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 Dev.to Integration
Ask Claude Code whether your Dev.to account is connected. It also checks which options the platform supports.
Example conversation
> Is my Dev.to account connected to Postiz?
Claude Code: Yes — your Dev.to account is connected
and ready. Want me to post something?Prepare Your Content
Write your article in Markdown. Dev.to supports rich formatting including headers, code blocks with syntax highlighting, images, and liquid tags.
Example conversation
> Draft a Dev.to post about our new
feature launch
Claude Code: Here's a draft for Dev.to:
"We just shipped something big..."
Want me to add media and schedule it?Publish Your Article
Create a post with your article content, title, cover image, tags, and optional organization and canonical URL settings.
Example conversation
> Yes — add screenshot.png and schedule
it for tomorrow at 9am
Claude Code: Done! Scheduled on Dev.to for
tomorrow at 9:00 AM.Dev.to Settings Reference
Mention any of these in plain language and Claude Code sets them for you. These are the Dev.to options it can apply to any post.
| Field | Type | Description |
|---|---|---|
__type | string | Must be "devto" |
title | string | Article title (min 2 characters) |
main_image | object | Cover image: {id: string, path: string} |
canonical | string | Original URL for canonical link |
organization | string | Organization ID to publish under |
tags | array | Up to 4 tags: [{value: string, label: string}] |
Common Configurations
Ask Claude Code for any of these common Dev.to publishing scenarios and it applies the matching settings.
Simple Developer Article
Just ask
> Post it with: Simple Developer Article
Claude Code: Got it. Applying:
title: 10 TypeScript Tips You Need to Know
tags: TypeScript, JavaScript, Web Dev, ProgrammingOrganization Post with Cover Image
Just ask
> Post it with: Organization Post with Cover Image
Claude Code: Got it. Applying:
title: Introducing Our New AI Scheduling Tool
main_image: id=img-abc123, path=https://uploads.postiz.com/launch-cover.png
organization: my-org-id
tags: AI, Show Dev, ProductivityCross-Posted Article with Canonical URL
Just ask
> Post it with: Cross-Posted Article with Canonical URL
Claude Code: Got it. Applying:
title: How We Reduced Build Times by 80%
canonical: https://engineering.mycompany.com/build-times
tags: DevOps, CI/CD, PerformanceFull-Featured Article
Just ask
> Post it with: Full-Featured Article
Claude Code: Got it. Applying:
title: Building a Real-Time Dashboard
main_image: id=img-xyz789, path=https://uploads.postiz.com/dashboard.png
canonical: https://myblog.dev/real-time-dashboard
organization: my-team-id
tags: React, WebSockets, Tutorial, JavaScriptExample prompts for Dev.to 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.
Publish under your organization
Claude Code
> Publish ./posts/observability.md to Dev.to
under our company organization with tags
devops, monitoring, programming
Claude Code: organization set, 3 tags added.
Ready to publish, approve?Syndicate with canonical
Claude Code
> Cross-post https://example.com/blog/hooks to
Dev.to with that URL as canonical and the
same cover image
Claude Code: canonical set to the blog URL,
cover image uploaded. Scheduled.Tutorial from a README
Claude Code
> Turn README.md into a Dev.to tutorial titled
"Getting started with Postiz CLI" and
schedule it for Monday 9am
Claude Code: Drafted the article from README.md.
Scheduled on Dev.to for Monday 9:00 AM.Dev.to limits and gotchas to know
Dev.to has a short list of rules that Claude Code follows when it publishes.
- ✓title is required (minimum 2 characters).
- ✓Dev.to allows up to 4 tags per article, passed as value and label pairs.
- ✓main_image is the cover image, uploaded through Postiz first and passed with an id and path.
- ✓canonical tells Dev.to where the article originally appeared; use it when syndicating from your blog.
- ✓organization is an organization ID; Claude Code can list the ones you belong to.
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 Dev.to 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.to articles with the right settings.
- ✓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"Dev.to 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.to integration, and handles the entire publishing workflow autonomously.
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 Devto about our
new feature launch, schedule for
tomorrow at 9am"
Claude Code: I'll handle that.
Found your Devto 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.to automatically — no manual trigger needed.
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 Dev.to
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 Dev.to 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
- ✓Cover images uploaded and attached automatically
- ✓Cross-post to Dev.to + 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 Dev.to
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>
# Dev.to Settings
title, main_image, canonical,
organization, 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 Dev.to integration, uploads your cover image, applies tags and organization settings, and publishes the article.
Claude Cowork
> Publish my React tutorial to Dev.to
under our org with a cover image,
tag it with react and webdev
Claude Cowork: Done! Scheduled on Dev.to for
tomorrow at 9:00 AM.Post to Dev.to and other platforms from Claude Code
One request can schedule the same content to Dev.to 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
Dev.to and Hashnode tomorrow at 9am, then schedule
a daily tip on Dev.to every weekday at 10am
Claude Code: Done! Scheduled:
- Dev.to + Hashnode: tomorrow 9:00 AM
- Daily tips on Dev.to: 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, seeDev.to scheduling features in Postiz.
Dev.to and Claude Code: frequently asked questions
How do I publish to Dev.to from Claude Code?
Add the Postiz MCP server to Claude Code, sign in to Postiz with OAuth, and connect your Dev.to account in Postiz. Then point Claude Code at a markdown file and mention the tags and cover image. It uploads the cover, fills the Dev.to settings, asks for permission, and publishes or schedules the article.
How many tags can Claude Code add to a Dev.to article?
Up to four. Name the tags you want and Claude Code passes them as value and label pairs. If you ask for more than four, it keeps the four most relevant and tells you which ones it dropped. Tags help the article land in the right Dev.to topic feeds.
Can Claude Code publish to a Dev.to organization?
Yes. Ask Claude Code to publish under your organization and it sets the organization field with the ID from Postiz. If you belong to several, ask it to list them first. Without an organization, the article is published under your personal Dev.to profile.
Can Claude Code syndicate my blog to Dev.to with a canonical URL?
Yes. Mention the original URL and Claude Code sets canonical so Dev.to credits your blog as the source. Combine it with a cover image and tags and you have a complete cross-post. Headless mode, claude -p, lets you run this from a publish hook whenever a new blog post ships.
Start publishing to Dev.to
Install Postiz Agent and automate your Dev.to content strategy with AI-powered scheduling and publishing.