xhs-interact

Automate Xiaohongshu comments, replies, likes, and favorites via Python CLI.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/yuymf/xiaohongshu-skills --skill xhs-interact-yuymf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xhs-interact
Source: https://github.com/yuymf/xiaohongshu-skills/tree/main/skills/xhs-interact
Command: npx skills add https://github.com/yuymf/xiaohongshu-skills --skill xhs-interact-yuymf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

自动化执行小红书的互动动作,减少手动操作与等待时间。

Core Features & Use Cases

  • 发表评论、回复评论、点赞、收藏等互动动作的端到端自动化。
  • 支持多账号场景,统一管理并通过 CLI 指令执行。
  • 使用 feed_id 和 xsec_token 获取具体内容并执行相应操作,确保逐步确认与幂等性。

Quick Start

使用 CLI 执行一个示例互动,先列出账号再以 --account 参数执行后续命令。

Frequently Asked Questions about xhs-interact

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Xiaohongshu likes and comments across multiple accounts?

You can automate Xiaohongshu likes and comments across multiple accounts by running Python CLI scripts that execute interactive workflows. Use the command line interface to list accounts and apply the --account parameter to perform actions like posting comments, replying, liking, and bookmarking content.

What is the process for replying to comments and bookmarking feeds on Xiaohongshu automatically?

Automated Xiaohongshu replies and bookmarks work by using feed_id and xsec_token obtained from search or detail views. The CLI scripts enforce content validation and account selection to ensure targeted actions are executed accurately and idempotently.

Do I need Python and uv to run Xiaohongshu interaction automation scripts?

Yes, you need Python 3 and uv installed to run the Xiaohongshu interaction automation scripts. The automation relies on executing Python CLI commands, specifically invoking python scripts/cli.py, to manage and perform the social interactions.

How to get feed_id and xsec_token for executing Xiaohongshu automated actions?

Feed_id and xsec_token are obtained from Xiaohongshu search or detail views. The automation CLI uses these specific identifiers to locate exact content and perform targeted social interactions like commenting, replying, liking, and favoriting.

Can I manage multiple Xiaohongshu accounts for automated social interactions?

Yes, you can manage multiple Xiaohongshu accounts for automated social interactions. The CLI scripts support multi-account scenarios, allowing you to list available accounts and select a specific one using the --account parameter before executing comments, likes, or bookmarks.