xiaohongshu-cli

Automate Xiaohongshu note, profile, and user actions via CLI.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/Selaphina/xhs-obs-archiver --skill xiaohongshu-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xiaohongshu-cli
Source: https://github.com/Selaphina/xhs-obs-archiver/tree/main/.agents/skills
Command: npx skills add https://github.com/Selaphina/xhs-obs-archiver --skill xiaohongshu-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Use xiaohongshu-cli to automate Xiaohongshu interactions such as searching notes, reading content, browsing users, liking, collecting, commenting, following, and posting, reducing manual web toil and enabling programmable workflows.

Core Features & Use Cases

  • All-in-one Xiaohongshu control: perform search, read, user browse, like, collect, comment, follow, and post from a single CLI.
  • Flexible authentication & session management: supports browser cookies or browser-assisted QR login for safe, persistent sessions.
  • Automation-ready workflows: ideal for scripting, batch processing, and integration into larger automation pipelines.

Quick Start

Install the CLI, authenticate with cookies or QR login, then issue xhs commands to manage notes, profiles, and interactions.

Frequently Asked Questions about xiaohongshu-cli

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

FAQPage Schema
How do I automate Xiaohongshu interactions like searching, liking, and posting in batch workflows?

Automating Xiaohongshu interactions for batch workflows requires a CLI to issue commands for searching, reading, liking, commenting, following, and posting notes programmatically. This approach reduces manual web toil and enables integration into larger automation pipelines.

What is the best way to manage Xiaohongshu sessions and authentication for automated scripts?

Managing Xiaohongshu sessions for automated scripts involves authenticating via browser cookies or browser-assisted QR login. This establishes safe, persistent sessions allowing continuous CLI execution across multiple notes and user profiles without repeated logins.

How do I export session data and read Xiaohongshu note content programmatically?

Exporting session data and reading Xiaohongshu note content programmatically is done by issuing CLI commands to read notes and export session data. This enables extracting content across multiple notes for downstream automation pipelines.

Do I need Python 3.10 or higher to run Xiaohongshu automation scripts via CLI?

Yes, you need Python 3.10 or higher to run Xiaohongshu automation scripts via CLI. This environment prerequisite ensures the xiaohongshu-cli dependency functions correctly for executing search, read, and post commands.

Can I perform user browsing and note collection tasks from a single command line interface?

Yes, you can perform user browsing and note collection from a single CLI. It provides all-in-one Xiaohongshu control to browse user profiles, collect notes, and manage interactions without switching between different tools.

What are the limitations of using a CLI for Xiaohongshu automation in complex workflows?

Using a CLI for Xiaohongshu automation requires Python 3.10+ and depends on valid session credentials via cookies or QR login. Complex workflows may face session expiration constraints if credential management is not handled properly within the pipeline.