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
tiktokoperator 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--experimentaluntil each has passed live. The other skills below are planned and marked so.
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.txtor a rawCookie: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.
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.
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.
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.
Monetization and Promote, read-only advice. You create campaigns in the app or Ads Manager.
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.
Replace one person in a video you may remake with MiniMax H3 in a local ComfyUI, 1080x1920.
Your travel backlog into drafts. Local drafts.json of clips and photo posts; it never
publishes on its own.
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;
resumeclears 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.
- Node.js (for
npx). Bun is fetched on demand bynpx -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.
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.
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# Add the marketplace
/plugin marketplace add proyecto26/tiktok-ai-plugin
# Install the plugin
/plugin install tiktok-ai-plugin| 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.
git clone https://github.com/proyecto26/tiktok-ai-plugin.git
cp -r tiktok-ai-plugin/skills/* .claude/skills/git submodule add https://github.com/proyecto26/tiktok-ai-plugin.git .claude/tiktok-ai-pluginThen reference skills from .claude/tiktok-ai-plugin/skills/.
- Fork this repository
- Customize the skills for your brand and niche
- Clone your fork into your projects
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 onlySessions expire. If a command answers auth, run login again.
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- 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.
This project is free and open source. Sponsors help keep it maintained and growing.
Become a Sponsor | Sponsorship Program
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.
This repository is available under the MIT License.
- instagram-ai-plugin: the operator, cookie store and CDP login this plugin ports
- marketingskills (MIT, Corey Haines): the marketing skills the content and ads skills adapt
- notebooklm-ai-plugin: Chrome DevTools login helpers
- sherlock-ai-plugin: plugin layout and CDP authentication patterns
See THIRD_PARTY_NOTICES.md. Not affiliated with, endorsed by, or sponsored by TikTok or ByteDance.
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! 🌌