Douyin Auth logo

Douyin Auth

Community
zJay26
douyin-auth

管理抖音网页版登录状态、二维码登录、短信验证码登录和本地多账号 Profile。用户要求登录、检查登录状态、添加或切换账号时使用。

Overview

PublisherzJay26
Repositorydouyin-skills
Skill namedouyin-auth
Stars
60
Forks
9
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by zJay26 on GitHub. Read the source before you install it.

Installation

Install the Douyin Auth AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zJay26/douyin-skills/tree/main/skills/douyin-auth
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zJay26/douyin-skills.git /tmp/douyin-skills
mkdir -p .claude/skills
cp -r /tmp/douyin-skills/skills/douyin-auth .claude/skills/douyin-auth
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Douyin Auth in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Douyin Auth on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Douyin Auth is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

管理抖音登录与账号

只使用 python "{baseDir}/../../scripts/cli.py" <子命令>。如果系统只有 python3,替换命令名。不要使用其他抖音登录工具。

先确认账号

用户指定账号时,在子命令前加入 --account <名称>。用户未指定时,CLI 自动使用默认命名账号;需要展示或切换账号时运行:

bash
python "{baseDir}/../../scripts/cli.py" list-accounts

多个账号且用户意图不明确时,展示名称和描述并询问一次。选定后,本次流程保持同一账号。

检查状态

bash
python "{baseDir}/../../scripts/cli.py" check-login
  • CLI 会优先复用已有的本地 Chrome 调试实例和其中的登录会话;已有 headed Chrome 不会因为默认模式偏好被重启。
  • 导航后的短暂验证码/风控中间页会由 CLI 做有限稳定重检;切到 headed 后还会重新读取当前页面,不沿用切换前的旧风险结果。
  • logged_in: true:可以继续。
  • logged_in: false:进入登录流程;退出码 1 不是程序崩溃。
  • action: risk_recovered_after_headed_switch、risk_recovered: true 且 logged_in: true:临时风险状态已经消失,直接继续,不要请用户验证。
  • needs_user_verification: true:浏览器已切为 headed 或已停在验证页,请用户人工处理,不要绕过或连续重试。

二维码登录

  1. 获取二维码:
bash
python "{baseDir}/../../scripts/cli.py" get-qrcode
  1. 将 JSON 的 qrcode_data_url 作为图片展示给用户,不输出到公开日志。
  2. 用户扫码后单次等待:
bash
python "{baseDir}/../../scripts/cli.py" wait-login

wait-login 最多等待 120 秒。超时后重新获取二维码,不要高频轮询。

短信验证码登录

普通手机号页先取得用户明确提供的中国大陆手机号:

bash
python "{baseDir}/../../scripts/cli.py" send-code --phone <手机号>

身份验证页已有绑定手机号入口时,不传手机号:

bash
python "{baseDir}/../../scripts/cli.py" send-code

收到用户提供的 6 位验证码后提交:

bash
python "{baseDir}/../../scripts/cli.py" verify-code --code <6位验证码>

不要在回复中重复完整手机号或验证码;不要保存这些一次性信息。

多账号

bash
python "{baseDir}/../../scripts/cli.py" add-account --name work --description "工作号"
python "{baseDir}/../../scripts/cli.py" set-default-account --name work
python "{baseDir}/../../scripts/cli.py" update-account --name work --description "创作账号"
python "{baseDir}/../../scripts/cli.py" --account work check-login
python "{baseDir}/../../scripts/cli.py" remove-account --name work

每个命名账号使用独立端口和 Chrome Profile。账号名称必须是跨平台有效目录名;重复端口、大小写冲突名称和损坏配置会被拒绝。update-account 只修改描述,remove-account 只移除账号登记并保留 Profile 数据。

边界与失败处理

  • 当前没有公开的强制退出或清除 Cookie 命令;不要承诺代替用户登出。
  • Chrome 未找到时先使用 douyin-env 运行 doctor。
  • 配置损坏时报告具体路径并停止,不要自动重建。
  • 只有 CLI 最终返回 needs_user_verification: true 时,才保留可见浏览器并等待用户处理;标题或风险关键词命中本身不等于需要人工验证。

Frequently asked questions

What does the Douyin Auth AI skill do?

管理抖音网页版登录状态、二维码登录、短信验证码登录和本地多账号 Profile。用户要求登录、检查登录状态、添加或切换账号时使用。

Why use Douyin Auth on TypingMind?

Because you install it once and use it with any model. Douyin Auth is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Douyin Auth in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zJay26/douyin-skills/tree/main/skills/douyin-auth. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Douyin Auth?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Douyin Auth?

As many as you like. As long as a model supports skills, you can use Douyin Auth with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Douyin Auth AI skill free?

Yes. It is published on GitHub by zJay26 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇