Skip to content

Suggestion: SigCLI for automated cookie management #1451

Description

@brelian

Problem

For authenticated downloads (Bilibili premium, Douyin, etc.), users pass cookies via -c "cookie_string" or -c cookies.txt. This means manually opening DevTools, copying the cookie header, and re-doing it whenever the session expires.

Suggestion

SigCLI automates browser login and cookie extraction:

# One-time setup
npm install -g @sigcli/cli && sig init
sig login bilibili  # Opens browser for QR scan

# Use with lux — pass cookie string directly
lux -c "$(sig get bilibili --no-redaction --format value)" "https://www.bilibili.com/video/BV..."

Benefits:

  • No manual DevTools cookie copying
  • Auto-refresh when cookies expire (sig watch)
  • Encrypted storage, multiple accounts
  • Works on remote/headless machines (sig sync)
  • Uses real Chrome/Edge — no bot detection
Verified provider config for Bilibili
bilibili:
    domains:
        - www.bilibili.com
    entryUrl: https://www.bilibili.com/
    strategy: browser
    ttl: 2h
    extract:
        - from: cookies
          as: cookie
          match: '*'
    apply:
        - in: header
          name: Cookie
          value: ${cookie}
Verified provider config for YouTube
youtube:
    domains:
        - www.youtube.com
        - youtube.com
    entryUrl: https://www.youtube.com/
    validateUrl: https://www.youtube.com/account
    strategy: browser
    ttl: 2h
    extract:
        - from: cookies
          as: cookie
          match: '*'
    apply:
        - in: header
          name: Cookie
          value: ${cookie}

This is just a user-workflow suggestion, not a code change request. Happy to contribute a docs section if helpful.

Links: https://github.com/sigcli/sigcli

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions