Brain
PlaygroundDocsPricing
GitHubSign inGet your API key
BrainApache 2.0 · self-host or cloud

Memory for AI agents that knows what is still true.

Brain keeps one current value per field, with the instant it became true and where it came from. A new value supersedes the old one rather than sitting beside it — and a recall with no answer says so instead of guessing.

Get your API key — freeRead the docs

Apache 2.0 for the engine, the SDKs, the MCP server and the eval harness. Run it yourself or let us run it.

npm install @brain-db/sdk
import { BrainHttpClient } from '@brain-db/sdk'

const brain = new BrainHttpClient({ baseUrl, apiKey })

// march 2023
await brain.encode("Priya is a staff engineer.")

// a year later, a fact that contradicts it
await brain.encode("Priya is now an engineering manager.")

await brain.recall("what is Priya’s role?")
// → answer_kind: "single"
// "engineering manager", since 2024-03-02
// the old value is superseded, not returned

Four stages, then the write is durable.

encode validates, embeds, reserves a slot and persists. The WAL fsync is the acknowledgement barrier, so the call returns as soon as the write cannot be lost. Everything else is derived after that, off the response path. Two of the four stages take something out of the line; the other two turn nothing away.

Write path · flowSheet 2 of 5
The synchronous write path drawn as four stages in seriesA single line carrying a write through four stages in order: validate, embed, reserve, persist. Validate bleeds malformed input out of the line and embed bleeds content-hash duplicates; reserve and persist turn nothing away and are drawn open. The line ends at an acknowledgement barrier marked WAL fsync, after which the derived stages run off the response path. Every stage and what it removes is written out in the list beneath the drawing.WRITE INACKWAL FSYNCDERIVED1VALIDATEMALFORMED2EMBEDDUPLICATE3RESERVE4PERSIST
1Validate
Checks the input against the planner, and refuses a namespace with no usable model credential.
MALFORMEDEmpty or malformed writes, and writes Brain could not later ground.
2Embed
Turns the text into a vector with the bundled model. Nothing leaves the process.
DUPLICATEA content-hash match returns the memory that already exists instead of storing a second copy.
3Reserve
Takes a fresh memory id from the shard's slot allocator.
Turns nothing away.
4Persist
Commits a single-phase write to the WAL. The fsync is the acknowledgement barrier.
Turns nothing away.

After the acknowledgement, off the response path: auto_edge, temporal_edge, extractor, hype, lexical index.

A test bench, not a claim about one.

Encode a few sentences, then ask a question, right here. This runs the real write path and the real read path against a live sandbox — the typed graph you get back is the one Brain built. No signup.

Pipeline output
Encode the facts, then recall — the answer and the extracted graph appear here.

Watch it in production.

Every write, read, and quality signal in one view — write volume by outcome, junk and duplicate rates, and cost attributed per pipeline stage. Instrumented in the engine, so there is no third-party dashboard to stand up alongside it.

One part, two configurations.

Same API, same guarantees, same binary — whether it is the brain container inside your VPC or our managed cloud. The specification below is the part itself, and it does not change between them.

Configuration · specificationSheet 4 of 5
A

Self-hosted

One container

The `brain` Docker image. Storage, vectors and the embedding model all live in the one process — no Postgres, no Neo4j, no Redis, no separate vector database. Apache 2.0, your infrastructure, no ops tax.

Runtime
Docker (Linux)
Storage
redb + mmap arena
Vectors
built-in HNSW
Embeddings
BGE bundled
B

Cloud

Managed

We run it for you. Auto-scaling, replicas and the observability dashboard are included. Pay for compute, not seats.

Runtime
managed
Storage
managed
Vectors
managed
Scale
elastic
Specification
IsLicence
Apache 2.0 — the engine, the SDKs, the MCP server and the eval harness.
IsFootprint
One binary. Zero-dependency core, no second database alongside it.
IsTypes
Five: fact, preference, event, entity, relation — each with a lifecycle.
NotNot a vector DB
We do not sell storage, embeddings or benchmark numbers.
NotNot an agent loop
No orchestration, no runtime, no opinion about your agent.
NotNot a graph DB
There is no graph language to learn and no graph to query.
IssueSheet 5 of 5

Give your agent something worth remembering.

One install, one API key, and the record above is the record your agent reads. The engine is free forever; we make money on hosting, not on paywalling the parts that make it work.

Installnpm install @brain-db/sdk
Get your API key — freeTry the playgroundRead the source
Licence
Apache 2.0
SDKs
TypeScript · Python · Rust
Deploy
Self-hosted or cloud
Cost
Free tier, no seat pricing
Brain

Memory that agents can actually use. Rust-core, four-stage write path, three-retriever hybrid search. Open source Apache 2.0.

GitHubX / TwitterDiscussions

Product

  • How it works
  • See inside
  • Deploy
  • Pricing

Developers

  • Documentation
  • Start here
  • Self-host
  • Recipes

SDKs

  • TypeScript
  • Python
  • Rust
  • API reference

Company

  • Arc Labs
  • About
  • Careers
  • Security
Single"what is Priya’s role?"engineering managerMany"what has Priya done at Acme?"3 members, rankedNone"what is Priya’s salary?"nothing, and no guessBRAINBRAINBRAIN
© 2026 Arc Labs · BangalorePrivacyTermsDPAApache 2.0llms.txt