English | 中文
nblm
Your AI Coding Agent's Gateway to NotebookLM

🧠 Zero Hallucinations — Answers grounded exclusively in your documents
⚡ Zero Context Switching — Ask, upload, generate podcasts & slides from your editor
🔌 Infinite Sources — Z-Library today, arXiv / Notion / Confluence tomorrow
Works with Claude Code · Cursor · Windsurf · Codex · and any Agent Skills compatible agent
Installation · Quick Start · Commands · Architecture
Installation
Recommended: Using add-skill CLI
npx add-skill magicseek/nblm
This works with any supported agent. To install for a specific agent:
# Claude Code only
npx add-skill magicseek/nblm -a claude-code
# Global installation (available across all projects)
npx add-skill magicseek/nblm --global
# Multiple agents
npx add-skill magicseek/nblm -a claude-code -a cursor -a opencode
Alternative: Platform-specific initialization
If symlinks created by add-skill don't work well in your environment (e.g., Cursor, Windows), you can generate platform-specific files directly:
macOS / Linux:
# Clone the repo
git clone https://github.com/magicseek/nblm ~/.nblm
# Initialize for your AI assistant (run from your project directory)
python ~/.nblm/scripts/run.py init --ai cursor # Cursor
python ~/.nblm/scripts/run.py init --ai claude # Claude Code
python ~/.nblm/scripts/run.py init --ai codex # Codex CLI
python ~/.nblm/scripts/run.py init --ai antigravity # Antigravity
python ~/.nblm/scripts/run.py init --ai windsurf # Windsurf
python ~/.nblm/scripts/run.py init --ai copilot # GitHub Copilot
python ~/.nblm/scripts/run.py init --ai all # All platforms
# List available platforms
python ~/.nblm/scripts/run.py init --list
Windows (PowerShell):
# Clone the repo
git clone https://github.com/magicseek/nblm $env:USERPROFILE\.nblm
# Initialize for your AI assistant (run from your project directory)
python $env:USERPROFILE\.nblm\scripts\run.py init --ai cursor # Cursor
python $env:USERPROFILE\.nblm\scripts\run.py init --ai claude # Claude Code
python $env:USERPROFILE\.nblm\scripts\run.py init --ai codex # Codex CLI
python $env:USERPROFILE\.nblm\scripts\run.py init --ai antigravity # Antigravity
python $env:USERPROFILE\.nblm\scripts\run.py init --ai windsurf # Windsurf
python $env:USERPROFILE\.nblm\scripts\run.py init --ai copilot # GitHub Copilot
python $env:USERPROFILE\.nblm\scripts\run.py init --ai all # All platforms
# List available platforms
python $env:USERPROFILE\.nblm\scripts\run.py init --list
This generates the appropriate skill/command files in your project directory (e.g., .cursor/commands/nblm.md).
First Run
On first use, nblm automatically:
- Creates an isolated Python environment (
.venv)
- Installs Python and Node.js dependencies
- Starts the agent-browser daemon as needed
No manual setup required. If Playwright browsers are missing, run npm run install-browsers in the skill folder.
Quick Start
1. Authenticate with Google (one-time)
/nblm login
A browser window opens for Google login. This is required once.
2. Add a notebook to your library
Go to notebooklm.google.com → Create notebook → Upload your docs → Share with "Anyone with link"
/nblm add <notebook-url-or-id>
nblm automatically queries the notebook to discover its content and metadata.
3. Ask questions
/nblm ask "What does the documentation say about authentication?"
Answers are source-grounded with citations from your uploaded documents.
4. Manage your notebooks
/nblm local # List notebooks in your library
/nblm remote # List all notebooks from NotebookLM API
/nblm status # Show auth and library status
5. Upload sources
/nblm upload ./document.pdf # Local file
/nblm upload-url https://example.com # Web URL
/nblm upload-zlib <z-library-url> # Z-Library book
Commands
📚 Notebook Management