Skip to main content

SecondBrain

SecondBrain is a local-first agent runtime and SDK for grounded retrieval, durable memory, governed tools, and auditable agent workflows.

It is designed for builders who want a local runtime that can ingest private material, retrieve it with citations, run governed tools, keep durable session state, and expose the same memory surface through CLI, SDK, HTTP, and MCP.

Install

SecondBrain supports Python 3.12 and 3.13.

pip install secondbrain-os

For the full local retrieval stack, including the default LanceDB backend and bundled embedding/reranking dependencies:

pip install "secondbrain-os[local]"

For all optional providers, vector backends, parsers, integrations, and sandbox extras:

pip install "secondbrain-os[all]"

First Commands

sb --help
sb onboard --vault "$PWD/vault" --approval-mode safe --skip-knowledge --skip-index
sb ingest vault/
sb context index
sb ask "What changed this week?" --no-synthesize

Provider-backed synthesis is optional. The local retrieval path can return citation-first answers before you configure external model credentials.

Core Surfaces

  • sb: local CLI for setup, ingest, retrieval, chat, workflows, governance, quality checks, and operator workflows.
  • brain.sdk: Python facade for local and HTTP-backed integrations.
  • Memory API v1: HTTP routes and MCP tools for recall, context packs, grounded answers, decisions, open loops, and audit-friendly citations.
  • Runtime assets: packaged prompts, contracts, migrations, and static serve UI files needed after installation.

Documentation

Release files for secondbrain-os 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for secondbrain-os 0.5.1
File Size Uploaded
secondbrain_os-0.5.1.tar.gz 4.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for secondbrain-os 0.5.1
File Interpreter ABI Platform
secondbrain_os-0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.5 MB

Release files / secondbrain_os-0.5.1.tar.gz

Download URL secondbrain_os-0.5.1.tar.gz
Size 4.8 MB
Tags Source
SHA-256 checksum
How to use checksums
c4024bdca37a6dd68c9d4e6d708510e6e813695368e01d448e097b24370e080c
BLAKE2b-256 checksum
How to use checksums
f6254e72299e325847e76df72a87ae8337c5523e4b74f4e5fe81918b39adb274
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.

Transparency log

Release files / secondbrain_os-0.5.1-py3-none-any.whl

Download URL secondbrain_os-0.5.1-py3-none-any.whl
Size 5.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ebe5d8118281739daebf7b9eb75bcbc52b9b67fa0145a8dacbad106937e4b562
BLAKE2b-256 checksum
How to use checksums
63488e3e95b285c3ca894be2b0c4b0b092b81833c880c1c6bb7dba977ab8f054
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page