notebooklm-py
$ notebooklm Community Med Risknotebooklm-py (teng-lin/notebooklm-py) provides a Python API, notebooklm CLI, and agentic skill exposing Google NotebookLM features—managing notebooks, adding sources, chatting, and generating/downloading audio overviews, study guides, and data tables with --json and --quiet.
pip install notebooklm-py Ships a purpose-built agent skill and --json --quiet subcommands (notebook, source, chat, artifact, download) directly usable in shell loops.
At a Glance
- Command
- $ notebooklm
- FCRS-1.0 Score
- 78/100 (Good)
- Evidence Tier
- Medium Confidence
- CLI vs MCP
- CLI Preferred vs MCP
- Reviewed Date
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --json paired with --quiet, structured subcommand groups, and a dedicated agent skill.
--json --quietflags and bundled NotebookLM agent skill
Relies on unofficial reverse-engineered web session cookies from Playwright login and performs remote Google account writes.
- Unofficial Google web cookie auth; uploads sources to cloud notebooks
Python package on PyPI (pip install notebooklm-py), though initial login requires [browser] extra and Playwright Chromium.
- PyPI install plus optional
notebooklm-py[browser]and Playwright setup
Automates NotebookLM audio overviews, mind maps, and batch source ingestion not exposed via an official public REST API.
- Programmatic access to NotebookLM features beyond the web UI
Popular community OSS project (teng-lin/notebooklm-py, 20.5k+ stars), though unofficial and tied to Google web internals.
- Unofficial
teng-lin/notebooklm-pyrepository
Detailed README covering CLI commands, Python async API, Playwright auth, and agent skill setup.
- GitHub README and PyPI documentation
Security, Auth & Guardrails
Stores Playwright browser login cookies and session tokens locally via notebooklm auth login.
MIT open-source CLI; operates against your Google NotebookLM account quota.
# notebooklm-py Agent Rules - Run `notebooklm auth check` first; if expired, ask the user to run `notebooklm auth login` interactively. - Always combine `--json --quiet` so progress spinners do not pollute stdout. - Confirm before creating or deleting shared NotebookLM notebooks or uploading sensitive internal docs.
Agent-Ready Command Recipes
Safe Read-Only Queries
notebooklm auth check && notebooklm notebook list --json --quiet
Validates stored browser cookies and prints existing notebooks as clean JSON.
Controlled Writes & Previews
notebooklm source add https://example.com/paper.pdf && notebooklm artifact list --json
Uploads a new source to the active notebook and inspects generated artifacts as JSON.
Strengths for Agents
- + Clean
--json --quietsupport acrossnotebook,source,chat,artifact, anddownloadcommands. - + Ships an agentic skill tailored for Claude Code, Codex, and OpenClaw.
- + Unlocks bulk NotebookLM audio overview and artifact automation.
Caveats & Pitfalls
- ! Unofficial reverse-engineered client; upstream Google web changes can break endpoints or require cookie refresh.
- ! Initial
notebooklm auth loginrequires interactive browser login via Playwright Chromium.
Official References
Tested Agent Hosts
Follow Ecosystem Links
Related CLIs in AI & Media
View category hub →Distributed AI compute CLI for managing Ray clusters, submitting jobs, and querying actor/task state.
Swiss-army knife for audio conversion, resampling, trimming, and effects: `sox in.wav -r 16000 out.wav`.
Record, replay, and convert terminal sessions as lightweight NDJSON `.cast` files.
Weights & Biases MLOps CLI (`wandb status`, `offline`, `sync`) for managing experiment runs and artifacts.
Agent-first Arize Phoenix CLI (`px`) with `--format json`, `--no-progress`, and safety-gated deletes for LLM traces and evals.