Skill
xiaohongshu-cli
xiaohongshu-cli — a Claude Code skill from jackwener/xiaohongshu-cli
Features
- ✓🔐 **Auth** — auto-extract browser cookies, QR code login, status check, whoami
- ✓🔍 **Search** — notes by keyword, user search, topic search
- ✓📖 **Reading** — note detail, comments, sub-comments, user profiles
- ✓🔢 **Short-index navigation** — open recent list results with `xhs read 1` or `xhs comments 1`
- ✓📰 **Feed** — recommendation feed, hot/trending by category
- ✓👥 **Social** — follow/unfollow, favorites
- ✓👍 **Interactions** — like, favorite, comment, reply, delete
- ✓✍️ **Creator** — post image notes, my-notes list, delete
- ✓🔔 **Notifications** — unread count, mentions, likes, new followers
- ✓🛡️ **Anti-detection** — consistent macOS Chrome fingerprint, `sec-ch-ua` alignment, session-stable browser identity, Gaussian jitter, captcha cooldown, exponential backoff
- ✓📊 **Structured output** — commands support `--yaml` and `--json`; non-TTY stdout defaults to YAML
- ✓📦 **Stable envelope** — see [SCHEMA.md](./SCHEMA.md) for `ok/schema_version/data/error`
Installation Guide
bash
# Recommended: uv tool (fast, isolated)
uv tool install xiaohongshu-cli
# Or: pipx
pipx install xiaohongshu-cliUpgrade to the latest version:
bash
uv tool upgrade xiaohongshu-cli
# Or: pipx upgrade xiaohongshu-cliTip: Upgrade regularly to avoid unexpected errors from outdated API handling.
From source:
bash
git clone git@github.com:jackwener/xiaohongshu-cli.git
cd xiaohongshu-cli
uv sync