Xiaohongshu Hub
OpenMinis/MinisSkills
Skill for reading and writing Xiaohongshu (XHS) data using Python + UV.
Headless-browser-based CLI skill for Xiaohongshu (小红书, RedNote, XHS) to search notes, read posts, browse profiles, like, favorite, comment, and publish from the terminal
The automated check flagged lines worth reading first. See the safety section below.
$ npx skills add jackwener/xhs-cli --skill xhs-cli -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install jackwener/xhs-cli xhs-cli --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
Claude Code skills documentation · loads skills from .claude/skills/
Install the "xhs-cli" agent skill from https://github.com/jackwener/xhs-cli/tree/main into .claude/skills/xhs-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xhs-cli", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jackwener/xhs-cli --skill xhs-cli -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install jackwener/xhs-cli xhs-cli --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "xhs-cli" agent skill from https://github.com/jackwener/xhs-cli/tree/main into .agents/skills/xhs-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xhs-cli", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jackwener/xhs-cli --skill xhs-cli -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install jackwener/xhs-cli xhs-cli --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "xhs-cli" agent skill from https://github.com/jackwener/xhs-cli/tree/main into .cursor/skills/xhs-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xhs-cli", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jackwener/xhs-cli --skill xhs-cli -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install jackwener/xhs-cli xhs-cli --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "xhs-cli" agent skill from https://github.com/jackwener/xhs-cli/tree/main into .gemini/skills/xhs-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xhs-cli", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install jackwener/xhs-cli xhs-cliInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add jackwener/xhs-cli --skill xhs-cli -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "xhs-cli" agent skill from https://github.com/jackwener/xhs-cli/tree/main into .github/skills/xhs-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xhs-cli", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jackwener/xhs-cli --skill xhs-cli -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install jackwener/xhs-cli xhs-cli --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "xhs-cli" agent skill from https://github.com/jackwener/xhs-cli/tree/main into .opencode/skills/xhs-cli/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "xhs-cli", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
xhs-cliHeadless-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 is an agent skill from jackwener/xhs-cli. Headless-browser-based CLI skill for Xiaohongshu (小红书, RedNote, XHS) to search notes, read posts, browse profiles, like, favorite, comment, and publish from the terminal
Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 25 other files, including scripts (for example `.github/workflows/ci.yml`, `.github/workflows/publish.yml` and `CHANGELOG.md`).
It sits in Productivity & Automation, covering Browser automation. It works with Xiaohongshu and Python. The repository describes itself as: 小红书命令行工具 — 搜索、阅读、点赞、收藏、评论,全在终端完成 | Xiaohongshu CLI. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 3ce7141. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Python and Shell, from the files we listed), which the agent can run.
Shell commands in SKILL.md call:
jqpython3uvFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Xhs CLI loads about 1.1k tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 195 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found patterns that need a careful read before installing.
gin # Auto-extract Chrome cookies. If unavailable, it auto-detects local Chrome cookies via browser-cookie3. If extraction fails, QR code login is availaAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from jackwener/xhs-cli at commit 3ce7141, republished under its Apache-2.0 licence (© jackwener). 195 words, ~1,109 tokens.
.claude/skills/xhs-cli/SKILL.md (or your agent's skills folder). This skill also uses 21 other files; get the full folder from GitHub.[!NOTE] An alternative package xiaohongshu-cli is available, which uses a reverse-engineered API and runs faster. This package (
xhs-cli) uses a headless browser (camoufox) approach — slower but more resilient against risk-control detection. Choose whichever best fits your needs.
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
# Or: pipx install xhs-cliAll commands require valid cookies to function.
xhs status # Check saved login session (no browser extraction)
xhs login # Auto-extract Chrome cookies
xhs login --cookie "a1=..." # Or provide cookies manuallyAuthentication first uses saved local cookies. If unavailable, it auto-detects local Chrome cookies via browser-cookie3. If extraction fails, QR code login is available.
xhs search "咖啡" # Search notes (rich table output)
xhs search "咖啡" --json # Raw JSON output# View note (xsec_token auto-resolved from search cache)
xhs read <note_id>
xhs read <note_id> --comments # Include comments
xhs read <note_id> --xsec-token <token> # Manual token
xhs read <note_id> --json# Look up user profile (by internal user_id, hex format)
xhs user <user_id>
xhs user <user_id> --json
# List user's published notes
xhs user-posts <user_id>
xhs user-posts <user_id> --json
# Followers / Following
xhs followers <user_id>
xhs following <user_id>xhs feed # Explore page recommended feed
xhs feed --json
xhs topics "旅行" # Search topics/hashtags
xhs topics "旅行" --json# Like / Unlike (xsec_token auto-resolved)
xhs like <note_id>
xhs like <note_id> --undo
# Favorite / Unfavorite
xhs favorite <note_id>
xhs favorite <note_id> --undo
# Comment
xhs comment <note_id> "好棒!"
# Delete your own note
xhs delete <note_id>xhs favorites # List your favorites
xhs favorites --max 10 # Limit count
xhs favorites --jsonxhs post "标题" --image photo1.jpg --image photo2.jpg --content "正文"
xhs post "标题" --image photo1.jpg --content "正文" --jsonxhs status # Quick saved-session check
xhs whoami # Full profile info
xhs whoami --json
xhs login # Login
xhs logout # Clear cookiesMajor query commands support --json for machine-readable output:
xhs search "咖啡" --json | jq '.[0].id' # First note ID
xhs whoami --json | jq '.userInfo.userId' # Your user ID
xhs favorites --json | jq '.[0].displayTitle' # First favorite title# Get your user ID for further queries
xhs whoami --json | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('userInfo',{}).get('userId',''))"
# Search and get note IDs (xsec_token auto-cached for later use)
xhs search "topic" --json | python3 -c "import sys,json; [print(n['id']) for n in json.load(sys.stdin)[:3]]"
# Check login before performing actions
xhs status && xhs like <note_id>
# Read a note with comments for summarization
xhs read <note_id> --comments --jsonxhs loginxsec_token is auto-resolved from cache; manual --xsec-token available as fallbackxhs login over manual cookie input.xhs login.© jackwener, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 21 other files (scripts) in the repository root of jackwener/xhs-cli.
Open the folder on GitHubat commit 3ce7141
Xhs CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Xhs CLI this skilljackwener/xhs-cli | 663 | — | ~1.1k | Automated safety check: Warn | Apache-2.0 | |
| Xiaohongshu HubOpenMinis/MinisSkills | 440 | — | ~2.7k | Automated safety check: Pass | MIT | |
| Browser Automation Edge Casesaden-hive/hive | 11k | — | ~1.8k | Automated safety check: Pass | MIT | |
| Skyvern Browser AutomationSkyvern-AI/skyvern | 23k | — | ~1.9k | Automated safety check: Pass | AGPL-3.0 | |
| AI Search Hubminsight-ai-info/AI-Search-Hub | 1.3k | — | ~1.3k | Automated safety check: Pass | None | |
| Browser Use Terminalbrowser-use/terminal | 651 | — | ~2.1k | Automated safety check: Pass | MIT |
OpenMinis/MinisSkills
Skill for reading and writing Xiaohongshu (XHS) data using Python + UV.
aden-hive/hive
Step-by-step procedure for debugging browser automation failures on complex sites such as LinkedIn, Twitter/X, single-page apps and Shadow DOM pages.
Skyvern-AI/skyvern
Automates websites with Skyvern's AI browser agent to fill forms, extract data, download files, log in and run multi-step workflows through SDKs, REST, MCP or a CLI.
minsight-ai-info/AI-Search-Hub
Run the AI Search Hub browser automation scripts for Yuanbao, LongCat, Doubao, Qwen, Gemini, Grok, and MiniMax.
browser-use/terminal
Direct browser control via the Browser Use Terminal CLI. An agent skill from browser-use/terminal.
981377660LMT/algorithm-study
Interactive browser automation via Chrome DevTools Protocol.
Works with
Categories
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 is an agent skill from jackwener/xhs-cli.
Xhs CLI fits situations like: tasks that involve Browser automation.
Run `npx skills add jackwener/xhs-cli --skill xhs-cli -a claude-code`. Or copy the skill folder (the jackwener/xhs-cli repository) into .claude/skills/xhs-cli in your project. Claude Code loads it when a task matches its description.
Run `npx skills add jackwener/xhs-cli --skill xhs-cli -a codex`. Or copy the skill folder (the jackwener/xhs-cli repository) into .agents/skills/xhs-cli in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jackwener/xhs-cli --skill xhs-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/xhs-cli, .gemini/skills/xhs-cli, .github/skills/xhs-cli and .opencode/skills/xhs-cli in your project.
Going by SKILL.md and its folder, Xhs CLI needs Python and a shell for the scripts in its folder and the command-line tools its instructions call (jq, python3 and uv). Our summary lists: Python 3; A Bash shell.
SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md flagged 2 warning(s): mentions a credentials file (ssh keys, cloud or package-manager tokens). Read the flagged lines before installing; the check is not a guarantee either way. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Xhs CLI is published under the Apache-2.0 licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Xhs CLI: Xiaohongshu Hub (OpenMinis/MinisSkills, 440 stars), Browser Automation Edge Cases (aden-hive/hive, 11k stars), Skyvern Browser Automation (Skyvern-AI/skyvern, 23k stars) and AI Search Hub (minsight-ai-info/AI-Search-Hub, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
jackwener (a GitHub user) maintains it in jackwener/xhs-cli, which has 663 GitHub stars. The repository was last updated on March 14, 2026.
Source: jackwener/xhs-cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.