lucas@oss ~/projects/redbook[中文]
 ██████╗  ███████╗ ██████╗  ██████╗   ██████╗   ██████╗  ██╗  ██╗
 ██╔══██╗ ██╔════╝ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██╔═══██╗ ██║ ██╔╝
 ██████╔╝ █████╗   ██║  ██║ ██████╔╝ ██║   ██║ ██║   ██║ █████╔╝ 
 ██╔══██╗ ██╔══╝   ██║  ██║ ██╔══██╗ ██║   ██║ ██║   ██║ ██╔═██╗ 
 ██║  ██║ ███████╗ ██████╔╝ ██████╔╝ ╚██████╔╝ ╚██████╔╝ ██║  ██╗
 ╚═╝  ╚═╝ ╚══════╝ ╚═════╝  ╚═════╝   ╚═════╝   ╚═════╝  ╚═╝  ╚═╝
  ██████╗ ██╗      ██╗
 ██╔════╝ ██║      ██║
 ██║      ██║      ██║
 ██║      ██║      ██║
 ╚██████╗ ███████╗ ██║
  ╚═════╝ ╚══════╝ ╚═╝

redbook

Xiaohongshu CLI. Cookie auth. Zero config.

Search notes, read content, analyze creators, and publish posts on Xiaohongshu (小红书/RED). Uses browser cookie auth — no API key needed.

──

Quick Start

────────────────────────────────────────────────────────────
$ npm install -g @lucasygu/redbook
$ redbook whoami
──

Commands

────────────────────────────────────────────────────────────
whoamiCheck connection & current user
search <keyword>Search notes by keyword
read <url>Read a note's full content
comments <url>Get comments on a note
user <userId>Get creator profile
user-posts <userId>List a creator's notes
feedBrowse recommendation feed
topics <keyword>Search hashtags
postPublish an image note
──

How It Works

────────────────────────────────────────────────────────────

Cookie Auth

Reads session cookies from Chrome via sweet-cookie. No API keys, no browser automation, no headless Chrome — just HTTP requests.

Two Signing Systems

Main API (edith.xiaohongshu.com) uses x-s signature with 144-byte payload for reading. Creator API (creator.xiaohongshu.com) uses AES-128-CBC for publishing.

Claude Code Skill

Auto-installs as a Claude Code skill. Use /redbook in Claude Code for AI-powered research workflows — competitive analysis, creator deep-dives, topic research.