Skip to content
Skill

xhs-cli

by jackwener

AI Summary

A CLI tool for interacting with Xiaohongshu (小红书). Use it to search notes, read details, browse user profiles, and perform interactions like liking, favoriting, and commenting. All commands require valid cookies to function. Authentication first uses saved local cookies. If unavailable, it auto-dete

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "xhs-cli" skill in my project.

Please run this command in my terminal:
# Install skill into your project
mkdir -p .claude/skills/xhs-cli && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/xhs-cli/SKILL.md "https://raw.githubusercontent.com/jackwener/xhs-cli/main/SKILL.md"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

Headless-browser-based CLI skill for Xiaohongshu (小红书, RedNote, XHS) to search notes, read posts, browse profiles, like, favorite, comment, and publish from the terminal

xhs-cli Skill

A CLI tool for interacting with Xiaohongshu (小红书). Use it to search notes, read details, browse user profiles, and perform interactions like liking, favoriting, and commenting.

Install (requires Python 3.8+)

uv tool install xhs-cli

Authentication

All commands require valid cookies to function. `bash xhs status # Check saved login session (no browser extraction) xhs login # Auto-extract Chrome cookies xhs login --cookie "a1=..." # Or provide cookies manually ` Authentication first uses saved local cookies. If unavailable, it auto-detects local Chrome cookies via browser-cookie3. If extraction fails, QR code login is available.

Search

`bash xhs search "咖啡" # Search notes (rich table output) xhs search "咖啡" --json # Raw JSON output `

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 20d ago
Active
Adoption100+ stars on GitHub
431 ★ · Growing
DocsREADME + description
Well-documented

GitHub Signals

Stars431
Forks41
Issues5
Updated20d ago
View on GitHub
Apache-2.0 License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code