notebooklm-py
CLAUDE.md20k starsChanged 3 months agoMITView on GitHub
Guidance for Claude Code working in this repository. Follow conventions in CONTRIBUTING.md. notebooklm-py is an unofficial async Python client for Google NotebookLM, driving Google's internal batchexecute RPC protocol to automate notebooks, sources, chat, and studio artifacts. Critical constraint: Obfuscated RPC method IDs in src/notebooklm/rpc/_identifiers.py are undocumented and Google changes them periodically — the #1 breakage class. rpc/types.py re-exports them for backwards compatibility. See docs/installation.md for the full installation guide. Always install the full extras set (mcp, server, impersonate); omitting them…
Trending
More talk lately.about the whole repository
Who's talking about teng-lin/notebooklm-py
- A Hacker News story“notebooklm-py makes Claude interact with NotebookLM”Hacker News · May 6, 2026 · 4 points
- A Hacker News story“Show HN: Notebooklm-Py – Unofficial Python API for Google NotebookLM”Hacker News · Jan 12, 2026 · 2 points
- @githubfeed.bsky.social“🚀 GitHub Intelligence Drop omlx (Python • 🟢) ⭐ 16.5K → https://github.com/jundot/omlx notebooklm-py …”Bluesky · Jun 13, 2026 · 1 likes
- @github-trending.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 teng-lin / notebooklm-py ⭐ 3,514 (+190) 🗒 Python Unofficial Python API …”Bluesky · Mar 8, 2026 · 1 likes
- kanta13jp1/my_web_app“deps: bump the python-dependencies group across 1 directory with 13 updates”GitHub · Nov 2, 2026
The biggest 5 of 54 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 54
Talked about on GitHub, Hacker News and Bluesky (54 times).
On GitHub · 50
- Nov 2, 2026deps: bump the python-dependencies group across 1 directory with 13 updates — kanta13jp1/my_web_app0 reactions · 3 comments
- Nov 1, 2026chore(deps): Bump notebooklm-py from 0.8.4 to 0.8.6 — inoueUJ/notebooklm-radio0 reactions
- Oct 31, 2026[Z.AI] Billing für literature-review: API-Schlüssel belegt, 24 stumme Seiten gelesen — Doebele/agents0 reactions
- Oct 29, 2026agent-skills.github.teng-lin.notebooklm-py: 0.8.5 → 0.8.6 — sudosubin/agents.nix0 reactions
- Oct 26, 2026deps: bump the python-dependencies group across 1 directory with 12 updates — kanta13jp1/my_web_app0 reactions · 5 comments
45 more on GitHub
- Oct 19, 2026fix(cli): stop selector-loop uploads on Windows from losing data (`#2485`) — sjmaple/cr-notebooklm-py0 reactions
- Oct 18, 2026chore(deps): Bump notebooklm-py from 0.8.4 to 0.8.5 — inoueUJ/notebooklm-radio0 reactions · 1 comment
- Oct 18, 2026Update notebooklm-py requirement from <0.4,>=0.3.4 to >=0.3.4,<0.9 — kuanysh228/autoy0 reactions · 1 comment
- Oct 17, 2026Bump the minor-and-patch group with 12 updates — sh-nakama/Remote-JEMA0 reactions
- Oct 15, 2026chore(deps): bump the uv-minor-and-patch group with 3 updates — qiaoqiao2521/google2api-cli0 reactions
- Oct 13, 2026Add notebooklm skill — Nozmun/family0 reactions
- Oct 13, 2026agent-skills.github.teng-lin.notebooklm-py: 0.8.4 → 0.8.5 — sudosubin/agents.nix0 reactions
- Oct 12, 2026deps: bump the python-dependencies group across 1 directory with 13 updates — kanta13jp1/my_web_app0 reactions · 14 comments
- Oct 10, 2026Bump the minor-and-patch group with 16 updates — sh-nakama/Remote-JEMA0 reactions
- Oct 10, 2026[Inhalt] Rotation 2026-10-10: 28 von 30 Steckbriefen geprüft, keine Textänderung — Doebele/agents0 reactions
- Oct 8, 2026ci: Bump notebooklm-py[browser] from 0.8.3 to 0.8.4 in /tools/notebooklm — irisTa56/k-boat0 reactions
- Oct 5, 2026deps: bump the python-dependencies group across 1 directory with 11 updates — kanta13jp1/my_web_app0 reactions · 3 comments
- Oct 4, 2026agent-skills.github.teng-lin.notebooklm-py: 0.8.2 → 0.8.4 — sudosubin/agents.nix0 reactions
- Oct 3, 2026Bump the minor-and-patch group with 6 updates — sh-nakama/Remote-JEMA0 reactions
- Oct 3, 2026agent-skills.github.teng-lin.notebooklm-py: init at 0.8.2 — sudosubin/agents.nix0 reactions
- Oct 1, 2026ci: Bump notebooklm-py[browser] from 0.8.2 to 0.8.3 in /tools/notebooklm — irisTa56/k-boat0 reactions
- Sep 20, 2026[Z.AI] Zehn Skill- und Plugin-Steckbriefe aus dem Skills-Video von Julian Ivanov — Doebele/agents0 reactions
- Sep 7, 2026deps: bump the python-dependencies group with 8 updates — kanta13jp1/my_web_app0 reactions · 4 comments
- Sep 4, 2026Audit 2026-09-04: make the kit work against notebooklm-py 0.8.2, fix docs, add tests — ferinazumaDEV/notebooklm-kb-system0 reactions
- Aug 31, 2026Capability Onboarding UX:零 schema 输入、旧项目迁移与 host-scoped Skill invocation — carllx/matt-browser-workflow0 reactions · 10 comments
- Aug 29, 2026feat: Codex × NotebookLM 連携キット — myoneda22/job0 reactions
- Aug 24, 2026Bump notebooklm-py from 0.8.0 to 0.8.1 in the runtime-dependencies group — Mathewweiss02/codex-notebooklm-thread-rag0 reactions
- Aug 19, 2026setup_auth never detects successful login since Google's notebook.google.com rebrand — PleasePrompto/notebooklm-mcp0 reactions · 2 comments
- Aug 17, 2026deps: bump the python-dependencies group across 1 directory with 3 updates — kanta13jp1/my_web_app0 reactions · 5 comments
- Aug 16, 2026Update notebooklm-py requirement from <0.8,>=0.7.3 to >=0.7.3,<0.9 — langrenlibai/notebooklm-skill-zh-cn0 reactions · 2 comments
- Aug 15, 2026handle multi-profile session persistence and anti-dormancy — Expert-Vision-Software/gemini-web-sdk0 reactions
- Aug 10, 2026chore(deps): update notebooklm-py requirement from <0.8,>=0.7.3 to >=0.7.3,<0.9 — cmlonder/notebooklm-chunker0 reactions · 2 comments
- Aug 10, 2026deps: bump the python-dependencies group across 1 directory with 2 updates — kanta13jp1/my_web_app0 reactions · 3 comments
- Jul 13, 2026deps: bump the python-dependencies group across 1 directory with 2 updates — kanta13jp1/my_web_app0 reactions · 3 comments
- Jul 6, 2026deps: update notebooklm-py requirement from >=0.7.2 to >=0.7.3 in the python-dependencies group — kanta13jp1/my_web_app0 reactions · 3 comments
- Jul 3, 2026chore(deps): update notebooklm-py requirement from >=0.3.4 to >=0.7.3 — prantikmedhi/lore0 reactions
- Jun 27, 2026Add NotebookLM ↔ Claude setup (teng-lin/notebooklm-py via MCP) — nigelguy007/main0 reactions
- Jun 19, 2026chore(deps): update notebooklm-py requirement from >=0.3.4 to >=0.7.2 — prantikmedhi/lore0 reactions · 1 comment
- Jun 17, 2026Audit candidate: teng-lin/notebooklm-py — xiaolai/nlpm0 reactions · 6 comments
- Jun 12, 2026chore(deps): update notebooklm-py requirement from >=0.3.4 to >=0.7.1 — prantikmedhi/lore0 reactions · 1 comment
- Jun 5, 2026chore(deps): update notebooklm-py requirement from >=0.3.4 to >=0.7.0 — prantikmedhi/lore0 reactions · 1 comment
- Jun 1, 2026deps: bump the python-dependencies group across 1 directory with 3 updates — kanta13jp1/my_web_app0 reactions · 3 comments
- May 31, 2026🔴 Gemini Key Leak in commit: teng-lin/notebooklm-py/commit/ba8ef23b51a68371d67278898db... — Colorful-glassblock/Dont-Be-Stupid-Leaker0 reactions · 1 comment
- May 31, 2026Add teng-lin/notebooklm-py — open-gitagent/registry0 reactions
- May 31, 2026chore(deps): update notebooklm-py requirement from <0.5.0,>=0.4.1 to >=0.4.1,<0.7.0 — WenyuChiou/research-hub0 reactions · 3 comments
- May 24, 2026chore(deps): update notebooklm-py requirement from >=0.3.4 to >=0.5.0 in /backend — thrtysxty/copernicus0 reactions · 1 comment
- May 24, 2026chore(deps): update notebooklm-py requirement from >=0.3.4 to >=0.5.0 — thrtysxty/copernicus0 reactions · 1 comment
- May 24, 2026build(deps): Update notebooklm-py requirement from <0.5.0,>=0.4.1 to >=0.4.1,<0.6.0 — WenyuChiou/research-hub0 reactions · 2 comments
- May 11, 2026Add notebooklm skill from teng-lin/notebooklm-py@1bc6960 — aibrain71-art/Skills0 reactions
- May 10, 2026notebooklm-py の_is_media_ready を利用する — catdance124/salon-report-bot0 reactions
On Hacker News · 2
- May 6, 2026notebooklm-py makes Claude interact with NotebookLM4 points
- Jan 12, 2026Show HN: Notebooklm-Py – Unofficial Python API for Google NotebookLM2 points
On Bluesky · 2
- Jun 13, 2026🚀 GitHub Intelligence Drop omlx (Python • 🟢) ⭐ 16.5K → https://github.com/jundot/omlx notebooklm-py (Python • 🟢) ⭐ 16.3K →… — @githubfeed.bsky.social1 likes and repost
- Mar 8, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 teng-lin / notebooklm-py ⭐ 3,514 (+190) 🗒 Python Unofficial Python API for Google NotebookLM — @github-trending.bsky.social1 likes and repost
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- notebooklmSkill
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Always install the full extras set (mcp, server, impersonate).
- Very specific: line 99
Ensure all inline claude[bot] review threads are addressed and resolved before merging.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
Guidance for Claude Code working in this repository. Follow conventions in CONTRIBUTING.md.
Project Overview
notebooklm-py is an unofficial async Python client for Google NotebookLM, driving Google's internal batchexecute RPC protocol to automate notebooks, sources, chat, and studio artifacts.
Critical constraint: Obfuscated RPC method IDs in src/notebooklm/rpc/_identifiers.py are undocumented and Google changes them periodically — the #1 breakage class. rpc/types.py re-exports them for backwards compatibility.
Development Commands
See docs/installation.md for the full installation guide.
# Contributor install (matches CI test jobs):
uv sync --frozen --extra browser --extra dev --extra markdown \
--extra mcp --extra server --extra impersonate
source .venv/bin/activate
uv run playwright install chromium
uv run pytest # all tests (e2e excluded by default)
uv run pytest --cov # with coverage
uv run pytest tests/e2e -m e2e # e2e (requires auth)
uv run notebooklm --help # CLIAlways install the full extras set (mcp, server, impersonate); omitting them causes adapter suites to skip silently, masking errors and failing the 90% coverage threshold.
# Approximate nightly coverage gate:
uv run pytest -n auto --dist loadgroup --cov=src/notebooklm \
--cov-report=term-missing --cov-fail-under=90--dist loadgroup is required to honor @pytest.mark.xdist_group. Avoid piping test commands into tail/grep to prevent masking non-zero exit codes.
Before Pushing
CI enforces formatting, linting, type checks, and tests:
uv run ruff check .
uv run ruff format --check .
uv run mypy src/notebooklm scripts/_live_auth_scenarios --ignore-missing-imports
uv run pytestArchitecture
Adapters (cli/, mcp/, server/) → _app/ (business logic) → client.py + _runtime/ → selected backend (_web/ or _android/) → raw.py (rpc/ is Web compatibility facade).
See docs/architecture.md for layered design, call flows, cross-cutting policies (loop affinity, idempotency, schema validation), and the full file map.
Common Pitfalls
- RPC method IDs change — re-capture network traffic and update
rpc/_identifiers.py. - Position-sensitive nested params — mirror existing shapes; source-id nesting varies (
[id]/[[id]]/[[[id]]]/[[[[id]]]]). - CSRF tokens expire — call
client.refresh_auth()or re-runnotebooklm login. - Rate limiting — add delays between bulk operations.
- Concurrency — one
NotebookLMClientis bound to itsopen()event loop: one per thread, never reuse across loops orAuthTokenstenants (see concurrency contract).
Usage
async with NotebookLMClient.from_storage() as client:
notebooks = await client.notebooks.list()
await client.sources.add_url(nb_id, url)
answer = await client.chat.ask(nb_id, question)
status = await client.artifacts.generate_audio(nb_id)- CLI: Top-level commands (
login,use,status,list,ask) and groups (source,label,artifact,generate,download,note,mcp,research). Reference: docs/cli-reference.md. - MCP Server: Console script
notebooklm-mcpexposes_app/logic over MCP. Install withnotebooklm mcp install <client>. Reference: docs/mcp-guide.md. - REST Server: Console script
notebooklm-serverexposes/v1routes over_app/. RequiresNOTEBOOKLM_SERVER_TOKEN. Reference: docs/installation.md#rest-api-server.
Testing
- Unit:
tests/unit/(offline; includes_app, CLI, server, guardrails). - Integration:
tests/integration/(VCR cassette replay matching method, scheme, host, port, path, rpcids, freq). Record withNOTEBOOKLM_VCR_RECORD=1 uv run pytest tests/integration/ -v. - E2E:
tests/e2e/(real API,@pytest.mark.e2e, requires auth). - Details: docs/development.md.
Documentation Map
Key references in docs/: installation, cli-reference, python-api, architecture, development, mcp-guide, troubleshooting, and adr/.
Pull Request Workflow (required)
Drive PRs to merge:
- Poll
gh pr checks <PR>until all pass; investigate and fix any failures. - Trigger Claude review by commenting
@claude reviewon the PR. - Address every review comment (
gemini-code-assist,coderabbitai,claude[bot]): fix, push, reply on the thread (Addressed in <SHA>: …), and resolve threads. - Merge only when all checks pass, all threads are resolved, and
mergeStateStatusisCLEAN.
Note on @claude review:
claude[bot]posts a sticky summary issue comment and inline diff comments (gh api /repos/<owner>/<repo>/pulls/<PR>/comments). It does not submit a formal GitHubreviewDecision, so check comments directly.- Ensure all inline
claude[bot]review threads are addressed and resolved before merging.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

