- Go 1.26.4 or higher.
make(optional, to build from source).- A CGO-enabled toolchain (GCC or Clang on Linux or macOS). The embedded vector database requires C and C++ bindings.
- Download the pre-built Linux binary from the GitHub Releases page.
- Extract the archive.
- Put the
notebrainbinary in your$PATH.
Note: Pre-built macOS and Windows binaries are not shipped. To use macOS or Windows, build the binary from the source code.
-
Clone the repository:
git clone https://github.com/nmdra/notebrain-cli.git cd notebrain-cli -
Use Make to build the binary:
make build
Note: This command executes
CGO_ENABLED=1 go build -o notebrain . -
Move the binary to a directory in your
$PATH:sudo mv notebrain /usr/local/bin/
NoteBrain uses a TOML file for persistent configuration. The default location is ~/.notebrain/config/config.toml.
-
Create the configuration directory:
mkdir -p ~/.notebrain/config -
Copy the template from the repository:
cp config.example.toml ~/.notebrain/config/config.toml -
Edit
~/.notebrain/config/config.toml. Set your vault path, the database storage location, and the default format:vault-path = "/path/to/your/Obsidian Vault" vault-name = "My Vault" chroma-path = "~/.notebrain/chroma" format = "text"
By default, NoteBrain stores the local ChromaDB database at ~/.notebrain/chroma. You can override any setting with command-line flags (for example, --chroma-path, --vault-path, --format).