DRAFT STAGING ARTIFACT — not a live product, not deployed. "Built" below means implemented and tested locally today; "Planned" means not yet built.
SecondBrainDB

What SecondBrainDB actually is today

A tenant-isolated, permission-aware schema, a small HTTP API, and a tested authorization layer — honestly labeled, nothing overstated. See Guided Start for the step-by-step build journey and copyable AI prompts that sit on top of this foundation.

How it works

An AI agent, model, or human teammate authenticates with an API key scoped to one tenant and one agent identity. It writes a memory (an observation, fact, preference, event, or note) into a workspace, tagging it with a visibility: private to the author, shared within the workspace, or visible tenant-wide. Any other authorized agent can later search or fetch that memory — but only if the visibility rule (or an explicit share) actually allows it. Every write and every authorization decision is appended to a tamper-evident, hash-chained audit log.

Core model

ConceptWhat it means
Tenant / WorkspaceYour organization, and the separate memory spaces inside it (one per project or app).
AgentA human, an AI model, or a service that can read or write memories — always acting under one API key.
MemoryAn observation, fact, preference, event, or note. Never overwritten in place — edits create a new, linked version.
VisibilityPrivate (author only), workspace, or tenant — plus explicit per-agent shares. See Privacy.
DecisionA distinguished record of "this is what was decided," separate from raw observations.
Audit logA tamper-evident, hash-chained record of every write and every authorization decision.

Use cases

AI agent builders

Durable, queryable, permission-aware memory for an agent's observations and decisions, instead of building it from scratch on a raw vector store.

Internal AI platform teams

One auditable memory store across several AI-assisted workflows, instead of state scattered across scripts and chat exports.

Agencies / consultancies

Strict per-client tenant isolation with one shared operational tool, instead of a bespoke database per client.

These are target use cases we believe fit the product, not case studies — no customer has used SecondBrainDB in production yet.

Built today built

Schema

Tenants, workspaces, agents, memories (with visibility + explicit shares), decisions, jobs/events, tags, relationships, audit log, retention-policy records, export records.

API

Health check, create/read/share a memory, full-text search within your tenant and visibility scope, create a workspace — all over a small HTTP interface with no framework dependency.

Authorization

Every request's identity comes from a hashed API key server-side. A missing, wrong-tenant, or not-visible-to-you request returns a clean 401/403/404 — never silent access.

Tests

54 automated tests, including real-database tests against disposable MySQL, covering cross-tenant isolation and within-tenant permission boundaries specifically.

Planned, not yet built planned

Vector search

An optional similarity-search layer alongside full-text search. Not started.

Retention automation

Policy records exist; automatic enforcement (expiry, legal hold) does not yet.

Export / backup / restore

Request tracking exists; the actual export pipeline does not yet.

Hosted offering

No hosting, pricing, or account system exists yet — see Editions.

Connector SDKs

ChatGPT/Claude/Ollama adapters are a documented direction, not built code — see Developers.