Proprietary AI Tools

Douyin Opens Its Account Controls to the Command Line: The Official CLI Posts for You but Withholds View Counts

December 6, 20262 views阅读中文原文
Douyin Opens Its Account Controls to the Command Line: The Official CLI Posts for You but Withholds View Counts

On December 3, Douyin's Open Platform released douyin-open-cli, an official command-line tool. Two companion CLIs shipped with it: one for AI avatars, one for interest cards.

It is the first time Douyin has opened its account layer at the shell. After a QR-code login, an AI agent can list your videos, pull the transcript of a competitor's clip, upload a video and publish it, then read and answer comments.

The trade-off is blunt. A single scan keeps you logged in for one day, and the tool will not hand over view counts.

This article is compiled from multiple media reports, together with Douyin's own installation guide. The guide is publicly reachable and covers commands, installation and updates verbatim. Details such as the one-day login and the personal-account-only limit come from IT之家 and third-party setup write-ups that actually ran the tool; the guide does not spell out every one of them.

TL;DR

  • What it is: an official Douyin command-line tool, shipped with a Skill written for AI agents to read.
  • When: announced December 3, with tutorials spreading across the developer community by December 4.
  • What it costs: nothing. Official endpoints, no third-party API bills.
  • What it covers: nine modules and 37 subcommands, per third-party breakdowns, spanning videos, search, publishing, comments, profile, history and AI avatars.
  • The big catch: the login expires after one day, and the response payload has no view count or completion rate.

In one line: it hands "publish" and "fetch" to your AI. It does not hand over "review the numbers."

What it actually is

douyin-open-cli is the official command-line tool from Douyin's Open Platform. Install it, type douyin-open-cli in a terminal, and every command returns JSON.

It is not designed for people. It is designed for models. The official guide is explicit: read the subcommand reference from the Skill on demand. In other words, the command documentation is written to be consumed by an agent.

The installer puts the binary at ~/.local/bin/douyin-open-cli and the Skill at ~/.agents/skills/douyin-open-cli/. No Node.js. No admin rights.

Why this is different from the old "Douyin automation"

There used to be three ways to make an AI post for you: a browser extension that injects code, scripted clicks on the UI, or a purchased third-party API. All three share one flaw. A redesign breaks them, and the account can get flagged.

This runs on Douyin's own OAuth. Scan, approve, receive a session, and every call afterwards goes through official endpoints.

DimensionOld third-party routeOfficial CLI
AuthorizationPassword, cookies, simulated loginQR OAuth in the Douyin app
StabilityBreaks on any redesignOfficial endpoints, version check built in
Data scopeReverse-engineered, ban riskOfficial scope, stated up front
CostPay per callFree
RiskAccount flagged as abnormalNormal calls within granted scope

The difference is not how many features exist. It is whether the door is official. Going through the front door means Douyin owns the transaction. Ask yourself one question: if something goes wrong, who stands behind the account?

What it does: three features that actually add something

Nine modules and 37 commands sounds like a lot. In daily work, the gain concentrates in three places.

One, video text. The old workflow for breaking down a competitor's clip was: download, extract audio, run speech-to-text, then proofread. Douyin now returns the transcript directly, and the quality beats generic speech recognition because the platform produces it. That line item drops from a few cents per video to zero.

Two, video publish. Upload the file, attach a cover, set title and hashtags, choose visibility, all from the shell without opening a browser. For teams running a content matrix, the step everyone hates is "edit, then upload by hand." That step disappears.

Three, history. Exported watch history, past comments and search terms are things third-party APIs cannot reach. Scrolling through Douyin and liking a hit now becomes one command that returns structured JSON, ready to feed a model as a topic bank.

The rest looks like this:

ModuleRepresentative commandsWhat it solves
Video queriesvideo list / get / textPage through your catalog, batch-fetch details, get transcripts
Content searchsearch video / users / image-textSite-wide trend search, sortable by likes and time
Upload and publishvideo upload / publishPush video and cover, publish directly
Commentscomment list / create / replyPull comments and replies, post comments
Profileuser profile / follower-countRead profile and follower count
Historyhistory video / live / searchExport watch, livestream and search history
AI avataravatar create / voiceBuild a digital avatar, clone a voice
Authauth login / status / logoutQR login, scope check, logout

How to use it: three install paths, one login command

The recommended install is slightly counterintuitive. Paste the guide link into your AI agent and let it download the tool, fix PATH, deploy the Skill and walk you through the scan.

The exact sentence to give the agent, plus the link:

Install the Douyin Open CLI and Skill by following this guide, then walk me through login:
https://lf-aihub.douyinpic.com/obj/developer/douyin-open-cli/douyin-open-cli-installation-guide.md

If you would rather not let an agent touch your machine, install by hand. On macOS and Linux:

tmp_dir="$(mktemp -d)"
curl --fail --location --proto '=https' --proto-redir '=https' \
  'https://lf-aihub.douyinpic.com/obj/developer/douyin-open-cli/install.sh' \
  --output "$tmp_dir/install.sh" &&
sh "$tmp_dir/install.sh"
export PATH="$HOME/.local/bin:$PATH"

On Windows, run install.ps1 in PowerShell. The -AddToPath flag only appends to the user-level PATH.

Then log in:

douyin-open-cli auth login

The terminal returns a path to a QR image. Scan it with the Douyin app. When an agent drives the flow, the non-blocking pair is steadier: auth login --begin returns the code, the user scans, then auth login --complete finishes.

How write operations are guarded

Every write command requires explicit user confirmation and a --yes flag before it executes. Add --dry-run to preview the request first.

That design deserves its own paragraph. Handing an account to an AI is scary not because the model cannot work, but because it works too eagerly. --dry-run shows the file path, title, hashtags, cover source and visibility range before anything ships.

Creating an AI avatar goes further. The tool pauses and surfaces a legal agreement. It will not save authorization until you read it and reply "agree."

What is missing right now

The loudest complaint is data. The current build returns no view count, no completion rate, no 5-second or 2-second retention, no average watch time, and no 7/14/30-day trend or per-video follower gain.

What does that mean in practice? An AI reviewing performance without retention data cannot tell whether viewers left in the first two seconds or whether the clip genuinely brought followers. It gives you correct-sounding generalities.

Two more limits worth knowing early:

  • One account at a time. Anyone running a matrix has to switch logins.
  • No bulk scraping of a competitor's full catalog. Single-video details work; whole-page pulls do not.

For now, treat it as an execution and collection channel: publish, search trends, pull transcripts, sync favorites, reply to comments. Deep analysis still belongs in the creator dashboard.

Pitfalls

The login lasts one day. This is the easiest thing to trip over. Per IT之家 and third-party write-ups, a single scan is valid for 24 hours. Who remembers to rescan a QR code daily? The only workable answer is to build the rescan into your routine.

"command not found" after install. Nine times out of ten it is PATH. Run export PATH="$HOME/.local/bin:$PATH", and add it to .zshrc or .bashrc for permanence. On Windows, reopen the terminal and the agent.

Publishing on the first try. Verify login and scope with video list, rehearse the upload with --dry-run, then publish for real. Reverse that order and your first post is the mistake.

Ignoring the update differences. macOS and Linux check for a new version every 24 hours, download it, verify it and swap the binary without asking. Windows does not support self update; you rerun install.ps1 with -Force. The same script behaves differently on two platforms, so write it down for the team.

Skipping the signature and telemetry review. One developer's security audit noted an ad-hoc signed package, an update manifest served from the same CDN as the binary, and telemetry that reports device identifiers by default. Static checks found no backdoor, but the guide itself says checksums from the same source cannot independently prove trust. If that bothers you, read before you install.

Cost and time

ItemValue
Tool cost$0, direct official endpoints
Install timeAbout 3 to 5 minutes by hand, faster via an agent
Command latencySeconds, including transcripts
Login upkeepRescan every day
Learning curveRead JSON; every command has -h
Hidden costAccount data within granted scope goes to your agent

The expensive part is not money. It is permission. You are handing over an authorization that can post video, reply to comments and read search history. That is roughly an operations assistant's badge. Whether it is worth it depends on how much you trust the agent holding it.

Who it's for

  • Content-matrix teams publishing several videos a day, where manual upload is pure waste.
  • Operators breaking down rival accounts, who need bulk transcripts faster than download-and-transcribe.
  • Creators who want a topic bank built from likes, favorites and search history.
  • Teams already running Codex, Doubao or another shell-capable agent; adding the Skill is enough.

Not a good fit

  • Anyone whose job is ad performance. No views, no completion rate, no follower gain.
  • Enterprise accounts. The current release is personal-account only.
  • People managing several accounts at once. One session, constant switching, worse than manual.
  • Anyone uneasy about data authorization. The scope is wide, and there is no middle setting.

Next step

Take a secondary account and get auth login plus video list working today. Read only.

Once you can see the video list and transcripts, decide whether to grant publish. Do not reverse the order.

Sources

  • Douyin Open CLI official installation guide: https://lf-aihub.douyinpic.com/obj/developer/douyin-open-cli/douyin-open-cli-installation-guide.md
  • IT之家: Douyin launches official CLI tool: https://news.qq.com/rain/a/20261204A0CVWV00
  • Qiniu Cloud news: Douyin CLI install and usage guide: https://news.qiniu.com/articles/douyin-cli-install-usage-guide
  • Douyin Open Platform developer forum: https://developer.open-douyin.com/forum/synthesize/post/6b11b48ad8bbe09fad62690b

Sources

Comments

0 published
Log inorsign up to leave a comment.

Loading comments...