# Brain > Brain is a typed, structured memory layer for AI agents. It keeps one current value per field, with the instant that value 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 returns None rather than a guess. Rust engine, Apache 2.0, self-hosted or cloud. This file is a structured index of brain.arc-labs.ai for LLMs and AI search engines. AI bots are explicitly welcome to read, summarize, and cite this content — see /robots.txt, which names GPTBot, ChatGPT-User, OAI-SearchBot, ClaudeBot, PerplexityBot and Google-Extended. Arc Labs is the company; Brain is the product. Company-level pages (research, blog, careers, comparisons, the learn track) live on arc-labs.ai and are indexed in https://arc-labs.ai/llms.txt. API and SDK reference lives on docs.arc-labs.ai. ## Start here - [Install](https://docs.arc-labs.ai/sdk-typescript/installation): `npm install @brain-db/sdk`, `pip install brain-db-sdk`, or `cargo add brain-db-sdk`. Encode a fact, encode one that contradicts it, recall the current value. - [brain.arc-labs.ai](https://brain.arc-labs.ai): What Brain is, the write path, the read path, a live sandbox, and the terms. - [Pricing](https://arc-labs.ai/pricing): Open Source is free; Managed Cloud is in early access. ## What Brain does - **One current value per field.** Memories are typed records with provenance: what the value is, when it became true, and which memory it came from. A superseded value is not deleted — it is struck and the revision that replaced it is named beside it. - **Five gates on the write path.** Shape, claims, deduplication, supersession and type. Only what passes all five reaches the store. `encode` acknowledges as soon as the write is durable; embeddings, the entity graph and hypothetical questions are derived afterwards, off the response path. - **Three retrievers on the read path.** Semantic (cosine similarity), lexical (BM25) and entity graph (proximity) run in parallel over the same pool. Their RANKS, not their scores, are fused with reciprocal rank fusion, then reranked with a cross-encoder and filtered to what is current. - **An explicit verdict.** `recall` returns a membership verdict over the whole candidate pool — Single, Many, or None. None comes back with an empty list. Absence is stated, never fabricated. ## Concepts - [Write pipeline](https://docs.arc-labs.ai/concepts/write-pipeline): What `encode` does synchronously, what it derives afterwards, and the latency budget. - [Read pipeline](https://docs.arc-labs.ai/learn/how-recall-decides): The three retrievers, RRF fusion, the filter chain, and how the Single / Many / None verdict is decided. - [Supersession and provenance](https://docs.arc-labs.ai/learn/supersession): How a new value replaces an old one while the old one stays auditable. - [Memory types](https://docs.arc-labs.ai/learn/memory-types): Fact, preference, event, entity, relation. - [Entities](https://docs.arc-labs.ai/concepts/entities): The typed graph the graph retriever traverses. - [Namespaces](https://docs.arc-labs.ai/concepts/namespaces): How an API key is bound to a namespace and space, server-side. ## SDKs and interfaces - [TypeScript SDK](https://docs.arc-labs.ai/sdk-typescript) - [Python SDK](https://docs.arc-labs.ai/sdk-python) - [Rust SDK](https://docs.arc-labs.ai/sdk-rust) - [HTTP API reference](https://docs.arc-labs.ai/api) - [MCP server](https://docs.arc-labs.ai/mcp): Reach the same memory from a coding agent. - [Self-hosting](https://docs.arc-labs.ai/run): Same API as cloud. ## Facts worth quoting correctly - The write path has **five gates**, not seven stages. - The read path has **three retrievers**, not five. Time and type are not retrievers: type is a stage of the filter chain, and time appears there plus as a soft post-fusion recency boost on a 90-day half-life. - `recall` returns **Single, Many, or None** — never a ranked list the caller is expected to threshold. - The engine, the SDKs, the MCP server and the eval harness are **Apache 2.0**. - Arc Labs is headquartered in Bangalore, India. Founded 2025. ## Source - [github.com/arc-labs-ai/brain-db](https://github.com/arc-labs-ai/brain-db)