๐Ÿป

bearcli

The missing open-source CLI for Bear notes. Read, search, export, and manage your notes from the terminal.

โœจ MCP + agent skill fuzzy search terminal UI markdown export git mirror secret redaction json/tsv output python library
CI MIT license Python 3.13+ macOS
bearcli
โฏ bearcli list -n 3
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ ID                                   โ”‚ Title              โ”‚ Tags  โ”‚ Status โ”‚ Modified   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ C44D09DC-7F0E-43BB-BEB8-67E3A389A448 โ”‚ bearcli fieldnotes โ”‚ notes โ”‚        โ”‚ 2026-07-27 โ”‚
โ”‚ 7766167B-A410-48A9-8F1A-FB66F2BD8FE4 โ”‚ TODO               โ”‚ work  โ”‚ pinned โ”‚ 2026-03-03 โ”‚
โ”‚ 4DE9B0D9-62FD-4462-A3DA-3D2AFF7AA1B4 โ”‚ Smarthome          โ”‚ home  โ”‚        โ”‚ 2026-07-26 โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

โฏ bearcli search "quarterly planing" --fuzzy -n 1
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ Score โ”‚ ID                                   โ”‚ Title    โ”‚ Match                    โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚    91 โ”‚ 2F148B6A-082E-4C3D-82A7-1D60A64BC3FD โ”‚ Planning โ”‚ โ€ฆquarterly planning docโ€ฆ โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

โฏ bearcli export ~/bear-notes --sync --redact-secrets --push
Exported to ~/bear-notes: 3 written, 1919 unchanged, 2 secrets redacted, pushed
bearcli ui - search, edit, and tag notes in the terminal

Install

โฏ brew install michel-tricot/tap/bearcli # or: uv tool install bearcli, pipx install bearcli

Why bearcli

โœจ Agent-ready

An Agent Skill for Claude Code. An MCP server for Claude Desktop, Cursor, and friends. bearcli mcp install wires up your client.

Fuzzy search

Typo-tolerant ranked search across titles, tags, and text. Plain substring matching by default.

Git backup & sync

--push mirrors your notes to a private repo. Only changed notes are rewritten. Every edit stays in history. Never gets stuck.

Secret protection

Exports are scanned for credentials first. Block, or redact with --redact-secrets. Fully offline.

Terminal UI

A full Bear client in your shell. Live-filtered list, inline markdown editing, tag autocompletion.

Scriptable

Every listing has json and tab-separated text output. Built for jq, cut, and pipes.

Open source

MIT licensed, end to end. Read the code, audit it, fork it. No black box between you and your notes.

Python library

The engine ships separately as bearkit. A typed Python API for reading, searching, writing, and secret scanning.

โœจ For AI agents

bearcli ships an Agent Skill that teaches Claude Code how to drive the CLI. It also ships an MCP server (bearcli mcp run, stdio) for Claude Desktop, Cursor, VS Code, and friends. Note content is secret-redacted by default. Your agent can answer โ€œwhat did I write about X?โ€ straight from your notes.

โฏ bearcli skills install
โฏ bearcli mcp install # claude-desktop, claude-code, cursor, vscode, ...

Commands

CommandWhat it does
bearcli skills list / show / installBundled Agent Skill - inspect it, or install into an agent's skills directory
bearcli mcp run / installMCP server (stdio) - serve notes to Claude Desktop, Cursor, and friends
bearcli note listList notes with tag, date, and status filters
bearcli note searchSearch titles, tags, and content - --fuzzy for typo tolerance
bearcli note getPrint a note's markdown, metadata, and attachment paths
bearcli note createCreate a note from arguments or stdin
bearcli note append / replace / renameEdit an existing note
bearcli note attachAdd a file to a note
bearcli note tag / untagAdd or remove a tag on one note
bearcli note trash / archive / openFile a note away, or open it in Bear
bearcli uiBear in the terminal - search, edit, create, and tag notes
bearcli statsLibrary statistics - counts, words, top tags, notes per year
bearcli doctorDiagnose the setup - PATH conflicts, database access, MCP wiring
bearcli tag list / rename / deleteManage tags across all notes
bearcli exportExport everything as browsable markdown folders - secret-scanned, and --push mirrors to a git repo