Decorative doodle

Post to TikTok from Claude Code

Claude Code can schedule and publish TikTok videos through Postiz. Add the Postiz MCP server with one command, sign in with OAuth, then hand Claude Code a video file and describe the privacy level, whether duets and stitches are allowed, and any branded content disclosure. Postiz uploads and posts it for you.

Setup GuideGitHub

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

Last updated: September 2026

Decorative doodleDecorative doodle

How to post to TikTok from Claude Code

Add the Postiz MCP server to Claude Code once, sign in with OAuth, connect TikTok 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:
> Post ./clips/feature-demo.mp4 to TikTok as
  public, allow duets and comments but not
  stitches, tomorrow at 7pm

Claude Code: Done! TikTok post scheduled for
  tomorrow at 7:00 PM (privacy_level:
  PUBLIC_TO_EVERYONE, stitch: false).

What can Claude Code do on TikTok?

On TikTok, Claude Code can upload a video with a title, set who can view it, toggle duets, stitches, and comments, add branded content disclosures, and choose between direct posting and a draft upload.

🔒

Privacy Controls

Set video visibility to public, friends only, followers only, or private. Control exactly who sees each post.

🎬

Duets & Stitches

Enable or disable duets and stitches per video. Let your audience remix your content or keep it locked down.

🎵

Auto Music

Automatically add background music to your videos with the autoAddMusic setting. Perfect for quick clips.

📢

Branded Content

Toggle branded content and organic branded content disclosures to stay compliant with TikTok's policies.

🤖

AI Disclosure

Mark videos as AI-generated to comply with TikTok's transparency requirements for AI-created content.

📅

Scheduled Posting

Schedule videos with precise timestamps. Use DIRECT_POST for immediate publishing or UPLOAD for draft mode.

How does Claude Code post to TikTok 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.

1

Find Your TikTok Integration

Ask Claude Code whether your TikTok account is connected. It also checks which options the platform supports.

Example conversation

> Is my TikTok account connected to Postiz?

Claude Code: Yes — your TikTok account is connected
  and ready. Want me to post something?
2

Upload Your Video

Upload your video file to get a public URL. TikTok requires media to be accessible via HTTPS. Supports MP4, MOV, AVI, MKV, WEBM, and more.

Example conversation

> Draft a TikTok post about our new
  feature launch

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

Create Your Post

Schedule a TikTok post with your video, caption, hashtags, and platform-specific settings like privacy level, duet/stitch permissions, and content disclosures.

Example conversation

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

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

TikTok Settings Reference

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

FieldTypeDescription
privacy_levelstringWho can view: PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR, SELF_ONLY
titlestringVideo title (max 90 characters)
duetbooleanAllow duets on this video
stitchbooleanAllow stitches on this video
commentbooleanAllow comments on this video
autoAddMusicstringAuto-add music: yes or no
brand_content_togglebooleanBranded content disclosure
brand_organic_togglebooleanOrganic branded content
video_made_with_aibooleanAI-generated content disclosure
content_posting_methodstringDIRECT_POST or UPLOAD (draft)

Common Configurations

Ask Claude Code for any of these common TikTok scenarios and it applies the matching settings.

Public Video with Full Interactions

Just ask

> Post it with: Public Video with Full Interactions

Claude Code: Got it. Applying:
  privacy_level: PUBLIC_TO_EVERYONE
  title: My Awesome Video
  duet: yes
  stitch: yes
  comment: yes
  autoAddMusic: no
  brand_content_toggle: no
  brand_organic_toggle: no
  video_made_with_ai: no
  content_posting_method: DIRECT_POST

Branded Content Post

Just ask

> Post it with: Branded Content Post

Claude Code: Got it. Applying:
  privacy_level: PUBLIC_TO_EVERYONE
  title: Partnership with Brand
  duet: no
  stitch: no
  comment: yes
  autoAddMusic: no
  brand_content_toggle: yes
  brand_organic_toggle: yes
  video_made_with_ai: no
  content_posting_method: DIRECT_POST

AI-Generated Content

Just ask

> Post it with: AI-Generated Content

Claude Code: Got it. Applying:
  privacy_level: PUBLIC_TO_EVERYONE
  title: AI Generated Art
  duet: yes
  stitch: yes
  comment: yes
  autoAddMusic: yes
  brand_content_toggle: no
  brand_organic_toggle: no
  video_made_with_ai: yes
  content_posting_method: DIRECT_POST

Private Draft (Upload Only)

Just ask

> Post it with: Private Draft (Upload Only)

Claude Code: Got it. Applying:
  privacy_level: SELF_ONLY
  duet: no
  stitch: no
  comment: no
  autoAddMusic: no
  brand_content_toggle: no
  brand_organic_toggle: no
  content_posting_method: UPLOAD

Example prompts for TikTok 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.

Draft upload for review in the app

Claude Code

> Upload ./clips/teaser.mp4 to TikTok as a
  draft so I can add a sound and post it
  from my phone

Claude Code: Set content_posting_method: UPLOAD.
  The video is waiting in your TikTok drafts.

Branded content disclosure

Claude Code

> Post ./clips/sponsor.mp4 to TikTok, followers
  only, mark it as branded content, and turn
  off comments

Claude Code: privacy_level: FOLLOWER_OF_CREATOR,
  brand_content_toggle: true, comment: false.
  Publishing now.

Clip and post from a long recording

Claude Code

> Clip a 30-second highlight from
  ./videos/livestream.mp4 and post it to
  TikTok publicly with the title "Live demo"

Claude Code: Clipped 30s with the Postiz
  clipping tool, title set (under 90 chars).
  Scheduled on TikTok.

TikTok limits and gotchas to know

TikTok requires several explicit choices on every post, and Claude Code fills them from your request or asks.

  • ✓A video file is required; TikTok posts through Postiz are video posts.
  • ✓privacy_level is required: PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR, or SELF_ONLY.
  • ✓duet, stitch, and comment are required booleans. If you do not mention them, Claude Code confirms the defaults before posting.
  • ✓title is optional and limited to 90 characters.
  • ✓content_posting_method must be DIRECT_POST (publish) or UPLOAD (send to drafts). Branded content uses brand_content_toggle and brand_organic_toggle; AI-made videos can be flagged with video_made_with_ai.

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 TikTok 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"

TikTok Posting 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 TikTok about our
  new feature launch, schedule for
  tomorrow at 9am"

Claude Code: I'll handle that.
  Found your TikTok integration.
  Composing and scheduling the post.

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

Parallel 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 simultaneously

Why Claude Code + Postiz for TikTok

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 TikTok 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
  • ✓Branded content disclosures applied automatically when you mention a sponsor
  • ✓Cross-post to TikTok + 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 TikTok
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>

# TikTok Settings
privacy_level, duet, stitch,
comment, autoAddMusic,
brand_content_toggle,
content_posting_method

Also 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.

C

Claude Cowork

by Anthropic

Claude Cowork reads the Postiz skill so it knows what it can do, then autonomously discovers your TikTok integration, uploads your video, applies privacy and interaction settings, and schedules the post.

Claude Cowork

> Post my demo video to TikTok as public
  with duets enabled, schedule for tomorrow

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

Post to TikTok and other platforms from Claude Code

One request can schedule the same content to TikTok 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
  TikTok and YouTube tomorrow at 9am, then schedule
  a daily tip on TikTok every weekday at 10am

Claude Code: Done! Scheduled:
  - TikTok + YouTube: tomorrow 9:00 AM
  - Daily tips on TikTok: Mon-Fri 10:00 AM

See 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, seeTikTok scheduling features in Postiz.

Privacy Levels

Public

PUBLIC_TO_EVERYONE

Friends

MUTUAL_FOLLOW_FRIENDS

Followers

FOLLOWER_OF_CREATOR

Only You

SELF_ONLY

TikTok and Claude Code: frequently asked questions

How do I post to TikTok from Claude Code?

Add the Postiz MCP server to Claude Code, sign in to Postiz with OAuth, and connect your TikTok account in Postiz. Then ask Claude Code to post a specific video file, stating the privacy level and any permissions. It uploads the video through Postiz, sets the required TikTok fields, and schedules the post.

Can Claude Code send a TikTok video to drafts instead of posting it?

Yes. Ask for a draft and Claude Code sets content_posting_method to UPLOAD, which sends the video to your TikTok drafts so you can add sounds or effects in the app before publishing. DIRECT_POST publishes at the scheduled time without a manual step.

Which TikTok privacy levels can Claude Code set?

Four levels are supported: PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR, and SELF_ONLY. Describe the audience in plain words, such as followers only or just me, and Claude Code maps it to the right value. The privacy level is required on every TikTok post.

Can Claude Code disclose branded or AI-generated content on TikTok?

Yes. Ask Claude Code to mark the post as branded content and it sets brand_content_toggle, or brand_organic_toggle for your own brand. If the video was made with AI, ask it to set video_made_with_ai so TikTok labels it correctly. These flags are applied before the video is published.

Can Claude Code clip a long video for TikTok?

Yes, when connected over the custom Postiz MCP link. The MCP server includes a clipping tool that cuts highlights from a long recording, so Claude Code can clip a 30-second moment and post it to TikTok in one request. The Claude.ai directory connector lacks clipping and media generation.

Start posting to TikTok

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