xiaohongshu-cli
Use xiaohongshu-cli for ALL Xiaohongshu (Little Red Book, 小红书) operations — searching notes, reading content, browsing users, liking, collecting, commenting,... Skill: xiaohongshu-cli Owner: jackwener Summary: Use xiaohongshu-cli for ALL Xiaohongshu (Little Red Book, 小红书) operations — searching notes, reading content, browsing users, liking, collecting, commenting,... Tags: latest:0.2.1 Version history: v0.2.1 | 2026-03-10T17:15:55.955Z | user Release 0.2.1 v0.1.4 | 2026-03-08T18:16:50.706Z | user Sync SKILL.md: add 小红书 tag, safety notes v0.1.3 | 2026-03-05T17:59:13.818Z | u
Rank
62
Safety
84
Downloads
992
Updated
Oct 11, 2026
Version
0.2.1
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 992 downloads reported by the source. Last updated 10/11/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 11, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 11, 2026
- Adoption signal
- 992 downloadsadoption · observed Oct 11, 2026
- Latest release
- 0.2.1release · observed Mar 10, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 0.2.1release
Release 0.2.1
Observed Mar 10, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s176j4v65c2r3ydppd13q6pm0h885k6x:xiaohongshu-cli- Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jackwener-xiaohongshu-cli/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
121,577 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
--- name: xiaohongshu-cli description: Use xiaohongshu-cli for ALL Xiaohongshu (Little Red Book, 小红书) operations — searching notes, reading content, browsing users, liking, collecting, commenting, following, and posting. Invoke whenever the user requests any Xiaohongshu interaction. author: jackwener version: "1.0.0" tags: - xiaohongshu - xhs - redbook - 小红书 - social-media - cli --- # xiaohongshu-cli — Xiaohongshu CLI Tool **Binary:** `xhs` **Credentials:** browser cookies (auto-extracted via `--cookie-source`) ## Setup ```bash # Install (requires Python 3.10+) uv tool install xiaohongshu-cli # Or: pipx install xiaohongshu-cli ``` ## Authentication **IMPORTANT FOR AGENTS**: Before executing ANY xhs command, check if credentials exist first. Do NOT assume cookies are configured. ### Step 0: Check if already authenticated ```bash xhs status --yaml >/dev/null && echo "AUTH_OK" || echo "AUTH_NEEDED" ``` If `AUTH_OK`, skip to [Command Reference](#command-reference). If `AUTH_NEEDED`, proceed to Step 1. ### Step 1: Guide user to authenticate Ensure user is logged into xiaohongshu.com in one of: Chrome, Edge, Firefox, Safari, Brave. Then: ```bash xhs login # auto-extract cookies xhs login --cookie-source firefox # specify browser ``` Verify with: ```bash xhs status xhs whoami ``` ### Step 2: Handle common auth issues | Symptom | Agent action | |---------|-------------| | `NoCookieError: No 'a1' cookie found` | Guide user to login to xiaohongshu.com in browser | | `NeedVerifyError: Captcha required` | Ask user to open browser, complete captcha, then retry | | `IpBlockedError: IP blocked` | Suggest switching network (hotspot/VPN) | | `SessionExpiredError` | Run `xhs login` to refresh cookies | ## Agent Defaults All machine-readable output uses the envelope documented in [SCHEMA.md](./SCHEMA.md). Payloads live under `.data`. - Non-TTY stdout → auto YAML - `--json` / `--yaml` → explicit format - `OUTPUT=json` env → global override - `OUTPUT=rich` env → force human output ## Command Reference ### Reading | Command | Description | Example | |---------|-------------|---------| | `xhs search <keyword>` | Search notes | `xhs search "美食" --sort popular --type video` | | `xhs read <id_or_url>` | Read a note (URL auto-extracts xsec_token) | `xhs read "https://...?xsec_token=xxx"` | | `xhs comments <id_or_url>` | Get comments (xsec_token required — paste URL) | `xhs comments "https://...?xsec_token=..."` | | `xhs comments <id_or_url> --all` | Get ALL comments (auto-paginate) | `xhs comments "<url>" --all --json` | | `xhs sub-comments <note_id> <comment_id>` | Get replies to comment | `xhs sub-comments abc 123` | | `xhs user <user_id>` | View user profile | `xhs user 5f2e123` | | `xhs user-posts <user_id>` | List user's notes | `xhs user-posts 5f2e123 --cursor ""` | | `xhs feed` | Browse recommendation feed | `xhs feed --yaml` | | `xhs hot` | Browse trending notes | `xhs hot -c food` | | `xhs topics
README.md
# xiaohongshu-cli [](https://github.com/jackwener/xiaohongshu-cli/actions/workflows/ci.yml) [](https://pypi.org/project/xiaohongshu-cli/) A CLI for Xiaohongshu (小红书) — search, read, interact, and post via reverse-engineered API 📕 [English](#features) | [中文](#功能特性) ## More Tools - [bilibili-cli](https://github.com/jackwener/bilibili-cli) — Bilibili CLI for videos, users, search, and feeds - [twitter-cli](https://github.com/jackwener/twitter-cli) — Twitter/X CLI for timelines, bookmarks, and posting - [discord-cli](https://github.com/jackwener/discord-cli) — Discord CLI for local-first sync, search, and export - [tg-cli](https://github.com/jackwener/tg-cli) — Telegram CLI for local-first sync, search, and export ## Features - 🔐 **Auth** — auto-extract browser cookies, status check, whoami - 🔍 **Search** — notes by keyword, user search, topic search - 📖 **Reading** — note detail, comments, sub-comments, user profiles - 📰 **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` > **AI Agent Tip:** Prefer `--yaml` for structured output unless strict JSON is required. Non-TTY stdout defaults to YAML automatically. ## Installation ```bash # Recommended: uv tool (fast, isolated) uv tool install xiaohongshu-cli # Or: pipx pipx install xiaohongshu-cli ``` From source: ```bash git clone [email protected]:jackwener/xiaohongshu-cli.git cd xiaohongshu-cli uv sync ``` ## Usage ```bash # ─── Auth ───────────────────────────────────────── xhs login # Extract cookies from browser xhs status # Check login status xhs whoami # Detailed profile (fans, likes, etc) xhs whoami --json # Structured JSON envelope xhs logout # Clear saved cookies # ─── Search ─────────────────────────────────────── xhs search "美食" # Search notes xhs search "旅行" --sort popular # Sort: general, popular, latest xhs search "穿搭" --type video # Filter: all, video, image xhs search "AI" --page 2 # Pagination xhs search-user "用户名" # Search users xhs topics "美食" # Search hashtags/topics # ─── Reading ────────────────────────────────
_meta.json
{
"ownerId": "kn757vsv03fbpevrxybjc424wh828377",
"slug": "xiaohongshu-cli",
"version": "0.2.1",
"publishedAt": 1773162955955
}SCHEMA.md
# Structured Output Schema `xiaohongshu-cli` uses a shared agent-friendly envelope for machine-readable output. ## Success ```yaml ok: true schema_version: "1" data: ... ``` ## Error ```yaml ok: false schema_version: "1" error: code: not_authenticated message: need login ``` ## Notes - `--yaml` and `--json` both use this envelope - non-TTY stdout defaults to YAML - reading and search commands return their payload under `data` - `status` returns `data.authenticated` plus `data.user` - `whoami` returns `data.user` - common `error.code` values include `not_authenticated`, `verification_required`, `ip_blocked`, `signature_error`, `unsupported_operation`, and `api_error`
skill-card.md
## Description: Use xiaohongshu-cli for Xiaohongshu operations including searching notes, reading content, browsing users, liking, collecting, commenting, following, and posting. This skill is ready for commercial/non-commercial use. ## Publisher: [jackwener](https://clawhub.ai/user/jackwener) ### License/Terms of Use: MIT-0 ## Use Case: External users and developers use this skill to let an agent operate the xiaohongshu-cli tool for Xiaohongshu reading, discovery, account interaction, and creator workflows. It is intended for authenticated CLI use with local browser cookies and structured YAML or JSON output. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: The skill can use local browser-session cookies and perform authenticated Xiaohongshu actions. Mitigation: Use a dedicated browser profile or test account, avoid sharing raw cookie values, and clear cached cookies with xhs logout when finished. Risk: Mutating commands can like, collect, comment, follow, post, or delete account content. Mitigation: Review every mutating command before execution and require explicit user confirmation for account-changing actions. Risk: Aggressive or parallel requests may trigger captcha, rate limits, or IP blocks. Mitigation: Do not parallelize requests; respect built-in delays and pause for browser captcha completion when verification is required. Risk: Integration tests and real API workflows may contact Xiaohongshu with live credentials. Mitigation: Do not run integration tests casually; run only in an intentional test environment with credentials suitable for that purpose. ## Reference(s): - [ClawHub skill page](https://clawhub.ai/jackwener/skills/xiaohongshu-cli) - [README](README.md) - [Structured Output Schema](SCHEMA.md) - [PyPI package](https://pypi.org/project/xiaohongshu-cli/) ## Skill Output: **Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance] **Output Format:** [Markdown guidance with inline shell commands; CLI results are YAML or JSON envelopes.] **Output Parameters:** [1D] **Other Properties Related to Output:** [Uses local browser-cookie authentication and may trigger authenticated account actions.] ## Skill Version(s): 0.2.1 (source: ClawHub release metadata and pyproject.toml) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/jackwener/skills/xiaohongshu-cli",
"sourceUrl": "https://clawhub.ai/jackwener/skills/xiaohongshu-cli",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T21:12:33.861Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-jackwener-xiaohongshu-cli/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-jackwener-xiaohongshu-cli/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-11T21:12:33.861Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "992 downloads",
"href": "https://clawhub.ai/jackwener/xiaohongshu-cli",
"sourceUrl": "https://clawhub.ai/jackwener/xiaohongshu-cli",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T21:12:33.861Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "0.2.1",
"href": "https://clawhub.ai/jackwener/xiaohongshu-cli",
"sourceUrl": "https://clawhub.ai/jackwener/xiaohongshu-cli",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-03-10T17:15:55.955Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-jackwener-xiaohongshu-cli/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-jackwener-xiaohongshu-cli/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 0.2.1",
"description": "Release 0.2.1",
"href": "https://clawhub.ai/jackwener/xiaohongshu-cli",
"sourceUrl": "https://clawhub.ai/jackwener/xiaohongshu-cli",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-03-10T17:15:55.955Z",
"isPublic": true
}
]
}Record generated Oct 12, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-jackwener-xiaohongshu-cli/run-check
