login-manager

Manages headed browser login sessions and exports verified cookies for four Chinese platforms.

8.5k|1.4k|Updated Apr 24, 2024
One-click install
npx skills add https://github.com/TeamWiseFlow/wiseflow --skill login-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: login-manager
Source: https://github.com/TeamWiseFlow/wiseflow/tree/main/crews/main/skills/login-manager
Command: npx skills add https://github.com/TeamWiseFlow/wiseflow --skill login-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automated scraping and publishing on platforms like Douyin, Bilibili, Kuaishou, and Xiaohongshu requires valid login sessions, and stale or mismatched cookies trigger risk controls or silent failures. This Skill standardizes the manual headed-browser login flow, verifies session validity before committing, and stores cookies plus user-agent fingerprints in a central location for downstream scripts.

Core Features & Use Cases

  • Guided headed login flow: Opens the platform login page in a persistent headed browser session, waits for the user to complete manual login (QR code, SMS, or password), then exports on confirmation.
  • Two-tier session verification: Validates critical cookie fields (e.g., SESSDATA for Bilibili, web_session for Xiaohongshu) plus a live platform ping before committing anything to central storage.
  • Central cookie + UA storage: Writes cookies and matching user-agent fingerprints to ~/.openclaw/logins/ so downstream raw-HTTP scripts reuse a consistent fingerprint and avoid risk-control mismatches.
  • Use Case: An agent needs to monitor Douyin account data daily. It opens the Douyin login page headed, the user scans the QR code, and the skill exports and verifies the session so all downstream fetch scripts run authenticated.

Quick Start

Ask the agent to log in to Douyin (or bilibili, kuaishou, xhs-browse), complete the manual login in the opened browser window, then confirm so the skill exports and verifies the session.

Frequently Asked Questions about login-manager

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

FAQPage Schema
How do I log in to Douyin or Bilibili for automated scraping?

Open the platform login page in a headed persistent browser session, complete the manual login yourself (QR code, SMS, or password), then run the export step. The skill verifies the session with cookie field checks and a live platform ping before storing credentials.

Which platforms does this login session manager support?

It supports exactly four platforms: douyin, bilibili, kuaishou, and xhs-browse (Xiaohongshu browsing). Other platforms like Twitter, Weibo, Zhihu, and xhs-publish manage their own login flows in separate skills.

Where are exported cookies and user agents stored?

Cookies are written to ~/.openclaw/logins/<platform>.json and the matching user-agent fingerprint to <platform>.ua.json. Both files must be consumed together by downstream scripts so the cookie fingerprint matches the HTTP headers.

Why does cookie verification fail after logging in?

Verification fails with SESSION_EXPIRED when critical cookie fields are missing or the platform liveness ping does not respond, meaning the login did not complete. The skill exits with code 2 without retrying, since repeated attempts risk account risk-control flags.

Can I import cookies into a fresh browser session instead of logging in?

No. Importing cookies into a different browser fingerprint causes mismatch detection and risk-control triggers, especially for Xiaohongshu device cookies. All browser automation must reuse the persistent session created during real manual login.