bilibili

Query Bilibili videos, users, search, and trending content via CLI with YAML output.

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/lsongdev/skills --skill bilibili-lsongdev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bilibili
Source: https://github.com/lsongdev/skills/tree/main/bilibili
Command: npx skills add https://github.com/lsongdev/skills --skill bilibili-lsongdev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Accessing Bilibili content programmatically requires navigating its web APIs, authentication, and pagination manually. This Skill wraps the bilibili-cli tool so AI agents can fetch video details, subtitles, user profiles, search results, and trending lists directly from the terminal with token-efficient structured output. ## Core Features & Use Cases - Video & Subtitle Retrieval: Fetch video metadata, subtitles (plain text, timeline, or SRT), AI summaries, comments, and related videos by BV ID or URL. - Search & Discovery: Search users and videos, browse hot/trending lists, site rankings, and personal feeds with pagination controls. - Account Interactions: Like, coin, triple-click, follow/unfollow, manage favorites, watch-later, history, and post dynamics after QR-code login. - Audio Extraction: Download video audio and split it into ASR-ready WAV segments for speech-to-text pipelines. - Use Case: To summarize a Bilibili video, run bili video BV1xxx --subtitle to get the subtitle text as the primary source, falling back to --ai summary or audio extraction only when subtitles are unavailable. ## Quick Start Ask the agent to fetch the subtitles and metadata of a Bilibili video by providing its BV ID or URL, for example: summarize the video at https://www.bilibili.com/video/BV1ABcsztEcY.

Frequently Asked Questions about bilibili

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

FAQPage Schema
How do I get Bilibili video subtitles from the command line?▼

Run bili video <BV_ID> --subtitle to print plain-text subtitles, or use --subtitle-timeline for timestamps and --subtitle-format srt to export SRT files. Subtitle access requires being logged in via bili login.

How to search Bilibili videos and users with bilibili-cli?▼

Use bili search "keyword" for users by default, or add --type video to search videos. Control result size with --max, --page, and --offset, and append --yaml for token-efficient structured output.

Does bilibili-cli require login to fetch video info?▼

Most read commands like video details, search, hot, and rank work without login. Subtitles, favorites, following, watch-later, history, feed, and all interactions require authentication via bili login QR code or auto-detected browser cookies.

Can I extract audio from Bilibili videos for speech recognition?▼

Yes, install the audio extra with uv tool install "bilibili-cli[audio]" (requires PyAV), then run bili audio <BV_ID> to download and split audio into 25-second 16kHz mono WAV segments ready for ASR processing.

Why does bilibili-cli show a login warning for some commands?▼

Commands touching private data or write actions need valid credentials. Run bili status to check authentication, then bili login for QR-code login; credentials are stored in ~/.bilibili-cli/credential.json.