nlm
Use nlm to work with Google NotebookLM from the terminal.
Setup
- - Install: INLINECODE1
- Check auth: INLINECODE2
- Sign in: INLINECODE3
- Use a named profile: INLINECODE4
- Switch profile: INLINECODE5
- Diagnose issues: INLINECODE6
Notebooks
- - List notebooks: INLINECODE7
- Create notebook: INLINECODE8
- Query notebook: INLINECODE9
- Show sharing: INLINECODE10
- Enable public link: INLINECODE11
- Disable public link: INLINECODE12
- Invite collaborator: INLINECODE13
Sources
- - Add URL: INLINECODE14
- Add pasted text: INLINECODE15
- Add local file: INLINECODE16
- Add Google Drive file: INLINECODE17
- List sources: INLINECODE18
- Sync Drive sources: INLINECODE19
- Remove source: INLINECODE20
Research + generation
- - Start web research: INLINECODE21
- Create studio artifact: INLINECODE22
- Revise slides: INLINECODE23
- Check artifact status: INLINECODE24
- Download artifact: INLINECODE25
MCP + skills
- - Configure Claude Code: INLINECODE26
- Configure Gemini: INLINECODE27
- List configured tools: INLINECODE28
- Remove MCP config: INLINECODE29
- Install OpenClaw skill: INLINECODE30
- Update installed skills: INLINECODE31
Notes
- -
nlm and notebooklm-mcp come from the same package: notebooklm-mcp-cli. - Prefer
nlm login before notebook commands; auth depends on browser cookies. - Free-tier NotebookLM has rate limits; batch work when possible.
- After changing MCP setup, restart the target app or reconnect the MCP server.
- If
uv tool upgrade does not move to the latest version, use uv tool install --force notebooklm-mcp-cli. - If the user wants OpenClaw-managed browser auth, use
nlm login --provider openclaw --cdp-url http://127.0.0.1:18800.
nlm
使用 nlm 从终端操作 Google NotebookLM。
设置
- - 安装:uv tool install notebooklm-mcp-cli
- 检查认证:nlm login --check
- 登录:nlm login
- 使用命名配置文件:nlm login --profile work
- 切换配置文件:nlm login switch
- 诊断问题:nlm doctor
笔记本
- - 列出笔记本:nlm notebook list
- 创建笔记本:nlm notebook create 研究项目
- 查询笔记本:nlm notebook query 关键发现是什么?
- 显示分享设置:nlm share show
- 启用公开链接:nlm share public
- 禁用公开链接:nlm share private
- 邀请协作者:nlm share invite user@example.com --role editor
来源
- - 添加网址:nlm source add --url https://example.com
- 添加粘贴文本:nlm source add --text ... --title 笔记
- 添加本地文件:nlm source add --file ./notes.pdf
- 添加 Google Drive 文件:nlm source add --drive
- 列出来源:nlm source list
- 同步 Drive 来源:nlm source sync
- 删除来源:nlm source delete
研究与生成
- - 开始网络研究:nlm research start 企业AI投资回报率指标
- 创建工作室作品:nlm studio create --type audio --confirm
- 修改幻灯片:nlm slides revise --prompt 使其更简洁
- 检查作品状态:nlm studio list
- 下载作品:nlm download audio
MCP 与技能
- - 配置 Claude Code:nlm setup add claude-code
- 配置 Gemini:nlm setup add gemini
- 列出已配置工具:nlm setup list
- 移除 MCP 配置:nlm setup remove claude-code
- 安装 OpenClaw 技能:nlm skill install openclaw
- 更新已安装技能:nlm skill update
注意事项
- - nlm 和 notebooklm-mcp 来自同一个包:notebooklm-mcp-cli。
- 在执行笔记本命令前,建议先执行 nlm login;认证依赖于浏览器 Cookie。
- 免费版 NotebookLM 有速率限制,建议批量处理工作。
- 更改 MCP 设置后,请重启目标应用或重新连接 MCP 服务器。
- 如果 uv tool upgrade 无法更新到最新版本,请使用 uv tool install --force notebooklm-mcp-cli。
- 如果用户需要使用 OpenClaw 管理的浏览器认证,请使用 nlm login --provider openclaw --cdp-url http://127.0.0.1:18800。