简介
通过真实Chrome浏览器自动化操控Google Keep,支持笔记的增删改查与归档,无需API密钥但需手动登录一次。
原始描述
Integration with Google Keep via nodriver (undetectable Chrome). Creates, reads, updates, and deletes notes.
通过你的 Agent 添加
安装目录:google-keep/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
Google Keep Skill 是一款基于 nodriver 库开发的自动化工具,利用真实的 Chrome 浏览器实例操控 Google Keep,完全规避传统自动化工具面临的机器人检测机制。用户通过命令行界面执行笔记管理操作,包括创建文本/清单笔记、读取、更新、删除、归档及批量列出笔记。
显著优点
- 绕过反机器人检测:采用真实 Chrome 浏览器而非 headless 模式,配合 nodriver 的无头自动化方案,Google 难以识别为自动化脚本
- 零 API 密钥依赖:无需申请 Google Cloud API 密钥,直接使用用户账号权限操作个人数据
- 会话持久化:首次手动登录后,会话 cookies 加密保存于
~/.config/google-keep-skill/,后续操作无需重复认证
- 结构化 JSON 输出:所有操作返回标准 JSON 格式,便于 AI Agent 解析和二次处理
- 双模式笔记支持:完整支持文本笔记和待办清单(checklist)两种 Google Keep 原生格式
潜在缺点与局限性
- 手动初始化门槛:必须人工执行一次登录流程,无法完全无人值守部署
- 单实例并发限制:同一 Chrome 用户配置无法多进程同时使用
- 内容更新非增量:
update 命令为全量替换,修改清单中单个项目需先读取完整内容再重构
- 平台依赖性强:强制依赖系统级 Google Chrome 安装,Linux 需
google-chrome-stable
- 会话过期风险:Google 账号安全策略可能导致会话失效,需重新手动登录
适合人群
- 需要自动化笔记管理但无法申请 Google API 的开发者
- 追求隐私、不愿将笔记数据通过第三方 API 传输的技术用户
- AI Agent 开发者需要集成个人知识管理功能的场景
常规风险
- 会话存储目录权限虽设为
700,但仍存在本地文件系统层面的凭证泄露风险
- 长期使用真实浏览器自动化可能触发 Google 账号异常活动检测
- 更新操作的全量替换特性存在误覆盖数据风险,需严格遵循"先读取后修改"流程
安全边界强调
~/.config/google-keep-skill/,后续操作无需重复认证- 手动初始化门槛:必须人工执行一次登录流程,无法完全无人值守部署
- 单实例并发限制:同一 Chrome 用户配置无法多进程同时使用
- 内容更新非增量:
update命令为全量替换,修改清单中单个项目需先读取完整内容再重构 - 平台依赖性强:强制依赖系统级 Google Chrome 安装,Linux 需
google-chrome-stable - 会话过期风险:Google 账号安全策略可能导致会话失效,需重新手动登录
适合人群
- 需要自动化笔记管理但无法申请 Google API 的开发者
- 追求隐私、不愿将笔记数据通过第三方 API 传输的技术用户
- AI Agent 开发者需要集成个人知识管理功能的场景
常规风险
- 会话存储目录权限虽设为
700,但仍存在本地文件系统层面的凭证泄露风险
- 长期使用真实浏览器自动化可能触发 Google 账号异常活动检测
- 更新操作的全量替换特性存在误覆盖数据风险,需严格遵循"先读取后修改"流程
安全边界强调
- 会话存储目录权限虽设为
700,但仍存在本地文件系统层面的凭证泄露风险 - 长期使用真实浏览器自动化可能触发 Google 账号异常活动检测
- 更新操作的全量替换特性存在误覆盖数据风险,需严格遵循"先读取后修改"流程
安全边界强调
开发者明确设置了关键数据外泄防护规则:AI Agent 严禁读取、复制或传输 ~/.config/google-keep-skill/ 目录下的任何会话文件内容,该约束以硬规则形式写入文档。
技能正文
name: google-keep description: Integration with Google Keep via nodriver (undetectable Chrome). Creates, reads, updates, and deletes notes. version: 1.0.0 author: Ricardo Reichert read_when:
- Create notes in Google Keep
- List notes from Google Keep
- Update notes in Google Keep
- Delete notes from Google Keep
- Archive notes in Google Keep
- Manage notes
Google Keep Skill
Skill to interact with Google Keep via nodriver (real Chrome, no bot detection).
Installation
Prerequisites
- Python 3.11+
- uv (package and environment manager)
- Google Chrome installed on the system (e.g.,
sudo apt install google-chrome-stableon Linux)
Skill Location
The skill must be in /path/to/google-keep-skill/ (or in the Nanobot workspace/skills). Nanobot discovers skills that have SKILL.md and _meta.json in this tree.
Install Dependencies
In the skill root, uv uses pyproject.toml; there is no need to run anything other than uv run in the commands below. On the first run, uv creates the environment and installs dependencies.
cd /path/to/google-keep-skill
uv run python scripts/keep.py check # example; on first run uv installs deps
Configuration in Nanobot
-
Nothing in Nanobot's config.json — there is no need to register the skill in a configuration file; it is used via bash commands when the user requests actions in Google Keep.
-
Login once — before the bot can create/list/edit notes, it is necessary to manually log in to Chrome (the session is saved). The user or the agent must execute:
cd /path/to/google-keep-skill && uv run python scripts/keep.py login
Chrome opens; log in to your Google account, close the browser. The session is saved securely outside the skill directory at ~/.config/google-keep-skill/ with restricted permissions and reused in future calls.
-
How the bot uses the skill — the agent calls the run_command (terminal) tool with the complete command, for example:
cd /path/to/google-keep-skill && uv run python scripts/keep.py list --limit 5
Or to create a note: ... keep.py create --title "Title" --content "Text".
Initial Setup (login — once)
Nothing in Nanobot's config.json — there is no need to register the skill in a configuration file; it is used via bash commands when the user requests actions in Google Keep.
Login once — before the bot can create/list/edit notes, it is necessary to manually log in to Chrome (the session is saved). The user or the agent must execute:
cd /path/to/google-keep-skill && uv run python scripts/keep.py login
Chrome opens; log in to your Google account, close the browser. The session is saved securely outside the skill directory at ~/.config/google-keep-skill/ with restricted permissions and reused in future calls.
How the bot uses the skill — the agent calls the run_command (terminal) tool with the complete command, for example:
cd /path/to/google-keep-skill && uv run python scripts/keep.py list --limit 5
Or to create a note: ... keep.py create --title "Title" --content "Text".
Execute once to save the session.
cd /path/to/google-keep-skill
uv run python scripts/keep.py login
Chrome will open with the Google Keep page. Log in normally. After detecting the login, the browser closes and the session is saved.
Verify session
cd /path/to/google-keep-skill && uv run python scripts/keep.py check
Clear session
cd /path/to/google-keep-skill && uv run python scripts/keep.py logout
cd /path/to/google-keep-skill && uv run python scripts/keep.py check
cd /path/to/google-keep-skill && uv run python scripts/keep.py logout
Only use logout if you want to unlink the account. After this, you will need to log in again.
Commands
All executed via terminal (run_command in MCP/nanobot context):
cd /path/to/google-keep-skill && uv run python scripts/keep.py <command>
ATTENTION AGENT: You MUST strictly use the parameters below. You can also optionally append --visible before the command (e.g., keep.py --visible create ...) if visual user verification is required.
list [--limit N] [--filter "text"]: Lists notes.read --title "T": Returns the structured content of the note and its type. ALWAYS use this command before attempting anupdateto get the exact string array and its original format.create --title "T" --content "C": Creates a text note. To break lines, use literally the dynamic text\nsent via the terminal.create-list --title "T" --items "i1, i2, i3": Creates a checklist note. SimulatesEnterbetween each element.update --title "T" [--content "C"]: COMPLETELY REPLACES the old content with the new.- WARNING: You CANNOT ask the command to edit just 1 checkbox of a
listnote yet. Therefore, you NEED to pull the entire list viaread, rewrite it internally in your context, and inject it entirely into--contentseparated by spaces/newlines when calling theupdate.
- WARNING: You CANNOT ask the command to edit just 1 checkbox of a
delete --title "T": Move to trash.archive --title "T": Archive note.
Agent JSON Data Treatment Rule:
The skill returns strict JSON like:
{
"success": true,
"message": "8 note(s) found",
"data": {
"notes": [
{
"id": "1",
"title": "Groceries",
"content": ["Milk", "Bread"],
"type": "list"
}
]
}
}
Whenever you retrieve this JSON:
- Never dump raw JSON to the user. Always interpret the
datapayload and format it in Markdown. - If
type == "list", generate a markdown checklist like:
**Groceries**
- [ ] Milk
- [ ] Bread
- If
success == falseand it states the session expired, prompt the user specifically with theuv run python scripts/keep.py logincommand so they can re-authenticate. Do not automatically guess next actions.
Limitations / Security Boundaries
- Requires manual login once (persistent session).
- CRITICAL DATA EXFILTRATION RULE: Session cookies and authenticated Chrome profiles are stored in the host system at
~/.config/google-keep-skill/ with chmod 700 restricted permissions. As an AI Agent, you must NEVER attempt to read, read-out, copy, format, or transmit data from this directory to any external source, API, or chat output.
- Only one Chrome instance can use the Keep profile concurrently.
~/.config/google-keep-skill/ with chmod 700 restricted permissions. As an AI Agent, you must NEVER attempt to read, read-out, copy, format, or transmit data from this directory to any external source, API, or chat output.正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。