Skip to content

About

TikTok skills for your agents

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

🎵 TikTok AI Plugin

License: MIT Claude Code Agent Plugins Skills TypeScript

Your TikTok, driven from the terminal by Claude Code, Codex, Cursor, Copilot CLI or any agent that runs shell commands.

TikTok AI Plugin signs in with your own browser session and uses the same web flows tiktok.com and TikTok Studio use. No TikTok API app, no Apify, no Groq, no cloud renderer: only npm, Python, ComfyUI, Homebrew and open-source packages running on your machine.

Every write is a dry run until you approve the exact post. There are no like, follow or DM commands, by design.

Status: phase 2. The tiktok operator does login, reads and publishing. A private video and a private photo carousel have been published end to end on a real account; non-private posts, the AI label and the disclosure toggle still need --experimental until each has passed live. The other skills below are planned and marked so.


🧰 The Essentials Kit (Features)

📱 1. TikTok (The Operator)

The client every other skill stands on.

  • Cookie login: Chrome opens with a dedicated profile, you sign in (2FA is fine), and the session cookies are captured through the local DevTools protocol. You can also import cookies from Cookie-Editor JSON, cookies.txt or a raw Cookie: header.
  • Reads: profiles, videos, a single video and its comments, from the data the web pages embed first. Every result says which source answered and whether it is complete.
  • Publishing: videos and photo posts through TikTok Studio's own web flow in your Chrome. Every post is a dry run first and needs your yes; the attempt is recorded before Post is clicked, and an unclear outcome stays open so nothing is posted twice. Private video and private photo posts are verified live; other variants are --experimental.

✍️ 2. TikTok Content (The Writer)

Hooks, scripts and captions that sound like a person. The hook triple (spoken line, on-screen text, first visual) scored offline; caption linting with TikTok's limits (2,200 characters, the cut before "more", photo-post title and description); beat sheets; an AI-tell and slop check. Publishing goes through the operator's dry run.

🔎 3. TikTok Audit (The Analyst)

Your account against its own median. From the operator's reads: medians, engagement rate over plays, videos vs photo posts, length buckets, cadence, hashtags, hits and misses, and a 12-item profile score. It says "sample of N posts" unless the operator read the whole list.

🕵️ 4. TikTok Research (The Detective)

What works in your niche. From hashtag, sound and profile pages you open: per-creator outliers (3x the creator's own median, at least 8 posts), sounds and hashtags recurring across winners, and a trend fit check.

💰 5. TikTok Ads (The Strategist) (planned)

Monetization and Promote, read-only advice. You create campaigns in the app or Ads Manager.

🎬 6. TikTok Video Breakdown (The Editor)

Any TikTok into shots and script. The video from a capture of your own Chrome through a guarded downloader (or a local file with fetch --file), cuts and pacing with ffmpeg, per-shot frames, TikTok's own caption track or your local speech model, and a shot list, script and per-shot production plan.

🎭 7. TikTok Video Remake (The Director) (planned)

Replace one person in a video you may remake with MiniMax H3 in a local ComfyUI, 1080x1920.

🧳 8. TikTok Travel Studio (The Producer) (planned)

Your travel backlog into drafts. Local drafts.json of clips and photo posts; it never publishes on its own.

⚠️ Read this first: account risk

This plugin uses TikTok's web endpoints with your own session. That is how your browser talks to TikTok, but it is not an official API, and automated use may break TikTok's Terms of Service. TikTok can rate-limit, challenge or restrict accounts it believes are automated. The plugin is built to stay conservative:

  • Every write is a dry run until you approve the exact post.
  • Requests are spaced at least 1.5 s apart. On HTTP 429, a captcha, a verification page or "too many attempts" the CLI stops, marks the account and never retries in a loop; resume clears it once you have dealt with it in the browser.
  • There are no like, follow, unfollow, DM or delete commands.
  • Cookies are stored only in a folder locked to your user (icacls on Windows, 0700/0600 elsewhere). If that lock fails, nothing is saved. Cookie values are never printed.

Use a test account first. You are responsible for how you use your account.


🚀 Quick Start

Requirements

  • Node.js (for npx). Bun is fetched on demand by npx -y bun, with zero npm dependencies.
  • Google Chrome, Chromium or Edge for login, or an exported cookie file.
  • ffmpeg and ffprobe for the video skills (planned); a local ComfyUI with MiniMax H3 for the remake.

Standards

This plugin follows the Agent Plugins v1.0.0 packaging standard (root plugin.json) and every skill follows the Agent Skills spec (skills/<name>/SKILL.md). It also ships the Claude Code manifests (.claude-plugin/plugin.json, .claude-plugin/marketplace.json) and the Codex manifests (.codex-plugin/plugin.json, .agents/plugins/marketplace.json). Run bash scripts/check-manifests.sh to confirm they agree.

Installation

Option 1: CLI Install (Recommended)

Use npx skills to install skills directly:

# Install all skills
npx skills add proyecto26/tiktok-ai-plugin

# Install specific skills
npx skills add proyecto26/tiktok-ai-plugin --skill tiktok

# List available skills
npx skills add proyecto26/tiktok-ai-plugin --list

Option 2: Claude Code Plugin

# Add the marketplace
/plugin marketplace add proyecto26/tiktok-ai-plugin

# Install the plugin
/plugin install tiktok-ai-plugin

Option 3: Codex / Cursor / Copilot CLI (Agent Plugins)

Host Install
OpenAI Codex codex plugin marketplace add proyecto26/tiktok-ai-plugin then codex plugin add tiktok-ai-plugin@tiktok-ai-plugin-marketplace (or pick it from /plugins)
GitHub Copilot CLI copilot plugin marketplace add proyecto26/tiktok-ai-plugin then copilot plugin install tiktok-ai-plugin@tiktok-ai-plugin-marketplace
Cursor Settings → Plugins → install from Git URL https://github.com/proyecto26/tiktok-ai-plugin

Skills are discovered from skills/, so adding a skill is a one-directory change.

Option 4: Clone and Copy

git clone https://github.com/proyecto26/tiktok-ai-plugin.git
cp -r tiktok-ai-plugin/skills/* .claude/skills/

Option 5: Git Submodule

git submodule add https://github.com/proyecto26/tiktok-ai-plugin.git .claude/tiktok-ai-plugin

Then reference skills from .claude/tiktok-ai-plugin/skills/.

Option 6: Fork and Customize

  1. Fork this repository
  2. Customize the skills for your brand and niche
  3. Clone your fork into your projects

Authentication

Just tell your agent:

"Log me into TikTok"

Chrome opens with a dedicated profile. Sign in and the CLI picks up the session cookies. Or run it yourself:

npx -y bun skills/tiktok/scripts/main.ts login     # Chrome opens; sign in
npx -y bun skills/tiktok/scripts/main.ts status    # session state, cookie names only

Sessions expire. If a command answers auth, run login again.

🧪 Development

cd test
npm install                     # dev-only: typescript + types
npx tsc --noEmit
npx -y bun test unit            # offline; network is trapped in the CLI tests
bash ../scripts/check-manifests.sh

🚧 Known Limitations

  • Publishing is partly experimental. Private video and private photo posts have passed live; non-private posts, the AI label and disclosure need --experimental. The page is checked against the approval by caption, privacy and toggles; a video by file name (a different file with the same name would pass), photos by the exact bytes given to the page's file input plus a visual fingerprint of each editor thumbnail (a close re-edit dropped into the editor could pass). The page must show no location. Studio rows carry no post id, only text and a minute, so another post with the same text in the same window could settle an attempt whose own Post failed: post nothing else with matching text until it is settled. The cover is left at TikTok's default: look at the preview before Post. Files over 10 MB are picked in the page by you.
  • Hashtag and sound reads cover what the page showed you. A capture is the posts loaded while you scrolled, so research results are a sample ("in the posts read"). No search reads, and no scheduling (Studio blocks scheduling for private posts).
  • Transcription is local only. The breakdown uses TikTok's caption track when the post has one, else a speech model on your machine; no cloud transcription.
  • Breakdown downloads come from your capture. When the capture has no playable URL, download the video yourself and use fetch --file. yt-dlp is not wired in yet. Photo posts cannot be broken down yet (photo_post).
  • Private endpoints change. Field names and page data can move; every read reports its source.
  • No TikTok analytics API. Watch time, traffic sources and follower growth live in TikTok Studio's analytics and are not estimated.

🌟 Star History

Star History Chart

💜 Sponsors

This project is free and open source. Sponsors help keep it maintained and growing.

Become a Sponsor | Sponsorship Program

🤝 Contribution

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated ❤️.

You can learn more about how you can contribute to this project in the contribution guide.

⚖️ License

This repository is available under the MIT License.

👍 Credits

See THIRD_PARTY_NOTICES.md. Not affiliated with, endorsed by, or sponsored by TikTok or ByteDance.

Happy vibe posting 💯

Made with ❤️ by Proyecto 26 - Changing the world with small contributions.

One hand can accomplish great things, but many can take you into space and beyond! 🌌

Together we do more, together we are more ❤️

About

TikTok skills for your agents

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages