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
| Concept | What it means |
|---|---|
| Tenant / Workspace | Your organization, and the separate memory spaces inside it (one per project or app). |
| Agent | A human, an AI model, or a service that can read or write memories — always acting under one API key. |
| Memory | An observation, fact, preference, event, or note. Never overwritten in place — edits create a new, linked version. |
| Visibility | Private (author only), workspace, or tenant — plus explicit per-agent shares. See Privacy. |
| Decision | A distinguished record of "this is what was decided," separate from raw observations. |
| Audit log | A tamper-evident, hash-chained record of every write and every authorization decision. |
Use cases
Durable, queryable, permission-aware memory for an agent's observations and decisions, instead of building it from scratch on a raw vector store.
One auditable memory store across several AI-assisted workflows, instead of state scattered across scripts and chat exports.
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
Tenants, workspaces, agents, memories (with visibility + explicit shares), decisions, jobs/events, tags, relationships, audit log, retention-policy records, export records.
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.
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.
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
An optional similarity-search layer alongside full-text search. Not started.
Policy records exist; automatic enforcement (expiry, legal hold) does not yet.
Request tracking exists; the actual export pipeline does not yet.
No hosting, pricing, or account system exists yet — see Editions.
ChatGPT/Claude/Ollama adapters are a documented direction, not built code — see Developers.