抖音推出面向 AI 智能体的账号、AI 分身与兴趣卡片 CLI
Douyin Launches CLIs for AI Agents to Manage Accounts and AI Avatars
抖音开放平台推出 CLI 工具,让兼容的 AI 智能体管理获授权的个人账号、创建和运营 AI 分身,并构建互动兴趣卡片。账号发布和评论回复等写入操作需用户确认,企业账号暂不支持;douyin-open-cli 提供 --dry-run 预览,登录有效期为两周。兴趣卡片 CLI 要求 Node.js 22 或更高版本,并配合本地技能使用。
正文
Douyin Open Platform announced command-line interface (CLI) tools on December 4, 2026 that give compatible AI agents three capabilities: analyzing and managing authorized personal Douyin accounts, creating and operating AI avatars, and building interactive interest-card projects. They work with general agent platforms that can execute command-line instructions, including Trae and Doubao Work.
Account Analysis and Publishing
The account connection lets an agent retrieve a user’s own posts, analyze content style and performance, identify strengths and areas for improvement, and recommend creation ideas. It can also search Douyin for reference material and organize the results into research for topic development. For retrieval tasks, the same connection can review the user’s own viewing, livestream, search, favorite and like history.
Agents can also prepare actions instead of stopping at recommendations. For a finished video, an agent can upload the material and assemble a title, cover, description and hashtags into a publishing plan, then publish after the user confirms it. For comments, it can retrieve the latest comments and replies, interpret commenters’ intent, and draft responses in the account’s style; those responses are sent only after user confirmation. Enterprise accounts are not supported.
AI Avatars and Interest Cards
The AI Avatar CLI offers two deployment routes. A simple avatar runs on Douyin’s official large model and is hosted by the platform, while a more customized avatar can connect to a developer’s own model service. The avatar can be used in comments, AI chat and private messages, with configurable personas, opening greetings, recommended questions and custom interactions such as quizzes and votes.
Interest cards cover a different creation workflow: building interactive works through conversation. Agents can optimize an existing project or generate a card from a sample or an H5 web project. The separate Interest Card CLI guide specifies Node.js 22 or later and installation of the beta @open-dy/interest-card-cli package from npm, together with a local Skill containing the agent’s operating instructions.
Authorization for that CLI normally uses a browser link to Douyin Creator Center. QR login is available when requested or when link authorization is unavailable, and agents are prohibited from reading or requesting user cookies. After login, the agent lists recently updated projects and asks the user to choose one before pulling that project into a local directory for editing, rather than selecting a project automatically.
Installation and Execution Safeguards
The account and avatar functions use douyin-open-cli. Its installation guide covers both the executable and a companion Skill. On macOS and Linux, the default Skill path is ~/.agents/skills/douyin-open-cli/; the installer can also target Codex’s Skill directory. Users then scan a QR code in Douyin and confirm authorization, while agents can use a nonblocking begin-and-complete flow and display the returned PNG code.
A login remains valid for two weeks and renews automatically while active; expired or logged-out credentials require another login. For douyin-open-cli, write operations require user confirmation and a --yes flag, while --dry-run provides a preview before execution.
The launch announcement listed macOS and Linux on Intel/AMD and ARM devices and said Windows support was planned. The current installation instructions also include Windows PowerShell and ZIP installation on AMD64 and ARM64. On macOS and Linux, ordinary commands check for updates every 24 hours and can replace both the binary and Skill before rerunning the command. Windows does not support self-update and instead uses the PowerShell installer.
Together, those controls define the operating model: agents can research, prepare and execute account work, while users retain authorization, project selection and approval of writes. With enterprise accounts unsupported, the immediate scope is supervised automation for individual account workflows rather than organization-wide deployment.
AI 热点