notebooklm-py: drive Google NotebookLM from your assistant
teng-lin/notebooklm-py
Your assistant can work Google NotebookLM (now called Gemini Notebook) for you from the command line. It makes notebooks, adds your links and files, asks questions with cited answers, and makes podcasts, slides, quizzes or reports, then saves them to your computer. It is an unofficial tool that signs in as your Google account.
Pack description by its author: “Your assistant can work Google NotebookLM (now called Gemini Notebook) for you from the command line. It makes notebooks, adds your links and files, asks questions with cited answers, and makes podcasts, slides, quizzes or reports, then saves them to your computer. It is an unofficial tool that signs in as your Google account.”
Design and frontendGives your assistant new abilities with scriptsKnowledge and rules for your assistant
1. Changes your files
None of its skills edits your files.
github.com/teng-lin/notebooklm-py/blob/4f91416/2. Runs code on your machine
Install: pip / uv installs the notebooklm-py package from PyPI. No hooks or install scripts in the skill. notebooklm login: Opens a Chromium window (downloaded on first run) for Google sign-in, or reads cookies from an installed browser (--browser-cookies, may ask for Keychain access on macOS), or uses a master token. Saves storage_state.json (and master_token.json if used) under ~/.notebooklm/profiles/<name>/.
github.com/teng-lin/notebooklm-py/blob/4f91416/3. Sends data
The saved sign-in files give full access to your Google account's NotebookLM session (the master token to the whole account). Keep them out of projects, logs and shared folders, and use a dedicated Google account for unattended use. Install from PyPI or a release tag, not an unreleased checkout. Also ships an MCP server, a local REST server and a Claude Desktop extension, which this card does not cover.
github.com/teng-lin/notebooklm-py/blob/4f91416/4. Commercial use
MIT: keep the license notice; using NotebookLM itself is subject to Google's own terms
github.com/teng-lin/notebooklm-py/blob/4f91416/Checked against the pack's files at commit 4f91416, on Nov 2, 2026. Tap a verdict to see its source.How we checkedReport an error
The pack has changed since AgentGid checked it on Nov 2, 2026. Some details may be out of date.
Good for you if
- You use NotebookLM and want your assistant to do the clicking for you
- You want many sources added, or many podcasts, quizzes or slide decks made and saved in one go
- You want cited answers from your own documents inside Claude Code or Codex
Probably not for you if
- You want the general Gemini model, not NotebookLM notebooks
- You do not want a tool that keeps your Google sign-in in a file on your computer
What its answer looks like
The skill's source-to-podcast workflow
notebooklm create "Research: topic" --json
notebooklm source add <input> -n {notebook_id} --json
notebooklm source wait {source_id} -n {notebook_id} --timeout 600
notebooklm generate audio "instructions" -n {notebook_id} -s {source_id} --json
notebooklm artifact wait {artifact_id} -n {notebook_id} --timeout 1200
notebooklm download audio ./podcast.m4a -a {artifact_id} -n {notebook_id}
The skill's own example, from SKILL.md. More examples
What you'll notice
- Before work starts, your assistant runs a sign-in check and asks you to log in to Google in a browser if it fails
- It asks before deleting, making long podcasts or videos, or saving files
- Downloads land as files: audio, video, slide PDFs, quiz files, tables, mind maps
- Your sign-in is kept in a .notebooklm folder in your home folder
What you need
- Claude Code, Codex, OpenClaw
- Free, MIT license
- Install the Python tool, log in to Google once, then add the skill
- An API key or account (see below)
- A Google account with NotebookLM; Python 3.10 or newer. Cinematic video needs Google AI Ultra.
Words on this page
- Skill
- A set of written instructions your AI assistant follows. Installing one is like giving it a playbook.
- CLI
- A program you run by typing commands in a terminal.
- MCP
- A standard way to connect an AI assistant to outside tools and data.
- API
- A way for programs to talk to a service, usually with a key.
| Repository | teng-lin/notebooklm-py · website |
|---|---|
| GitHub stars | 20,328 |
| Skills | 1 |
| Category | Design and frontend |
| License | MIT |
| Last updated | Nov 19, 2026 · card checked Nov 2, 2026 at commit 4f91416 |
| Install counts | teng-lin/notebooklm-py on skills.sh, Vercel's skills directory, which shows installs and security audits per skill |
teng-lin/notebooklm-py popularity over time
What notebooklm-py does
- Checks that the Google sign-in really works before any task (notebooklm auth check --test --json)
- Uses the notebooklm command with JSON output and keeps the exact notebook, source and artifact IDs
- Waits until every added source is ready before chatting or generating
- Generates audio, video, slide decks, infographics, reports, mind maps, data tables, quizzes and flashcards, waits for them, then downloads that exact item
- Runs only read-only commands when something fails, before trying a fix
- Writes Python code with the library only when you ask for application code
Never cut, per the skill: Asks first before deleting, generating, long waits, downloads, changing the account language or importing research; never prints or commits the sign-in files.
From the pack's SKILL.md files, summarised by AgentGid.
The skill, explained
notebooklm
Runs NotebookLM for you and saves what it makes to your computer
You give
- Your sources: web links, YouTube, PDFs and other files, Google Drive, or pasted text
- What to make: podcast, video, slide deck, infographic, report, mind map, data table, quiz or flashcards
- Your question, for a cited answer
- A Google sign-in in a browser the first time
You get
- A new notebook and its ID
- Cited answers from your sources
- The finished podcast, video, slides, quiz or table, downloaded to a file
- Web or Drive research that can import what it finds, after you agree
See it in action
The skill defines what its answer looks like. Its own example:
notebooklm create "Research: topic" --json
notebooklm source add <input> -n {notebook_id} --json
notebooklm source wait {source_id} -n {notebook_id} --timeout 600
notebooklm generate audio "instructions" -n {notebook_id} -s {source_id} --json
notebooklm artifact wait {artifact_id} -n {notebook_id} --timeout 1200
notebooklm download audio ./podcast.m4a -a {artifact_id} -n {notebook_id}
From SKILL.md.
An async Python example in SKILL.md (Python API Baseline) creates a notebook, adds a URL, waits, generates audio and downloads podcast.m4a; README.md has a shorter Quick Start example..
Source: SKILL.md.
When to reach for it
| You want | Use |
|---|---|
| Make a podcast, video or slides from your sources | Ask in plain words; it runs create → source add → generate → download |
| Cited answers from your documents | notebooklm ask "question" -n <notebook> --json |
| Web research that adds sources to a notebook | notebooklm source add-research "query" --mode fast (or deep) |
| Check whether the sign-in still works | notebooklm auth check --test --json |
| Sign-in stopped working | notebooklm login again, or notebooklm auth refresh |
Skills in teng-lin/notebooklm-py
| Skill | In plain words | Changes files? | What it does (author) |
|---|---|---|---|
| notebooklm | Runs NotebookLM for you and saves what it makes to your computer | Unclear | Install, authenticate, troubleshoot, and operate Gemini Notebook through the notebooklm-py CLI or typed async Python API. Use for notebook and source management, grounded chat and research, and artifact generation or download when the user mentions Gemini Notebook, notebooklm-py, the notebooklm…npx skills add teng-lin/notebooklm-py --skill notebooklm |
The author's descriptions come from each skill's SKILL.md; the plain-words column is AgentGid's.
Good to know before you install
- Unofficial: it talks to undocumented Google services that can change or break without notice; not affiliated with Google.
- Your Google sign-in is saved as files (storage_state.json with live cookies, optionally master_token.json) in ~/.notebooklm/profiles/<name>/, created with owner-only permissions.
- The optional master token is a long-lived full-account credential that survives password changes; the author advises a dedicated Google account.
- Login choices: a browser window (Chromium, about 170 MB, downloads on first login), copying cookies from a browser you are already signed in to, or a master token.
- notebooklm skill install writes the skill into your home folder (~/.claude/skills/notebooklm and ~/.agents/skills/notebooklm), not into one project.
- An opt-in setting (NOTEBOOKLM_TRANSPORT=curl_cffi) makes its requests look like a web browser's, for networks where Google blocks the default connection.
- Google rate-limits generation; the skill says to retry only when you allow it.
Before you start
Works in
- Claude Code: skills folder
- Codex: AGENTS.md and .agents skills folder
- Any agent with a skills folder: skills CLI
- Claude Desktop, Claude Code, Cursor, Windsurf: MCP server
- Sandboxed agents (uploaded skill): skill archive
You will need
- Python 3.10+: The notebooklm CLI and library are Python
- Google account with NotebookLM: Every command signs in as your Google account
- Chromium via Playwright: The default login opens a browser window (downloaded on first login)
- Google AI Ultra: Only for cinematic video
Steps only you can do
- Sign in to Google in the browser window that notebooklm login opens (or be signed in to a browser for --browser-cookies) (README.md (Quick Start) and docs/installation.md)
Then: The agent runs notebooklm auth check --test --json and starts the workflow - On macOS, allow Keychain access if you choose to import cookies from Chrome, Edge, Brave or Opera (docs/installation.md (platform notes))
Then: The tool reads the browser's Google cookies and saves the profile - For unattended use, create a master token on a trusted machine with a dedicated Google account, and revoke it if exposed (docs/installation.md (master-token auth))
Then: The agent can refresh the sign-in without a browser - Get Google AI Ultra if you want cinematic video (SKILL.md (Generation Notes))
Then: The agent can run generate video --format cinematic
Mistakes to avoid
Force a pip install into the system Python with --break-system-packages
Install the CLI with uv tool install or pipx, or into the project's own environment for application code
The skill forbids breaking an externally managed system PythonRun notebooklm status to see whether the sign-in works
Run notebooklm auth check --test --json and require status ok and token_fetch true
status only shows the selected notebook, not whether the sign-in is validDownload whatever artifact is newest in the notebook
Keep the artifact ID from the generate command and pass it with -a and -n to wait and download
Another run may have made a newer artifact, so the wrong file gets savedLet several agents share one profile and its storage_state.json
Give each concurrent run its own NOTEBOOKLM_PROFILE with its own credentials
Profile and context writes collide between agentsChat or generate right after adding a source
Run source wait for every source ID and continue only when each is ready
The add command returns before the source is processed and carries no status
Which one to pick
| If you need | Pick |
|---|---|
| You want Google NotebookLM to read your sources and make podcasts, slides, quizzes or cited answers | This pack |
| You want the agent itself to run structured deep research with human-in-the-loop control, without a Google account | Weizhena/Deep-Research-skills |
| You want agent memory kept as plain markdown in your own Obsidian vault instead of on Google's servers | eugeniughelbur/obsidian-second-brain |
Works well with
- claude-code: notebooklm skill install writes the skill into Claude Code's skills folder
- openai-codex: The repo ships Codex guidance in AGENTS.md and installs to the .agents skills folder
- uv: The skill suggests uv tool install for the notebooklm CLI
- playwright: The default Google login opens a Chromium window through Playwright
May I use it like this?
| Use | Answer | Condition |
|---|---|---|
| In a commercial app | Yes | MIT: keep the license notice; using NotebookLM itself is subject to Google's own terms |
| Passing the files on | Yes | MIT: keep the copyright and permission notice in copies |
| Work for clients | Yes | MIT allows use in work for others |
What leaves your machine
- Your Google session cookies with every request, plus the sources you add (links, files, pasted text), your questions and generation prompts → Google NotebookLM servers (notebook.google.com, notebooklm.google.com or the enterprise hosts), Every notebooklm command that talks to a notebook. Opt out: Do not use the tool; there is no offline mode
- A direct fetch of a web page you added as a source → The website of that page, Only with source add --fallback-fetch. Opt out: Leave out --fallback-fetch (off by default)
Install notebooklm-py
Official commands from the repository
uv tool install "notebooklm-py[browser]" notebooklm login notebooklm auth check --test --json
Or pipx install "notebooklm-py[browser]". First login downloads Chromium (about 170 MB) and opens a Google sign-in.
Remove: uv tool uninstall notebooklm-py, then delete ~/.notebooklm to remove the saved sign-in
notebooklm skill install
Writes ~/.claude/skills/notebooklm and ~/.agents/skills/notebooklm. notebooklm skill status --json shows what is installed.
Remove: delete those two folders
npx skills add teng-lin/notebooklm-py
Adds only the skill text; the notebooklm tool must still be installed.
notebooklm skill package
Builds notebooklm-skill.zip to upload.
Or with the open-source skills CLI: npx skills add teng-lin/notebooklm-py. Skills are instructions your agent follows: read them before installing.
What it installs and runs on your machine
Read in the code at commit 4f91416, Nov 2, 2026
| When | What happens |
|---|---|
| Install | pip / uv installs the notebooklm-py package from PyPI. No hooks or install scripts in the skill. |
| notebooklm login | Opens a Chromium window (downloaded on first run) for Google sign-in, or reads cookies from an installed browser (--browser-cookies, may ask for Keychain access on macOS), or uses a master token. Saves storage_state.json (and master_token.json if used) under ~/.notebooklm/profiles/<name>/. |
| Every command | Sends requests with your Google cookies to notebook.google.com (or notebooklm.google.com / the enterprise hosts) over Google's internal batchexecute calls; the opt-in Android backend uses NotebookLM's mobile gRPC service. |
| Auth check / refresh | May refresh and rewrite the saved cookies; --passive keeps the check read-only. |
| Downloads | Writes the files you name (audio, video, PDF, PNG, CSV, JSON, Markdown) to the paths given. |
| notebooklm skill install | Writes SKILL.md into ~/.claude/skills/notebooklm/ and ~/.agents/skills/notebooklm/. |
| Optional | source add --fallback-fetch fetches failed web pages itself; NOTEBOOKLM_REFRESH_CMD runs a command you set to refresh sign-in. |
Settings
NOTEBOOKLM_HOME: Base folder for all files (default ~/.notebooklm)NOTEBOOKLM_PROFILE: Active profile name (default default)NOTEBOOKLM_BACKEND: web (default) or androidNOTEBOOKLM_AUTH_JSON: Inline sign-in JSON for CI, short-lived fallbackNOTEBOOKLM_NOTEBOOK: Default notebook IDNOTEBOOKLM_HL: Output language code (default en)NOTEBOOKLM_TRANSPORT: httpx (default) or curl_cffi browser-TLS impersonationNOTEBOOKLM_REFRESH_CMD: Command run to refresh sign-inNOTEBOOKLM_LOG_LEVEL: DEBUG / INFO / WARNING / ERROR
Quick answers
- Is it official Google software?
- No. It is an unofficial community library over undocumented Google services that can change at any time.
- Is it free?
- Yes, MIT license. You need your own Google account with NotebookLM; some outputs need a paid Google tier.
- Where is my Google sign-in kept?
- In ~/.notebooklm/profiles/<name>/storage_state.json (cookies) and, if you use one, master_token.json. Treat both as passwords.
- Will it delete things without asking?
- The skill tells the assistant to confirm deletes, sharing removal, logout, generation, long waits and downloads unless you already asked for them. Some commands run without a prompt, so the skill says not to treat a missing prompt as consent.
- Does it work without a browser?
- Yes: copy cookies from a browser you are already signed in to, or use a master token on a server.
Checked by AgentGid on Nov 2, 2026 against commit 4f91416 of the pack's own files. agent.md for AI agents · Report a mistake
More design and frontend skill packs
| # | Install | |||||
|---|---|---|---|---|---|---|
| 1 |
Gets a local design library: UI styles, colour palettes, font pairings and UX rules for many product types. Before it builds a page, it looks up a matching style, colours and fonts and follows a checklist. Extra skills make logos, banners, slides and brand files; logos, mockups and icons need your own key for an outside image service. |
153K | +13.9K | 7 | ||
| 2 |
Stops building the average landing page. It picks one of 20 researched design directions, finds real, credited pictures in open archives, then checks the page in a real browser and fixes what looks wrong. Dashboards and app screens get their own set of rules. |
120K | +18.7K | 1 | ||
| 3 |
Turns a description, a Mermaid sketch or your project's code into an interactive diagram saved as one HTML file. It can also answer a question as a one-page explainer, with the conclusion first. The pack's own tools check every file before handing it to you. |
98.7K | +12.7K | 5 | ||
| 4 |
Draws clean, editorial diagrams in your brand colours and fonts. You describe the diagram in plain words and get one HTML file you open with a double click. It can also redraw old draw.io, Mermaid or Excalidraw diagrams and export them as SVG or PNG. |
70K | +11.4K | 1 | ||
| 5 |
Builds web pages that look designed, not machine-made. It asks once for your real material and picks one of fifty visual themes. Then it builds the page and checks it against common AI design habits. Name it and it will also redesign or review a page you already have. |
59.2K | +25.2K | 1 | ||
| 6 |
alchaincyf/huashu-design
Checked
One large design playbook for your AI assistant, written in Chinese. It makes clickable app prototypes, web pages, slide decks, infographics and short animated videos as HTML, then exports them to PDF, PowerPoint, MP4 or GIF. Before any new design it shows you three real drafts to choose from and stops until you pick one. |
30.3K | +4,613 | 1 |
No pack matches.