← Back to Skills Marketplace
lancelin111

Douyin-skill

by lance · GitHub ↗ · v0.7.0 · MIT-0
macoslinuxwindows ✓ Security Clean
412
Downloads
0
Stars
2
Active Installs
6
Versions
Install in OpenClaw
/install douyin-skill
Description
Douyin (TikTok China) video uploader & automation tool. Upload videos, manage login sessions, and automate publishing to Douyin Creator Platform. 抖音视频上传工具 |...
README (SKILL.md)

Douyin Video Uploader | 抖音视频上传工具

Douyin (TikTok China) video upload automation — login, upload, and manage your Douyin Creator account from the command line or AI agents.

自动化上传视频到抖音创作者平台,支持登录、上传和账号管理。

Keywords: Douyin uploader, TikTok China, video upload, social media automation, 抖音上传, 抖音自动化, 短视频发布, creator platform

This skill is self-contained — all code is bundled, no external repo cloning needed. 此 skill 为自包含结构,所有代码已打包在内,无需克隆外部仓库。

Important: First Upload Requires SMS Verification | 重要提示:首次上传需要短信验证

After logging in, your first video upload will require SMS verification. Enter the verification code when prompted. After this one-time verification, all subsequent uploads will be fully automated.

登录成功后,第一次上传视频需要短信验证。 按提示输入验证码即可。完成一次验证后,之后的上传将完全自动化,无需再次验证。

Transparency Statement | 透明度声明

Data Storage | 数据存储

  • Cookie file / Cookie 文件: {baseDir}/douyin-cookies.json — Stores Douyin login credentials locally only (file permission: 0600) / 存储抖音登录凭证,仅在本地保存(文件权限:0600)
  • Browser data / 浏览器数据: {baseDir}/chrome-user-data/ — Puppeteer browser session data

Network Access | 网络访问

This tool only accesses official Douyin domains / 本工具仅访问以下抖音官方域名:

  • https://creator.douyin.com — Douyin Creator Platform (login & upload) / 抖音创作者平台(登录、上传)
  • https://www.douyin.com — Douyin main site (permission verification) / 抖音主站(权限验证)

No third-party servers are accessed. Your credentials are never uploaded or leaked. 不会访问任何第三方服务器,不会上传或泄露您的登录凭证。

Code Behavior | 代码行为

  1. login.js: Opens browser → navigates to Douyin login → waits for manual login → saves Cookie locally / 打开浏览器 → 导航到抖音登录页 → 等待用户手动登录 → 保存 Cookie 到本地文件
  2. upload.js: Loads Cookie → auto-login → uploads video → fills title/description/tags → publishes / 读取本地 Cookie → 自动登录 → 上传指定视频文件 → 填写标题/描述/标签 → 发布
  3. manage.js: Read/validate/delete local Cookie files / 读取/验证/删除本地 Cookie 文件

Dependencies | 依赖

  • puppeteer: Browser automation (Chromium) / 浏览器自动化(Chromium)
  • Full dependencies: see package.json in this directory / 完整依赖: 见本目录 package.json

Installation | 安装

First-time setup — install dependencies / 首次使用需要安装依赖:

cd {baseDir} && npm install

Note / 说明: Only installs puppeteer, no external repo cloning needed / 仅安装 puppeteer 依赖,无需克隆外部仓库。

Feature 1: Login to Douyin | 功能一:登录抖音

Login to Douyin Creator Platform and save credentials (Cookie). 登录抖音创作者平台,保存登录凭证(Cookie)。

cd {baseDir} && node scripts/login.js

Process / 流程:

  1. Auto-opens a browser window / 自动打开浏览器窗口
  2. Waits for user to complete login (QR code or password) / 等待用户完成登录(扫码或账号密码)
  3. Saves Cookie automatically after login / 登录成功后自动保存 Cookie

Output example / 输出示例:

✅ Login successful!
User: 用户昵称
Cookies saved: 25

Feature 2: Upload Video | 功能二:上传视频

Upload video to Douyin with title, description and tags. 上传视频到抖音,支持设置标题、描述和标签。

cd {baseDir} && node scripts/upload.js --video "视频路径" --title "视频标题"

Parameters / 参数:

Parameter 参数 Required 必需 Description 说明
--video Yes 是 Absolute path to video file / 视频文件绝对路径
--title Yes 是 Video title / 视频标题
--description No 否 Video description / 视频描述
--tags No 否 Tags, comma-separated / 标签,逗号分隔
--no-publish No 否 Save as draft only / 仅保存草稿

Full example / 完整示例:

cd {baseDir} && node scripts/upload.js \
  --video "/Users/xxx/video.mp4" \
  --title "我的视频" \
  --description "视频描述" \
  --tags "日常,生活,记录"

Output example / 输出示例:

✅ Video upload and publish successful!
Title: 我的视频
Status: Published

Feature 3: Manage Login Status | 功能三:管理登录状态

Check, view or clear login data / 检查、查看或清除登录数据。

Check if login is valid | 检查登录是否有效

cd {baseDir} && node scripts/manage.js check

View Cookie info | 查看 Cookie 信息

cd {baseDir} && node scripts/manage.js info

Clear login data | 清除登录数据

cd {baseDir} && node scripts/manage.js clear

FAQ | 常见问题

Q: "Login expired" error? Q: 提示 "Login expired"?

cd {baseDir} && node scripts/manage.js clear
cd {baseDir} && node scripts/login.js

Q: SMS verification during upload? / Q: 上传时遇到短信验证? The program will prompt you — enter the code as instructed. 程序会自动提示,按提示输入验证码即可。

Q: How long does the Cookie last? / Q: Cookie 有效期多久? About 30 days. Check login status regularly. 约 30 天,建议定期检查登录状态。

Usage Guidance
This package appears to do what it says: automate Douyin login and upload via Puppeteer. Before installing, consider: 1) npm install will fetch dependencies (Puppeteer may download Chromium) — run in an environment with sufficient disk space. 2) The tool stores cookies and browser data locally (douyin-cookies.json and chrome-user-data/) — protect or delete these files if you share the machine. 3) Use an account you control (or a test account) when trying automation that stores credentials. 4) Review the GitHub homepage/source yourself if you want higher assurance and keep dependencies up to date to reduce supply-chain risk. 5) The first upload requires SMS verification as noted — you'll need to enter that code interactively. If you need stronger isolation, run the tool inside a VM or container.
Capability Analysis
Type: OpenClaw Skill Name: douyin-skill Version: 0.7.0 The skill is a legitimate automation tool for uploading videos to Douyin (TikTok China) using Puppeteer. It follows security best practices for local credential storage by applying restricted file permissions (0600) to the 'douyin-cookies.json' file and provides a clear transparency statement regarding data handling. The code logic is straightforward, lacks obfuscation, and contains no evidence of data exfiltration or unauthorized network calls beyond the official Douyin domains (douyin.com and creator.douyin.com).
Capability Assessment
Purpose & Capability
Name/description (Douyin uploader) match the included code, scripts, and declared dependencies. Required binaries (node, npm, Chromium/Chrome) and the single npm dependency (puppeteer) are expected for a browser-automation uploader.
Instruction Scope
SKILL.md instructs running bundled node scripts for login, upload, and management. The scripts use Puppeteer to open Douyin domains, read/write a local cookie file, and store browser user data — all within the stated purpose. The instructions do not request unrelated system files, extra environment variables, or third-party endpoints.
Install Mechanism
Install uses npm to install puppeteer (package.json lists puppeteer ^23.11.1). This is an expected and traceable dependency for browser automation, but npm installs will download packages (and Puppeteer may download a Chromium build) — a moderate supply-chain/install footprint inherent to Puppeteer.
Credentials
No environment variables or external credentials are requested. The skill persists cookies and browser profile data locally (cookies at ./douyin-cookies.json with chmod 0600 and user-data in ./chrome-user-data/) which is proportional to the stated login/session management functionality.
Persistence & Privilege
The skill is not forced-always or privileged. It writes local session files (cookie JSON and browser user-data) into its directory — expected for session persistence but worth noting for users who prefer storing credentials elsewhere or using ephemeral accounts.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install douyin-skill
  3. After installation, invoke the skill by name or use /douyin-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.7.0
**Changelog v0.7.0** - Added full English descriptions, keywords, and instructions to SKILL.md for international users. - Improved multi-language clarity: all features and instructions are now bilingual (English & Chinese). - Added important notice about first-time SMS verification for Douyin video upload. - Updated metadata and skill description for broader discoverability. - Version bump: updated to 2.2.0 in SKILL.md for alignment with new documentation.
v0.6.0
- Skill is now fully self-contained: all code is included, no need to clone external repositories. - All scripts converted to JavaScript and placed in the skill (login.js, upload.js, manage.js). - Simplified dependencies to only require puppeteer; removed extra requirements. - Usage instructions updated: use node scripts instead of tsx, and npm instead of npx. - Installation and transparency documentation updated to reflect the new, standalone structure.
v0.5.0
- Added a new "透明度声明" section to clarify data storage, network access, code behavior, and dependencies. - Explained where cookies and browser data are stored locally and confirmed no third-party access. - Listed all official domains accessed by the tool and reassured users about credential privacy. - Described the responsibilities of each script (login.ts, upload.ts, manage.ts). - Provided a summary of main dependencies and linked to the full dependency list.
v0.4.0
- Added version, allowed-tools, and extended metadata to SKILL.md for improved environment and installation specification. - Included system requirements (Node.js, npm, git, Chrome/Chromium), supported OS, and emoji in metadata. - Specified the installation of the tsx Node.js package and its binary. - No changes to main usage instructions or features; documentation and metadata improvements only.
v0.2.0
- Added metadata section with author, version, and repository links in SKILL.md. - Updated installation instructions: now requires cloning the repository before installing dependencies. - Included official repository and homepage links for reference and security review. - Improved documentation with a security note and clarified setup steps.
v0.1.0
- Initial release of the douyin skill (v0.1.0). - Supports automated login to Douyin Creator Platform and saves login credentials. - Enables video uploads with title, description, and tag options. - Includes commands for checking, viewing, and clearing login data. - Provides troubleshooting tips for common login and upload issues. - Requires Node.js 18+ and Chrome/Chromium browser.
Metadata
Slug douyin-skill
Version 0.7.0
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 6
Frequently Asked Questions

What is Douyin-skill?

Douyin (TikTok China) video uploader & automation tool. Upload videos, manage login sessions, and automate publishing to Douyin Creator Platform. 抖音视频上传工具 |... It is an AI Agent Skill for Claude Code / OpenClaw, with 412 downloads so far.

How do I install Douyin-skill?

Run "/install douyin-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Douyin-skill free?

Yes, Douyin-skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Douyin-skill support?

Douyin-skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (macos, linux, windows).

Who created Douyin-skill?

It is built and maintained by lance (@lancelin111); the current version is v0.7.0.

💬 Comments