CLI for Raindrop.io bookmark management. Thin wrapper over the REST API — built for bulk cleanup, tag refactoring, and deduplication from the terminal or an AI agent.
Capabilities
| Service |
Commands |
Description |
| Auth |
RAINDROP_TOKEN env |
Bearer token auth via test-token or OAuth |
| Bookmarks |
bookmarks list |
List raindrops by collection with optional search query |
| Bookmarks |
bookmarks untagged |
List all raindrops with empty tags (client-side filter) |
| Bookmarks |
bookmarks tag |
Add / remove / replace tags on one or many raindrops |
| Collections |
collections list |
Flat, tree (--tree), or TSV (--for-ai) view of all collections |
| Collections |
collections create |
Create a collection under root or a parent; prints new ID |
| Collections |
collections move |
Reparent a collection (--parent root to promote) |
| Collections |
collections rename |
Change a collection's title |
| Collections |
collections delete |
Delete one (--id) or all empty (--empty); items go to Trash |
| Tags |
tags list |
List tags in a collection with usage counts |
| Tags |
tags merge, tags rename |
Combine or rename tags across a collection (bulk) |
| Tags |
tags delete |
Remove a tag from all raindrops that use it |
| Tools |
tools dedup |
Find and remove duplicate raindrops by URL |
| Tools |
tools broken |
Identify raindrops with broken/unreachable links |
| Global |
--dry-run |
Preview every mutation before it runs |
| Global |
--for-ai |
Plain-text / markdown-table output for agent consumption |
| Global |
--debug |
Verbose request/response logging |
Installation
Binary
Download from releases.
Linux / macOS:
ARCH=$(uname -m); [ "$ARCH" = "x86_64" ] && ARCH=amd64; [ "$ARCH" = "aarch64" ] && ARCH=arm64
curl -sL https://github.com/5uck1ess/raindrop-cli/releases/latest/download/raindrop-$(uname -s | tr '[:upper:]' '[:lower:]')-$ARCH -o raindrop
chmod +x raindrop
sudo mv raindrop /usr/local/bin/
Windows (PowerShell):
$arch = if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") { "arm64" } else { "amd64" }
Invoke-WebRequest -Uri "https://github.com/5uck1ess/raindrop-cli/releases/latest/download/raindrop-windows-$arch.exe" -OutFile "$env:USERPROFILE\bin\raindrop.exe"
# Ensure $env:USERPROFILE\bin is on your PATH
Build from Source
git clone https://github.com/5uck1ess/raindrop-cli
cd raindrop-cli
make build # current platform
make build-all # all targets (linux/darwin/windows × amd64/arm64)
Usage
Setup
- Go to app.raindrop.io/settings/integrations and click "Create new app" under For Developers. Name it anything (e.g.
raindrop-cli).
- Click into your new app, scroll down, and hit "Create test token". Copy the token string — it's scoped to your own account only.
- Export it:
export RAINDROP_TOKEN="…"
- The client auto-throttles to 600ms between requests to stay under the 120 req/min API limit.
Why test tokens, not OAuth? This is a single-user CLI — you run it on your own machine against your own bookmarks. OAuth is only needed when a hosted service authenticates other users' Raindrop accounts. Test tokens are the correct choice here.
Bookmarks
raindrop bookmarks list # all raindrops (auto-paginates)
raindrop bookmarks list -c 12345 # scoped to a collection
raindrop bookmarks list -s "devops kubernetes" # Raindrop search syntax
raindrop bookmarks list --include-collection # add COLLECTION column
raindrop bookmarks list --page 0 --per-page 50 # explicit paging (disables auto)
raindrop bookmarks untagged # items with empty tags[]
raindrop bookmarks untagged --for-ai # TSV: id, collection_id, domain, title, link
list auto-paginates through every page by default. Pass --page or --per-page to page explicitly.
Collection IDs: 0 = all, -1 = unsorted, -99 = trash.
Tag a single bookmark or a batch from a TSV file:
raindrop bookmarks tag --id 12345 --add ai,tools # append
raindrop bookmarks tag --id 12345 --remove legacy # remove
raindrop bookmarks tag --id 12345 --set ai,tools # replace
# Batch from TSV. Format: <id>\t<tag1,tag2,...> per line (# comments ignored).
raindrop bookmarks tag --from-file plan.tsv --add --dry-run
raindrop bookmarks tag --from-file plan.tsv --add
raindrop bookmarks tag --from-file plan.tsv --set
Each bookmark is updated via PUT /raindrop/{id} so tag-sets can differ per id. Expect ~100 items/minute on --set, ~50 on --add/--remove (latter need a fetch-then-write).
Collections
raindrop collections list # flat table
raindrop collections list --tree # indented tree (roots by sort, children by count desc)
raindrop collections list --for-ai # TSV: id, parent_id, count, title
raindrop collections list --tree --for-ai # TSV with depth column: depth, id, parent_id, count, title
raindrop collections create --title "🧪 Lab" # at root
raindrop collections create --title "sub" --parent 12345 # nested
raindrop collections rename --id 12345 --to "New Title"
raindrop collections move --id 12345 --parent 67890 # reparent
raindrop collections move --id 12345 --parent root # promote to root
raindrop collections delete --id 12345 # errors if non-empty
raindrop collections delete --id 12345 --force # deletes; items → Trash
raindrop collections delete --empty --dry-run # preview prune
raindrop collections delete --empty # prune zero-count
Deleting a collection moves its items to Trash (Raindrop API behavior), not Unsorted. Use raindrop bookmarks list -c -99 to inspect, or restore in the web UI.
raindrop tags list # all tags with counts
raindrop tags list -c 12345
raindrop tags merge --from old1,old2,legacy --to archive --dry-run
raindrop tags merge --from old1,old2,legacy --to archive
raindrop tags rename --from old --to new
raindrop tags delete --tag unwanted --dry-run
raindrop tools dedup # preview dupes across library
raindrop tools dedup -c 12345 --dry-run
raindrop tools broken -c 12345 # list broken links
AI agent mode
Pipe-friendly plain output — no spinners, no ANSI colors, table-formatted for token efficiency:
raindrop bookmarks list -s "#inbox" --for-ai
raindrop tags list --for-ai | head -20
Tips and Notes
- All mutating commands accept
--dry-run to preview changes before committing — use it on merge, rename, delete, dedup.
--for-ai produces plain text / markdown tables — ideal for piping into tools or feeding directly to an agent. Summary / info lines go to stderr in this mode, so wc -l, jq, awk on stdout see only payload rows.
--debug prints structured request/response logs including rate-limit headers (X-RateLimit-Remaining, X-RateLimit-Reset).
- The client self-throttles to 600ms between calls (120 req/min). Long-running bulk jobs are safe.
- Bulk endpoints handle up to 100 items per call; the CLI paginates automatically.
- For interactive / conversational bookmark queries, pair this with the official Raindrop MCP server — this CLI is the heavy-lifter for deterministic bulk jobs.
Release
Releases are cut automatically on every push to main. Version bumping follows the commit message:
| Commit message contains |
Bump |
Example |
[major-release] |
vX.0.0 |
Breaking changes |
[minor-release] |
vx.Y.0 |
New commands / features |
| (nothing) |
vx.y.Z |
Patch (default) |
GitHub Actions builds a matrix of binaries for linux/darwin/windows × amd64/arm64, uploads them as release assets, and publishes the GitHub Release.
Credits
Design patterns, repo layout, and CLI ergonomics borrow heavily from tanq16's Go CLI projects — in particular the flag/output conventions (--for-ai, --dry-run, markdown-table output for agents) and the thin service/client/cmd separation. Thanks for the template.
License
MIT © 5uck1ess