Local-first agent runtime and SDK for grounded retrieval, durable memory, governed tools, and auditable agent workflows.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file secondbrain_os-0.5.1.tar.gz.
File metadata
- Download URL: secondbrain_os-0.5.1.tar.gz
- Upload date:
- Size: 4.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4024bdca37a6dd68c9d4e6d708510e6e813695368e01d448e097b24370e080c
|
|
| MD5 |
5af3abd6b17526f3ba6cd7b58bd30689
|
|
| BLAKE2b-256 |
f6254e72299e325847e76df72a87ae8337c5523e4b74f4e5fe81918b39adb274
|
Provenance
The following attestation bundles were made for secondbrain_os-0.5.1.tar.gz:
Publisher:
publish.yml on contextosai/SecondBrain-collab
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
secondbrain_os-0.5.1.tar.gz -
Subject digest:
c4024bdca37a6dd68c9d4e6d708510e6e813695368e01d448e097b24370e080c - Sigstore transparency entry: 1692825767
- Sigstore integration time:
-
Permalink:
contextosai/SecondBrain-collab@dcb7c0b1811d6e8a5ccb1f49e87e47d1695ee256 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/contextosai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dcb7c0b1811d6e8a5ccb1f49e87e47d1695ee256 -
Trigger Event:
push
-
Statement type:
File details
Details for the file secondbrain_os-0.5.1-py3-none-any.whl.
File metadata
- Download URL: secondbrain_os-0.5.1-py3-none-any.whl
- Upload date:
- Size: 5.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebe5d8118281739daebf7b9eb75bcbc52b9b67fa0145a8dacbad106937e4b562
|
|
| MD5 |
3a6185d8c230cdb0c7498b380949e936
|
|
| BLAKE2b-256 |
63488e3e95b285c3ca894be2b0c4b0b092b81833c880c1c6bb7dba977ab8f054
|
Provenance
The following attestation bundles were made for secondbrain_os-0.5.1-py3-none-any.whl:
Publisher:
publish.yml on contextosai/SecondBrain-collab
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
secondbrain_os-0.5.1-py3-none-any.whl -
Subject digest:
ebe5d8118281739daebf7b9eb75bcbc52b9b67fa0145a8dacbad106937e4b562 - Sigstore transparency entry: 1692825949
- Sigstore integration time:
-
Permalink:
contextosai/SecondBrain-collab@dcb7c0b1811d6e8a5ccb1f49e87e47d1695ee256 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/contextosai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dcb7c0b1811d6e8a5ccb1f49e87e47d1695ee256 -
Trigger Event:
push
-
Statement type: