-
Notifications
You must be signed in to change notification settings - Fork 10
Getting Started
sysid edited this page Apr 11, 2026
·
2 revisions
Get productive with bkmr in 5 minutes.

No dependencies required for basic functionality. Semantic search works offline — no API keys needed.
# Via Cargo (Rust)
cargo install bkmr
# Via pip/pipx
pip install bkmr
# Via Homebrew
brew install bkmr
export ORT_DYLIB_PATH=/opt/homebrew/lib/libonnxruntime.dylib
# From source
git clone https://github.com/sysid/bkmr.git && cd bkmr && cargo build --releaseOn Linux, bkmr needs an external clipboard tool (clipboard data is process-owned and would be lost when bkmr exits):
| Display Server | Required Package | Install Command |
|---|---|---|
| Wayland | wl-clipboard |
sudo apt install wl-clipboard |
| X11 |
xclip or xsel
|
sudo apt install xclip |
bkmr auto-detects Wayland vs X11 via WAYLAND_DISPLAY.
# 1. Generate configuration
bkmr --generate-config > ~/.config/bkmr/config.toml
# 2. Create database
bkmr create-db ~/.config/bkmr/bkmr.db
# 3. Set environment variable (add to .bashrc/.zshrc for persistence)
export BKMR_DB_URL=~/.config/bkmr/bkmr.dbVerify: bkmr --version and bkmr --help
# Add a web URL (metadata is fetched automatically)
bkmr add https://github.com/sysid/bkmr rust,cli
# Search for it
bkmr search rust
# Open it in your browser
bkmr open <id># Add a snippet (copied to clipboard when accessed)
bkmr add "SELECT * FROM users WHERE active = true" sql,_snip_ --title "Active Users Query"
# Find and copy it
bkmr search --fzf -t _snip_
# Press Enter to copy to clipboard# Add a shell script (interactive editor opens)
bkmr add "" ops,_shell_ --title "Deploy to Staging"
# Write your script in the editor, save, and it's stored
# Execute it later
bkmr search --fzf -t _shell_
# Press Enter, edit if needed, then execute# Add markdown that renders in browser with TOC
bkmr add "# Project Setup\n\n## Prerequisites\n- Node.js 18+\n- PostgreSQL" docs,_md_ --title "Setup Guide"
# Render it
bkmr open <id>bkmr search --fzf
# Keyboard shortcuts in fzf:
# Enter: Open/execute bookmark
# Ctrl-O: Copy URL/content to clipboard
# Ctrl-E: Edit bookmark
# Ctrl-D: Delete bookmark
# Ctrl-A: Clone bookmark
# Ctrl-P: Show detailsbkmr handles upgrades automatically:
- Checks if database migrations are needed
- Creates a timestamped backup (e.g.,
bkmr_backup_20250406.db) - Applies necessary migrations
cargo install bkmr --force # or: pip install --upgrade bkmr / brew upgrade bkmrIf you are integrating bkmr with an AI agent, see Agent Integration for JSON output, memory patterns, and bulk import.
- Core Concepts — Understand bookmarks, tags, and content types
- Basic Usage — Learn common commands and workflows
- Content Types — All content types and their actions
- Search and Discovery — Master search, tags, and filters
- Configuration — Customize bkmr to your workflow
bkmr