CipherNoct/douyin-cli

基于 Bridge Framework 的抖音全自动评论管理工具。搜索视频、爬取全量评论(含嵌套回复)、AI 智能回复、运营仪表盘。

What it solves

Managing comments on Douyin (the Chinese version of TikTok) across your own accounts is tedious and risky: you need to search videos, read comments, craft natural-sounding replies, avoid posting too fast or too repetitively, and keep track of what you’ve already replied to. This tool automates the whole workflow—from fetching comments to generating and publishing replies—while trying to blend in with real user behavior so your accounts don’t trip platform rate limits or look bot‑like.

How it works

It runs as a local command‑line client (Node.js) that talks to a bridge server. That server connects to your Chrome or Firefox browser via a Tampermonkey userscript, so all requests to Douyin go through the real logged‑in page—carrying your actual cookies and signatures, and using the page’s own fetch. The CLI can search videos, pull comment threads (including new‑only increments), post text or image comments, download videos, and more.

For replies, it uses an LLM (OpenAI‑compatible, Anthropic, or MiMo) through a dedicated engine called ReplyEngine. That engine generates a top‑level comment, a reply to a specific comment, or a batch of replies, using one of seven built‑in personas (rotating automatically) and six reply strategies (questioning, praising, discussing, short, critical, mentioning). It also has a three‑layer context system to reuse successful phrasings and avoid known failure patterns, plus optional video context (text, screenshots, or full video) for multimodal understanding.

A local SQLite database stores events, users, comments, reply corpus, drafts, LLM token usage, and campaign data. The tool enforces human‑like pacing: a risk‑control guard forces a 40–55 second random delay between write actions, and it can simulate real browsing (search, watch, like) interspersed every few comments. It also has a circuit breaker that pauses posting after repeated failures, randomizes request parameters (e.g., browser_version, paste method), and dedupes replies to avoid repetition.

Multi‑account support lets you drive several Douyin accounts through one bridge, with clear rules: read operations rotate across accounts, while writes and account‑specific data require an explicit --account argument.

Who it’s for

People or teams who manage their own Douyin accounts for marketing, community management, or content operations and want to automate comment engagement at scale without triggering platform anti‑bot measures. It requires some comfort with the command line, Node.js, and installing a Tampermonkey userscript.

Highlights

  • ReplyEngine – dedicated comment generation with three modes (comment, reply, batch) and persona binding
  • AI‑personalized replies – 7 personas auto‑rotate, 6 reply strategies, and an AI‑word blacklist to reduce “AI feel”
  • Human‑like behavior – simulated browsing (search → watch → like) mixed into posting, random 40–55s delays, request parameter randomization
  • Multi‑account management – multiple Douyin accounts driven from one bridge, with explicit account routing for writes
  • Image comments – upload and attach images (via browser’s ImageX STS chain) with multi‑image support
  • Draft management – save, list, show, post, delete draft replies
  • Operations dashboard – local HTML visualization of account health and campaigns
  • Persistent memory – SQLite schema v8 stores events, users, comments, corpus, failures, campaigns, LLM usage, and drafts
  • LLM provider auto‑detection – works with OpenAI‑compatible, Anthropic, or MiMo APIs

Related

  • Project
  • Project
  • Project
  • Project