xhs-auth

Automate Xiaohongshu login status checks and QR or phone verification via CLI.

1.7k|217|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/autoclaw-cc/xiaohongshu-skills --skill xhs-auth-autoclaw-cc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xhs-auth
Source: https://github.com/autoclaw-cc/xiaohongshu-skills/tree/main/skills/xhs-auth
Command: npx skills add https://github.com/autoclaw-cc/xiaohongshu-skills --skill xhs-auth-autoclaw-cc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automatically manage Xiaohongshu authentication workflows to ensure reliable login status and seamless session continuity.

Core Features & Use Cases

  • Check login status and perform login via QR code or phone verification.
  • Maintain sessions by clearing cookies and logging out.
  • CLI-driven automation that integrates into agent tasks and pipelines.

Quick Start

Run the CLI command to verify login status and initiate the login process using QR code or phone verification.

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 for an agent task?

You can automate Xiaohongshu login by running a CLI that checks login status and guides QR code or phone verification. The CLI outputs JSON for each command, enabling seamless integration into agent tasks and automation pipelines.

What is the best way to check Xiaohongshu login status in an automation pipeline?

Checking Xiaohongshu login status is handled by a self-contained CLI that outputs JSON results. It validates the current session and initiates QR code or mobile verification if needed to maintain seamless session continuity.

Can I clear cookies and manage Xiaohongshu sessions using a command line interface?

Yes, you can clear cookies and manage sessions using the command line interface. The CLI provides commands to log out and clear sessions, ensuring reliable login status and safe session maintenance for Xiaohongshu workflows.

Does Xiaohongshu authentication automation require Python to run?

Xiaohongshu authentication automation requires Python 3.x and uv for execution. The CLI relies on this environment to validate login status and securely process QR code or phone verification workflows.

Why use JSON output for Xiaohongshu login automation?

JSON output is used for Xiaohongshu login automation to enforce safe usage through a centralized workflow. It allows agent tasks and pipelines to programmatically parse login status, verification steps, and session data.

What should I do if my Xiaohongshu login session expires during automation?

If your Xiaohongshu login session expires, the CLI can detect the invalid status and re-initiate the login process using QR code or phone verification. It also supports clearing cookies to reset the session safely.