xhs-auth

Automate Xiaohongshu login and multi-account management via CLI.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/yuymf/xiaohongshu-skills --skill xhs-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xhs-auth
Source: https://github.com/yuymf/xiaohongshu-skills/tree/main/skills/xhs-auth
Command: npx skills add https://github.com/yuymf/xiaohongshu-skills --skill xhs-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

小红书认证管理技能。检查登录状态、登录(二维码或手机号)、多账号管理。当用户要求登录小红书、检查登录状态、切换账号时触发。

Core Features & Use Cases

  • 检查登录状态并返回可操作的结果。
  • 提供二维码登录、手机验证码登录两种认证方式,并支持多账号切换及默认账号设置。
  • 支持添加、列出、删除账号及跨账号隔离的 Chrome 配置和端口分配。
  • 通过 CLI 实现完整的认证与账号管理工作流,确保流程可重复、可审计。

Quick Start

直接检查登录状态并按提示完成后续操作。

Frequently Asked Questions about xhs-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Xiaohongshu login and manage multiple accounts via CLI?

Automate Xiaohongshu login and manage multiple accounts via a controlled CLI workflow that supports QR code and mobile verification, account switching, status checks, and cookie management. This CLI approach ensures repeatable and auditable authentication flows.

What authentication methods are available for Xiaohongshu browser automation?

Available Xiaohongshu authentication methods include QR code login and mobile verification code login. Both methods are integrated into a self-contained Python CLI workflow to ensure safe and robust login handling with explicit prompts.

Can I switch accounts and maintain isolated Chrome configurations for Xiaohongshu?

Yes, you can switch accounts and maintain isolated Chrome configurations. The system supports adding, listing, and deleting accounts while allocating independent Chrome profiles and ports for cross-account isolation.

How do I check my Xiaohongshu login status before executing automated tasks?

Check your Xiaohongshu login status by triggering the status check command within the CLI workflow. It returns actionable results regarding your current session validity before proceeding with further automation.

What environment is required to run Xiaohongshu authentication workflows in Python?

Xiaohongshu authentication workflows require a Python environment to execute safe, self-contained CLI commands. The workflow relies on explicit prompts and robust error handling to manage login flows effectively.