google-keep
Read, create, edit, search, and manage Google Keep notes and lists via CLI.
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- google-keep
- metadata
- { "openclaw": { "install": [ { "id": "venv", "kind": "shell", "label": "Create venv and install gkeepapi + gpsoauth", "command": "cd \"$SKILL_DIR\" && uv venv .venv && .venv/bin/pip install gkeepapi gpsoauth" } ], "requires": { "bins": [ "python3", "uv" ] } } }
- description
- Read, create, edit, search, and manage Google Keep notes and lists via CLI.
03 SKILL.md 正文
Google Keep CLI Skill
Manage Google Keep notes and lists from the command line using the unofficial gkeepapi.
Setup
After installing, the CLI lives in the skill directory. Set up a convenience alias or wrapper:
SKILL_DIR="<path-to-this-skill>" # e.g. skills/google-keep
alias gkeep="$SKILL_DIR/.venv/bin/python3 $SKILL_DIR/gkeep.py"
Or create a global wrapper:
cat > ~/.local/bin/gkeep << 'EOF'
#!/bin/bash
SKILL_DIR="$(dirname "$(readlink -f "$0")")/../.openclaw/workspace/skills/google-keep"
exec "$SKILL_DIR/.venv/bin/python3" "$SKILL_DIR/gkeep.py" "$@"
EOF
chmod +x ~/.local/bin/gkeep
Authentication
First-time setup (OAuth token exchange):
- Go to https://accounts.google.com/EmbeddedSetup in your browser
- Log in with your Google account
- Click "I agree" on the consent screen (page may spin forever — ignore it)
- Open DevTools: F12 → Application tab → Cookies → accounts.google.com
- Copy the value of the
oauth_tokencookie - Run:
gkeep auth <email> <oauth_token>
With pre-obtained master token:
gkeep auth-master <email> <master_token>
Credentials are stored in <skill-dir>/.config/ (chmod 600). The master token has full account access — treat it like a password. It does not expire (unlike standard OAuth refresh tokens).
Commands
List notes
gkeep list # Active notes
gkeep list --archived # Include archived
gkeep list --pinned # Pinned only
gkeep list --label "Shopping" # Filter by label
gkeep list --json # JSON output
gkeep list -v # Show IDs
Search
gkeep search "grocery"
gkeep search "todo" --json
Get a specific note
gkeep get <note-id>
gkeep get "Shopping List" # By title (case-insensitive)
gkeep get <id> --json
Create notes
gkeep create --title "Ideas" --text "Some thoughts"
gkeep create --title "Groceries" --list --items "Milk" "Eggs" "Bread"
gkeep create --title "Important" --pin --color Red --label "Work"
Edit notes
gkeep edit <id-or-title> --title "New Title"
gkeep edit <id-or-title> --text "Updated text"
gkeep edit <id-or-title> --pin true
gkeep edit <id-or-title> --archive true
gkeep edit <id-or-title> --color Blue
List operations
gkeep check "Groceries" "milk" # Check off an item
gkeep check "Groceries" "milk" --uncheck # Uncheck
gkeep check "Groceries" "m" --all # Check all matching
gkeep add-item "Groceries" "Butter" "Cheese" # Add items
Delete (trash)
gkeep delete <id-or-title>
Labels
gkeep labels # List all labels
gkeep labels --json
Export / backup
gkeep dump # All notes as JSON
gkeep dump > backup.json
Colors
Valid colors: White, Red, Orange, Yellow, Green, Teal, Blue, DarkBlue, Purple, Pink, Brown, Gray
How it works
- Uses gkeepapi (1,600+ stars, actively maintained) — an unofficial reverse-engineered Google Keep client
- Auth via gpsoauth — Google Play Services OAuth flow to obtain a master token
- State is cached locally (
.config/state.json) for fast startup after the initial sync - Master tokens don't expire, so no re-auth dance
- Unofficial API — Google could break compatibility at any time (but gkeepapi has been stable for years)
Security notes
- The master token grants full access to the associated Google account
- Credentials are stored with 600 permissions in
.config/ - Never commit
.config/to version control deletemoves notes to trash (recoverable) — it does not permanently delete
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.