Authorization notice. By2 KB is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forA researcher or student who finds a useful lecture or talk and wants its content kept in a personal Markdown knowledge base.
The problemVideos are hard to search and revisit, and the transcript usually stays locked inside a browser or app.
The outcomeA content folder with source.json, transcript.json, raw, short, and long Markdown files for the video.
What you need first
- Python 3.12 or newer
- pipx installed
- ffmpeg and ffprobe available on PATH
- Optional: Deno 2.3+ or Node.js 22+ for YouTube player challenges
- Optional: a Hermes agent for chat-based use, or an OpenAI-compatible API key for standalone summaries
Steps
- Run
pipx install "by2kb[asr-whisper,youtube]"to install By2 KB with local Whisper and YouTube support. - Run
by2kb init --preset agent-localand follow the prompts for the knowledge base folder and summary mode. - Run
by2kb models installto download the local transcription model. - Run
by2kb doctorand fix any failed check it reports. - Run
by2kb ingest "<video URL>"with the Bilibili or YouTube link in place of the placeholder. (inferred, check the README)
Prompt for your agent
Use the by2kb repository (github.com/Charlesmpc/by2kb) to ingest the video at <video URL> into my knowledge base. Expected output: a folder under library/ containing raw, short, and long Markdown files plus source.json and transcript.json. Verify by running by2kb doctor and confirming the three Markdown files exist.
Caveat. Setup needs ffmpeg on PATH and a terminal, and YouTube player challenges also need Deno or Node.js.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Charlesmpc/by2kb and "Save a Bilibili or YouTube video as Markdown notes"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer