Douyin Open Platform on December 3, 2026, announced official command-line tools that let an AI agent connect to a user's Douyin account. After the user authorizes the agent by scanning a QR code in the Douyin app, the agent can review the account's videos, publish posts, and write comments, according to the platform's community announcement and its interface terms. IT之家 reported the announcement on December 4. The community announcement says the tools currently work with personal accounts only, not business accounts.

Key Facts

  • A Douyin Open Platform community post dated December 3, 2026, titled "【重磅】抖音CLI上线,快来用AI打开抖音新玩法!", describes three tools: Douyin CLI, an AI-avatar CLI, and an Interest Card CLI. IT之家, in a December 4 report, cited that post and used the same three-tool split.
  • Official documentation for douyin-open-cli covers installation on macOS, Linux, and Windows, on Intel/AMD and ARM64 machines. The default command is douyin-open-cli. On macOS and Linux the installer places the binary at ~/.local/bin/douyin-open-cli and an agent skill at ~/.agents/skills/douyin-open-cli/. On Windows the default binary path is %LOCALAPPDATA%\douyin-open-cli\bin\douyin-open-cli.exe.
  • Users log in with douyin-open-cli auth login, then scan a QR code in the Douyin app and confirm the authorization. The install guide says write operations require a --yes flag, and that --dry-run can preview a change first. PANews, also reporting on December 4, described the same confirmation and preview steps.
  • The install guide says ordinary commands on macOS and Linux check for a new version every 24 hours through the version API on open.douyin.com, then download and verify a package from the official CDN. Windows builds do not support this self-update path. The official version API at https://open.douyin.com/api/douyin/v1/cli/version/, opened for this article on December 4, 2026, returned "latest_version": "1.0.12".
  • A separate official document titled "抖音CLI开放接口使用说明", with an effective date of December 2, 2026, lists what a third-party tool may access after login: video browsing and interaction records, including views, likes, favorites, and comments; live-watch records; the following list; search history; profile information; and works, including comments and replies used for creative analysis. It also says the user may have the tool publish comments and messages, and may create a Douyin AI avatar, edit the avatar's persona, and let the tool operate the avatar's interactions.
  • That document says users can revoke access in Douyin under Settings, then Authorization Management. After a revocation, the interface stops sending data to that tool, but data the tool already stored must be deleted by asking the tool's operator. It tells users to install the CLI only from official channels, and says the platform does not have an agency, partnership, recommendation, or guarantee relationship with third-party tool developers. If published content was produced with a generative model, the user must label it as AI-generated as required by law. The platform says it may change the interface's scope, fields, or rate limits, or take some or all of it offline.
  • The official Interest Card CLI install guide is a separate package, @open-dy/interest-card-cli@beta, installed from the npm registry and requiring Node.js 22 or later. Login is completed in a browser at Douyin's Creator Center, or by QR code if the user asks for that method. The guide says the Interest Card login state is shared with douyin-ai-cli.
  • The community announcement's FAQ, as presented in the December 3 post and reported by IT之家, says the first phase prioritizes command-line agents such as Codex and Doubao, and that other agents that can run command-line tools may follow the public documentation.

Background

The new CLIs are designed to be installed into an existing AI agent, which then runs the official commands on the user's behalf. The interface terms treat actions the third-party tool takes as the user's own actions, and say the user and the tool bear responsibility if the tool deletes videos, posts improper content, messages other people, or retains or spreads personal information.

The Interest Card CLI is distributed differently from douyin-open-cli. It is an npm package still tagged beta, not the shell installer used for douyin-open-cli, and it completes login through the Creator Center rather than only the Douyin app QR flow.

What We Don't Know Yet

Official community posts have been quoted with two different figures for how long a QR login remains valid. The December 3 post, and IT之家 citing it, said a single scan is valid for one day, after which the user must scan again, and that a later renewal option was under consideration. Another official community post dated December 4 has been quoted as saying the credential is valid for two weeks. The install guide and the December 2 interface terms do not state a validity period. This article does not treat either figure as confirmed, because the live forum pages are rendered in JavaScript and the current FAQ text could not be loaded as static HTML.

The public documents reviewed for this article do not say whether business-account support will be added, and they do not describe a TikTok or international version of these tools.

Secondary reports have mentioned other limits and features, including precise watch-history windows and avatar voice cloning. Those details do not appear in the official documents opened for this article, and are omitted here.

Sources