Wink Pings

Handing the Douyin CLI to Grok Bot: 4 Steps to Get It Running, and Login Is the Step Most Likely to Get Stuck

The official Douyin douyin-open-cli 0.0.39 was tested on a Grok Bot cloud computer: send the installation guide, log in via QR code, and query posts and engagement data. The article includes a 4-step checklist, 4 pitfalls, and a tested video.

Douyin has released douyin-open-cli, an official command-line tool for Agents. The current version is 0.0.39. A user tested it successfully on a Grok Bot cloud computer: instead of typing code into a terminal yourself, you send the official installation guide to the Bot and let it install the tool, send the login QR code back into the chat, confirm by scanning it with your phone, and then you can query posts and pull engagement data.

First, the value. It exposes some of Douyin account's capabilities to an Agent. A user unpacked and checked the 0.0.39 installation package: it contains more than 40 subcommands, covering post queries, extracting post captions (video text), video upload and publishing (video upload / publish), checking and replying to comments (comment), V3 search (search), watch and search history (history), checking the current follower count (user follower-count), and Douyin AI avatar management (avatar). For people doing post reviews and data tracking, it saves the back-and-forth of switching dashboards and exporting spreadsheets.

4-step checklist:

  1. Send it the guide and let it install itself
    Send the official installation guide directly to Grok Bot, have it install douyin-open-cli on the cloud computer, and confirm the version is 0.0.39. Official installation guide link: https://lf-aihub.douyinpic.com/obj/developer/douyin-open-cli/douyin-open-cli-installation-guide.md

  2. Use non-blocking login and have it send the QR code into the chat
    After installation, don't run the normal blocking login. Have it run douyin-open-cli auth login --begin and upload the generated QR code image into the chat for you to scan. Just reporting a local path won't work, and a pop-up only on its own screen won't work either.

  3. Scan the code to authorize, then have it complete login
    Scan the code with Douyin and confirm authorization. The authorization will request all default permissions, including publishing, comment replies, and avatars, so take a look before scanning. If you no longer want to use it, you can revoke it anytime with one click in Douyin settings under Authorization Management. After confirming, have it run douyin-open-cli auth login --complete to finish logging in.

  4. Have it read the bundled Skill once, then just tell it what to do
    The official script installs the accompanying Skill in ~/.agents/skills/douyin-open-cli/, but Grok Bot does not automatically read this default directory. After installation, just have it read the SKILL.md inside, or simply ask it to list posts and pull engagement data. The first hurdle with automation tools is often making the Agent know which instruction manual to read.

Testing. A user first got connection, listing posts, and pulling engagement data working. Using the Nov. 26 post about Gemini Pro at half price for Black Friday (originally $200) as a test, it pulled back 1,135 likes, 238 comments, 404 shares, and 886 saves. There are currently no view counts; checking the 0.0.39 binary confirmed that the CLI has not yet connected a video view-count statistics interface. The other features were not tested one by one; after installing, those interested can continue testing.

4 pitfalls.

  1. Login hangs with no response and stays stuck
    Grok Bot's cloud computer usually has no interactive terminal. Running auth login directly will deadlock, and the chat interface also cannot open local image paths. If it hangs, explicitly ask it to switch to --begin to send the image into the chat, and after scanning, finish with --complete.

  2. Command not found
    By default it installs to ~/.local/bin/douyin-open-cli. This cloud computer recognized it in testing, but not every machine will. If you get an error, have it add ~/.local/bin to PATH according to the official instructions.

  3. Don't trust dry runs alone for write operations—review the complete plan first
    The official tool provides --dry-run for local preview, but the official Skill also states that it does not prove the server will accept the parameters. If you later really want it to touch write operations like publishing or comment replies, first have it list the files, target account, final copy, and cover; after you approve, then add --yes to execute. Don't treat the preview as a talisman.

  4. Automatic renewal, environment resets, and architecture limitations
    When the logged-in Access Token expires, it will first automatically try to renew. You only need to reinstall and scan again if renewal fails with an error or the cloud computer is reset and loses credentials. In addition, the official docs explicitly state that the PC device SDK currently does not support Linux ARM64. Linux x86_64 cloud computers like Grok Bot are fine; don't force-install it on ARM cloud hosts.

If you want to connect Douyin to Grok Bot for post reviews or data tracking, bookmark this post and use it to avoid pitfalls during installation. The tool itself isn't complicated; the trouble is that the cloud computer has no interactive terminal. Get the login step right first, and the rest will go smoothly.

发布时间: 2026-12-04 16:32