返回顶部
g

google-keep谷歌Keep管理

Read, create, edit, search, and manage Google Keep notes and lists via CLI.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
709
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

google-keep

技能名称: google-keep
详细描述:

Google Keep CLI 技能

使用非官方的 gkeepapi 从命令行管理 Google Keep 笔记和列表。

设置

安装后,CLI 位于技能目录中。设置一个便捷的别名或包装器:

bash
SKILL_DIR=<此技能路径> # 例如 skills/google-keep
alias gkeep=$SKILLDIR/.venv/bin/python3 $SKILLDIR/gkeep.py

或者创建一个全局包装器:

bash
cat > ~/.local/bin/gkeep << EOF
#!/bin/bash
SKILL_DIR=$(dirname $(readlink -f $0))/../.openclaw/workspace/skills/google-keep
exec $SKILLDIR/.venv/bin/python3 $SKILLDIR/gkeep.py $@
EOF
chmod +x ~/.local/bin/gkeep

身份验证

首次设置(OAuth 令牌交换):

  1. 1. 在浏览器中访问 https://accounts.google.com/EmbeddedSetup
  2. 使用您的 Google 帐户登录
  3. 在同意屏幕上点击“我同意”(页面可能会无限旋转——忽略它)
  4. 打开开发者工具:F12 → 应用程序标签 → Cookie → accounts.google.com
  5. 复制 oauth_token cookie 的值
  6. 运行:

bash
gkeep auth <邮箱>

使用预先获取的主令牌:

bash
gkeep auth-master <邮箱>

凭据存储在 <技能目录>/.config/ 中(权限为 600)。主令牌拥有完整的帐户访问权限——请像对待密码一样对待它。它不会过期(与标准的 OAuth 刷新令牌不同)。

命令

列出笔记

bash
gkeep list # 活跃笔记
gkeep list --archived # 包含已归档的
gkeep list --pinned # 仅显示已置顶的
gkeep list --label 购物 # 按标签筛选
gkeep list --json # JSON 输出
gkeep list -v # 显示 ID

搜索

bash
gkeep search 杂货
gkeep search 待办事项 --json

获取特定笔记

bash
gkeep get <笔记-id>
gkeep get 购物清单 # 按标题搜索(不区分大小写)
gkeep get --json

创建笔记

bash
gkeep create --title 想法 --text 一些想法
gkeep create --title 杂货 --list --items 牛奶 鸡蛋 面包
gkeep create --title 重要 --pin --color Red --label 工作

编辑笔记

bash
gkeep edit --title 新标题
gkeep edit --text 更新后的文本
gkeep edit --pin true
gkeep edit --archive true
gkeep edit --color Blue

列表操作

bash
gkeep check 杂货 牛奶 # 勾选一个项目
gkeep check 杂货 牛奶 --uncheck # 取消勾选
gkeep check 杂货 m --all # 勾选所有匹配项
gkeep add-item 杂货 黄油 奶酪 # 添加项目

删除(移至回收站)

bash
gkeep delete

标签

bash
gkeep labels # 列出所有标签
gkeep labels --json

导出 / 备份

bash
gkeep dump # 所有笔记以 JSON 格式输出
gkeep dump > backup.json

颜色

有效颜色:白色、红色、橙色、黄色、绿色、青色、蓝色、深蓝、紫色、粉色、棕色、灰色

工作原理

  • - 使用 gkeepapi(1600+ 星标,积极维护)——一个非官方的逆向工程 Google Keep 客户端
  • 通过 gpsoauth 进行身份验证——Google Play 服务 OAuth 流程以获取主令牌
  • 状态在本地缓存(.config/state.json),以便在初始同步后快速启动
  • 主令牌不会过期,因此无需重新进行身份验证
  • 非官方 API——Google 随时可能破坏兼容性(但 gkeepapi 多年来一直保持稳定)

安全说明

  • - 主令牌授予对关联 Google 帐户的完全访问权限
  • 凭据以 600 权限存储在 .config/ 中
  • 切勿将 .config/ 提交到版本控制
  • delete 将笔记移至回收站(可恢复)——不会永久删除

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 google-keep-1776420049 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 google-keep-1776420049 技能

通过命令行安装

skillhub install google-keep-1776420049

下载

⬇ 下载 google-keep v1.0.0(免费)

文件大小: 6.53 KB | 发布时间: 2026-4-17 19:06

v1.0.0 最新 2026-4-17 19:06
Initial release: Manage Google Keep notes and lists via the command line.

- Read, create, search, edit, and delete Google Keep notes and checklists using CLI commands.
- Authenticate with Google using oauth_token or master token; credentials stored securely.
- Supports filtering, archiving, pinning, labeling, color, and exporting notes to JSON.
- Bulk list and item management, including check/uncheck and label operations.
- Uses unofficial gkeepapi and gpsoauth for backend functionality.
- Credentials and state cached locally for convenience and performance.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部