DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-bilibili

m

dsh-bilibili

Manifest valid★ 5

DeepSeek Harness plugin: Bilibili video search, metadata, and subtitle transcripts (bilibili_search / bilibili_video / bilibili_subtitles) · DeepSeek Harness plugin: Bilibili video search, metadata, and subtitle transcripts, available anonymously, optional SESSDATA to unlock login subtitles

hasBundlePatchMachine translated

dsh-plugin-bilibili

中文 | English

A Bilibili retrieval plugin for DeepSeek Harness. After install the agent gains five tools:

  • bilibili_search — find videos by keyword: title, uploader, play count, duration, publish date.
  • bilibili_video — full metadata for one video: counts, partition, multi-part pages, description.
  • bilibili_subtitles — the subtitle transcript of one video, merged into plain text.
  • bilibili_playurl — the direct mp4 play URL (and granted quality/size) for downloads or frame extraction.
  • bilibili_frames — real video frames (preview sprite grid, cover fallback, or ffmpeg extraction) as image blocks, so image-capable models can watch the actual footage instead of relying on subtitles alone.

Anonymous by default: search works with automatic anonymous-cookie bootstrapping, and metadata always works. Set a SESSDATA cookie to unlock login-gated subtitle tracks (where most AI subtitles live), higher-quality play URLs, and the frames preview path. The plugin reads metadata, subtitles, and frame images only — it never stores or re-uploads videos.

Install

Run:

dsh plugin --profile web add dsh-plugin-bilibili

# or directly from Git:
dsh plugin --profile web add git+https://github.com/moxingovo/dsh-bilibili

Restart dsh web. New conversations gain bilibili_search, bilibili_video, bilibili_subtitles, bilibili_playurl, and bilibili_frames automatically (bilibili_frames additionally requires the attachments service, which the standard web bundle mounts).

Optional SESSDATA

Log into bilibili.com, open DevTools, go to Application, then Cookies, then the bilibili.com entry, and copy the SESSDATA value — the bare token, not the whole cookie header. Put it in the environment or in your DSH_HOME .env file:

BILIBILI_SESSDATA=<your-bare-token>

Without it only publicly visible subtitle tracks are returned; videos whose tracks require login fail with the structured code BILIBILI_LOGIN_REQUIRED.

Configuration

KeyDefaultMeaning
cookieEnvBILIBILI_SESSDATAEnvironment variable naming the optional SESSDATA token.
requestTimeoutMs30000Per-request timeout in ms.
subtitleLanguagezh-CNPreferred subtitle language tag; exact match wins, else the first track.
searchMaxPageSize20Page-size ceiling for bilibili_search.
subtitleMaxChars80000Transcript character cap for bilibili_subtitles, value-level with a truncated flag.

Override any field in profiles/web/cordis.patch.yml — later layers win per row.

Error codes

Tools fail with structured errors carrying these codes: BILIBILI_RISK_CONTROL for -412 — retry later, the plugin already bootstraps the anonymous cookie; BILIBILI_FORBIDDEN for -403; BILIBILI_NOT_FOUND for -404; BILIBILI_LOGIN_REQUIRED for -101, typically subtitles; BILIBILI_SUBTITLES_UNAVAILABLE when no accessible track or an empty body; BILIBILI_REDIRECT_REFUSED as the credential-safety guard; BILIBILI_BAD_RESPONSE for non-JSON or a missing code envelope; BILIBILI_REQUEST_FAILED for network; BILIBILI_WBI_KEYS_UNAVAILABLE when signing keys are missing.

Security

  • The cookie is read from the environment only; it never enters configuration files, logs, or tool output.
  • Every request refuses redirects, so the cookie can never be forwarded to another origin.
  • The cookie is sent only to api.bilibili.com; subtitle CDN downloads carry no cookie.
  • No video or audio download.

Skills

Two companion skills ship in skills/: plugin-tool-bilibili for tool usage and plugin-web-bilibili for service configuration and error codes. Copy them into your harness skills directory to make the agent consult them before calling the tools.

Development

Node 22 or newer:

npm ci
npm test

The repo pins its dependency tree in package-lock.json. The test suite runs fully offline (mocked HTTP); the typecheck runs against the published DeepSeek Harness packages.

Known issue

Early rc releases of the official DeepSeek Harness packages declare an unpublished peer dependency: dsh-agent 0.0.1-rc.1/rc.2 and dsh-session 0.0.1-rc.1/rc.2 list @deepseek-ai/dsh-type-meta, which is not on the npm registry. A fresh install whose resolver lands on those versions fails with a 404 for @deepseek-ai/dsh-type-meta (reproduced with pnpm 11 and the npmmirror mirror; npm resolves 0.0.1-rc.5 and succeeds). Workarounds: npm with the committed package-lock.json (npm ci), or dsh plugin add inside an already-installed harness workspace, whose lockfile pins resolvable versions. This is an upstream rc-stage publishing issue and disappears once upstream fixes the metadata.

License

MIT, see LICENSE.

Compatibility

Verified on DeepSeek Harness 0.1.6-alpha.2 (Typert API Gateway). No code change was needed for 0.1.6 — this plugin does not use the typert codec API. The 0.1.0 line works too.

Compatibility

DSH 0.2.2-rc.1: failedDSH 0.2.1-rc.4: failedDSH 0.1.7-alpha.2: failed

Versions

Latest versionPublishedSize
0.2.1——

Comments

Loading…

Similar plugins

dsh-bili-asr

by rudyz666

解析 B站视频链接,提取完整脚本/字幕:优先字幕轨,无字幕用本地 whisper 转写,导出 SRT/TXT/JSON。DeepSeek Harness 插件,跨平台 Windows/macOS/Linux(纯 Node)。

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Aug 23, 2026

dsh plugin --profile web add dsh-bili-asr

by QiuYeDx

DeepSeek Harness 插件:让模型看 B站视频——分镜图 + 台词 + 热评 + 弹幕热词(只读,只认 B站)

Security & AuditDevelopment & InfrastructureManifest valid

★ 5

↓ 1.9k/wk

MIT

JavaScript

Nov 7, 2026

dsh plugin --profile web add dsh-bili-eyes

by 3588834014-del

把 B站视频链接变成 Obsidian 结构化笔记的 DSH 技能插件:只拉字幕、不下载视频,机械环节写死、判断环节交给模型。

Tools & CapabilitiesManifest valid

★ 0

MIT

Python

Oct 18, 2026

dsh plugin --profile web add dsh-bilibili-note

by pyf2818

🎬 DSH (DeepSeek Harness) B站悬浮看片插件:边 coding 边刷视频。推荐/热门/排行/搜索/关注UP主、自动连播、迷你模式、历史持久化

UI & ExperienceManifest valid

★ 4

MIT

JavaScript

Aug 17, 2026

dsh plugin --profile web add @dsh-external/dsh-bili-widget

by hunyu-feng

DSH plugin: turn a video link (Bilibili / YouTube / any page) into a transcript-backed summary, and say plainly what evidence it used.

Manifest valid

★ 0

MIT

JavaScript

Oct 22, 2026

dsh plugin --profile web add dsh-video-digest

by Aurum807

DSH 插件:发 B 站(或任意 yt-dlp 支持的站点)视频链接时自动准备可总结素材(转写 + 关键帧接触印相纸),并按方法论产出总结

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 2

MIT

JavaScript

Nov 4, 2026

dsh plugin --profile web add dsh-bilibili-video-summary