Install
openclaw skills install @hnc87/douyin-auto-hnc抖音内容自动化运营技能。跨平台(Windows/macOS/Linux),一键安装,自动 clone 后端代码并配置,流水线执行:抓取AI量化视频→AI改写→发布长图文→自动回复评论。支持 Cron 定时任务。
openclaw skills install @hnc87/douyin-auto-hnc# 1. 安装 skill(自动安装所有依赖)
clawhub install douyin-auto-hnc
# 2. 全自动引导(自动 clone 后端 + 配置路径 + 健康检查)
python ~/.qclaw/skills/douyin-automation/scripts/setup.py
macOS/Linux 用户:路径为
~/.qclaw/skills/douyin-automation/scripts/setup.py
安装 skill → setup.py (自动 clone 后端) → start-backend.py (启动服务)
↓
run-pipeline.py (执行发布)
clawhub install douyin-auto-hnc
python ~/.qclaw/skills/douyin-automation/scripts/setup.py
setup.py 自动完成:
douyin-agent-master 后端代码到 ~/douyin/~/.openclaw/douyin-creator-tools/CONFIG.mdpython ~/.qclaw/skills/douyin-automation/scripts/start-backend.py
--remote-debugging-port)# 正式运行
python ~/.qclaw/skills/douyin-automation/scripts/run-pipeline.py
# 试运行(不实际发布)
python ~/.qclaw/skills/douyin-automation/scripts/run-pipeline.py --dry-run
# 禁用 AI 优化(直接发布原始内容)
python ~/.qclaw/skills/douyin-automation/scripts/run-pipeline.py --no-ai
# 抖音运营流水线,每 6 小时执行
openclaw cron add "DOUYIN-PIPELINE-6H" \
--cron "0 */6 * * *" \
--message "执行: python ~/.qclaw/skills/douyin-automation/scripts/run-pipeline.py"
# 抖音评论回复,每 30 分钟执行
openclaw cron add "DOUYIN-COMMENTS-30M" \
--cron "*/30 * * * *" \
--message "执行: python ~/.qclaw/skills/douyin-automation/scripts/run-pipeline.py --comments-only"
GitHub: HNC87/douyin-agent-master
↓ clone 到 ~/douyin/
↓
douyin-agent-master/backend/ (FastAPI :8080)
douyin-agent-master/orchestrator/douyin_full_orchestrator.py
↓
douyin-creator-tools/
publish-douyin-article.mjs → 发布到抖音
export-douyin-comments.mjs → 导出未回复评论
reply-douyin-comments.mjs → 自动回复
↓
OpenClaw Gateway (http://127.0.0.1:28789)
→ AI 改写内容(openclaw/default 模型)
必须提前准备(setup.py 无法自动化):
可选(提高自动化程度):
所有路径集中在 ~/.qclaw/skills/douyin-automation/CONFIG.md:
| 键 | 默认值 | 说明 |
|---|---|---|
chrome_cdp_port | 9222 | Chrome 调试端口 |
agent_port | 8080 | FastAPI 后端端口 |
openclaw_gateway | http://127.0.0.1:28789 | AI 网关地址 |
douyin_home | ~/douyin | 项目根目录 |
重新配置:
python ~/.qclaw/skills/douyin-automation/scripts/setup.py
| 问题 | 解决 |
|---|---|
| "No items to publish" | 确认 douyin-agent 已抓取并改写视频内容到 DB |
| "CONFIG.md not found" | 运行 python scripts/setup.py |
| Chrome CDP 连接失败 | 确保 Chrome 已退出,重新运行 start-backend.py |
| AI 改写失败 | 检查 OpenClaw Gateway 是否运行 |
| 登录态失效 | 重新用 Chrome 扫码登录 creator.douyin.com |
clawhub update douyin-auto-hnc