Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

secondbrain_os-0.5.1.tar.gz (4.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

secondbrain_os-0.5.1-py3-none-any.whl (5.7 MB view details)

Uploaded Python 3

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

Hashes for secondbrain_os-0.5.1.tar.gz
Algorithm Hash digest
SHA256 c4024bdca37a6dd68c9d4e6d708510e6e813695368e01d448e097b24370e080c
MD5 5af3abd6b17526f3ba6cd7b58bd30689
BLAKE2b-256 f6254e72299e325847e76df72a87ae8337c5523e4b74f4e5fe81918b39adb274

See more details on using hashes here.

Provenance

The following attestation bundles were made for secondbrain_os-0.5.1.tar.gz:

Publisher: publish.yml on contextosai/SecondBrain-collab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for secondbrain_os-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ebe5d8118281739daebf7b9eb75bcbc52b9b67fa0145a8dacbad106937e4b562
MD5 3a6185d8c230cdb0c7498b380949e936
BLAKE2b-256 63488e3e95b285c3ca894be2b0c4b0b092b81833c880c1c6bb7dba977ab8f054

See more details on using hashes here.

Provenance

The following attestation bundles were made for secondbrain_os-0.5.1-py3-none-any.whl:

Publisher: publish.yml on contextosai/SecondBrain-collab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page