Automate YouTube with Claude Code
Upload videos, set visibility, add custom thumbnails and tags, manage kids content declarations — just by asking Claude Code.
Please make sure there is always a human in the loop.
Post to YouTube 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 Claude Code:
> Upload demo.mp4 to YouTube as public
with a title and tags, tomorrow at noon
Claude Code: Done! Your YouTube post is scheduled.YouTube-Specific Features
Video Uploads
Hand Claude Code a video file and it uploads it. Supports all major formats including MP4, MOV, AVI, MKV, and WEBM.
Visibility Control
Set videos to public, unlisted, or private. Control who can discover and watch your content from the start.
Kids Content
Declare whether your content is made for kids to comply with YouTube's COPPA requirements. Set per video.
Custom Thumbnails
Upload and attach custom thumbnail images to your videos. First impressions matter — control your click-through rate.
Tags & Metadata
Add tags to improve discoverability. Each tag has a value and label for flexible categorization and SEO.
Scheduled Publishing
Schedule video uploads with precise timestamps. Videos are uploaded and set to publish at your chosen time.
How It Works
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 YouTube Integration
Ask Claude Code whether your YouTube account is connected. It also checks which options the platform supports.
Example conversation
> Is my YouTube account connected to Postiz?
Claude Code: Yes — your YouTube account is connected
and ready. Want me to post something?Upload Your Video & Thumbnail
Upload your video file and optionally a custom thumbnail. YouTube requires media to be accessible via HTTPS. Supports MP4, MOV, AVI, MKV, WEBM, and more.
Example conversation
> Draft a YouTube post about our new
feature launch
Claude Code: Here's a draft for YouTube:
"We just shipped something big..."
Want me to add media and schedule it?Create Your Post
Schedule a YouTube upload with your video, description, title, visibility settings, tags, and optional thumbnail.
Example conversation
> Yes — add screenshot.png and schedule
it for tomorrow at 9am
Claude Code: Done! Scheduled on YouTube for
tomorrow at 9:00 AM.YouTube Settings Reference
Mention any of these in plain language and Claude Code sets them for you. These are the YouTube options it can apply to any post.
| Field | Type | Description |
|---|---|---|
__type | string | Must be "youtube" |
title | string | Video title (2-100 characters) |
type | string | Visibility: "public", "unlisted", or "private" |
selfDeclaredMadeForKids | string | Kids content declaration: "yes" or "no" |
thumbnail | object | Custom thumbnail: {id: string, path: string} |
thumbnail.id | string | Uploaded thumbnail file ID |
thumbnail.path | string | Public URL of the thumbnail image |
tags | array | Video tags: [{value: string, label: string}] |
tags[].value | string | Tag value used internally |
tags[].label | string | Tag display label |
Common Configurations
Ask Claude Code for any of these common YouTube uploading scenarios and it applies the matching settings.
Public Video with Tags
Just ask
> Post it with: Public Video with Tags
Claude Code: Got it. Applying:
title: How to Build a REST API in 10 Minutes
type: public
selfDeclaredMadeForKids: no
tags: Tutorial, API, CodingUnlisted Video with Custom Thumbnail
Just ask
> Post it with: Unlisted Video with Custom Thumbnail
Claude Code: Got it. Applying:
title: Team Meeting Recording - March 2025
type: unlisted
selfDeclaredMadeForKids: no
thumbnail: id=thumb-abc123, path=https://uploads.postiz.com/thumb.jpgKids Content Video
Just ask
> Post it with: Kids Content Video
Claude Code: Got it. Applying:
title: Learn Colors with Fun Animations
type: public
selfDeclaredMadeForKids: yes
tags: Kids, Educational, ColorsPrivate Draft Video
Just ask
> Post it with: Private Draft Video
Claude Code: Got it. Applying:
title: Draft - Upcoming Product Launch
type: private
selfDeclaredMadeForKids: noWhat 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.
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 reads the SKILL.md and learns all Postiz commands
- ✓POSTIZ_API_KEY must be set in environment
- ✓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"YouTube Uploading 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 Youtube about our
new feature launch, schedule for
tomorrow at 9am"
Claude Code: I'll handle that.
Found your Youtube 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 YouTube
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 YouTube 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
- ✓Thumbnails and tags applied automatically based on your instructions
- ✓Cross-post to YouTube + 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 YouTube
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>
# YouTube Settings
title (2-100 chars), type
(public/unlisted/private),
selfDeclaredMadeForKids,
thumbnail, tagsAlso Works with Claude Cowork
Postiz works with any AI agent that can run commands or call MCP tools — you ask, the agent does the work. That includes Claude Cowork, Anthropic's desktop agent — no terminal needed.
Claude Cowork
by Anthropic
Claude Cowork reads the Postiz skill so it knows what it can do, then autonomously discovers your YouTube integration, uploads your video and thumbnail, applies tags and visibility settings, and schedules the upload.
Claude Cowork
> Upload my tutorial video to YouTube
as public with tags "coding" and
"tutorial", schedule for tomorrow
Claude Cowork: Done! Scheduled on YouTube for
tomorrow at 9:00 AM.YouTube + Other Platforms
Schedule the same video to YouTube and other platforms in a single request. Each platform gets its own settings.
Example
> Post "Excited to announce our new feature!" to
YouTube and LinkedIn tomorrow at 9am, then schedule
a daily tip on YouTube every weekday at 10am
Claude Code: Done! Scheduled:
- YouTube + LinkedIn: tomorrow 9:00 AM
- Daily tips on YouTube: Mon-Fri 10:00 AMStart posting to YouTube
Install Postiz Agent and automate your YouTube content strategy with AI-powered scheduling and publishing.
Ready to get started?
Grow your social media presence with Postiz.
Schedule, analyze, and engage with your audience.
Open-source social media scheduling tool
AI Agents