| name | dnote |
| description | Save, retrieve, and manage notes using Dnote CLI. Use when the user wants to capture information, search existing notes, reference saved knowledge, or organize notes into books. Supports adding notes, searching with full-text, viewing books/notes, editing, and removing notes. Perfect for building a personal knowledge base. |
| metadata | {"openclaw":{"emoji":"📝","homepage":"https://www.getdnote.com/docs/cli/","requires":{"bins":["dnote"]},"primaryEnv":"DNOTE_API_KEY"}} |
Dnote Notes
Manage a personal knowledge base using Dnote CLI.
Setup
Installation
curl -s https://www.getdnote.com/install | sh
brew install dnote
Configuration
Dnote follows XDG directories:
- Config:
~/.config/dnote/dnoterc
- Database:
~/.local/share/dnote/dnote.db
editor: vim
apiEndpoint: https://api.dnote.io
enableUpgradeCheck: true
Sync Setup (Optional)
dnote login
Quick Start
{baseDir}/scripts/dnote.sh add cli "git rebase -i HEAD~3"
echo "docker system prune" | {baseDir}/scripts/dnote.sh add docker
{baseDir}/scripts/dnote.sh find "docker compose"
{baseDir}/scripts/dnote.sh recent
{baseDir}/scripts/dnote.sh books
{baseDir}/scripts/dnote.sh view cli
{baseDir}/scripts/dnote.sh get cli 1
Commands
Adding Notes
| Command | Description |
|---|
add <book> <content> | Add note to book |
add-stdin <book> | Add from stdin (pipe-friendly) |
quick <content> | Quick add to 'inbox' book |
Retrieving Notes
| Command | Description |
|---|
view [book] | List books or notes in book |
get <book> <index> | Get specific note by index |
find <query> | Full-text search (use -b <book> to filter) |
recent [n] | Show n most recent notes (default: 10) |
books | List all books |
export [book] | Export notes as JSON |
config | Show config and paths |
Managing Notes
| Command | Description |
|---|
edit <id> [content] | Edit note by ID |
move <id> <book> | Move note to different book |
remove <id> | Delete note |
remove-book <book> | Delete entire book |
Sync & Info
| Command | Description |
|---|
sync | Sync with Dnote server |
status | Show status and stats |
config | Show config file locations |
login | Authenticate with server (native CLI) |
logout | Remove credentials (native CLI) |
Collection IDs / Books
- Use any book name (auto-created on first use)
- Common book names:
cli, docker, git, ideas, snippets, journal, inbox
- Books are created automatically when you add the first note
Examples
{baseDir}/scripts/dnote.sh add cli "grep -r pattern . --include='*.py'"
git log --oneline -10 | {baseDir}/scripts/dnote.sh add git
{baseDir}/scripts/dnote.sh quick "Remember to update README"
{baseDir}/scripts/dnote.sh find "docker compose"
{baseDir}/scripts/dnote.sh find "config" -b cli
{baseDir}/scripts/dnote.sh get cli 1 --format raw
{baseDir}/scripts/dnote.sh export cli --json | jq '.notes[].content'
{baseDir}/scripts/dnote.sh recent 20
{baseDir}/scripts/dnote.sh find "postgres" --json
Using Notes in AI Context
Retrieve relevant notes for the current task:
{baseDir}/scripts/dnote.sh find "python argparse"
{baseDir}/scripts/dnote.sh get cli 5
{baseDir}/scripts/dnote.sh export python
Auto-capture useful information:
{baseDir}/scripts/dnote.sh add docker "Multi-stage builds reduce image size"
{baseDir}/scripts/dnote.sh add journal "$(date): Deployed v2.3 to production"
Patterns
Daily Journal
{baseDir}/scripts/dnote.sh add journal "$(date +%Y-%m-%d): Started work on feature X"
{baseDir}/scripts/dnote.sh view journal | head -20
Code Snippets
{baseDir}/scripts/dnote.sh add python "List comprehension: [x for x in items if x > 0]"
{baseDir}/scripts/dnote.sh find "list comprehension"
Command Reference
curl -s https://api.example.com | {baseDir}/scripts/dnote.sh add api
{baseDir}/scripts/dnote.sh view api
Integration with Workflows
The skill provides helper functions for common patterns:
| Function | Use Case |
|---|
dnote:search <query> | Find relevant context before answering |
dnote:capture <book> <content> | Save useful info discovered during task |
dnote:recent [n] | Review recently captured notes |
dnote:export-book <book> | Load entire book into context |
Config File
Create ~/.config/dnote/dnoterc:
editor: code --wait
apiEndpoint: https://api.dnote.io
enableUpgradeCheck: true
Tips
- Use specific book names:
python, bash, docker, kubernetes, ideas
- Search is full-text: Works across all note content
- Indexes are 1-based: First note is
1, not 0
- Pipes work great: Capture command output directly
- Sync optional: Works fully offline, sync when ready
Direct Dnote CLI
For operations not covered:
dnote edit 5
dnote edit oldname -n newname
dnote sync --full
dnote --dbPath /path/to/custom.db view
Docs: https://www.getdnote.com/docs/cli/