---
title: "Einstein (memory plugin)"
description: "The Einstein memory plugin: PostgreSQL as the system store, canonical Markdown as its projection, HTTP retrieval/search/embeddings and human-reviewed promotion."
updated: "2026-07-05"
---

<p class="doc-plugin-logo"><img class="th-on-dark" src="/pl/einstein-dark.svg" alt="" width="60" height="60" /><img class="th-on-light" src="/pl/einstein-light.svg" alt="" width="60" height="60" /></p>

**Einstein is the official long-term memory plugin for AiHummer.** It gives an
agent a durable, searchable memory that survives restarts and conversations,
without ever turning that memory into a black box. The guiding rule is simple:
**PostgreSQL is the system store and canonical Markdown is its human-readable
projection**, and the system indexes and *proposes* changes. In the default
`review` mode, a human approves every promotion into long-term memory. With
opt-in `auto` mode, a fact the agent stores explicitly with `memory_store`
becomes searchable right away.

The plugin runs host-native as its own small Python service (standard library
only — no heavyweight framework) and talks to the gateway over the
`aihummer.memory.v1` contract. The in-gateway memory subsystem (claims, recall,
the data-fence) is described on the concept page
[Memory (Einstein)](/en/v1.7/concepts/memory-einstein/); this page covers the
**plugin** that backs it.

## Facts

| Field | Value |
|---|---|
| Version | 1.2.0 |
| Port | 8820 |
| Runtime | Python (standard library), host-native |

## What it is

Einstein stores memory as **human-readable Markdown** — the canonical record a
person can open, read and edit. On top of that record it builds the machinery an
agent needs at turn time:

- **Retrieval** — fetch the memory relevant to the current conversation.
- **Search** — full-text and embedding-based lookup over stored facts.
- **Embeddings** — vectors for semantic recall, served over HTTP.

Because the Markdown is canonical, nothing about the indexes is precious: they
can be rebuilt from that canonical record at any time, and a reviewer always reads
the same text the agent reads.

## How it is used

At turn time the gateway asks Einstein for the memory relevant to the current
context. Recall is delivered to the model **as a tool result wrapped in a
data-fence**, never as injected instructions — so a malicious note that found its
way into memory cannot hijack the agent. In `review`, new facts observed in a
conversation are extracted as **claims with evidence** and queued for review.

There is a second path: an agent can store a fact itself with the
**`memory_store` tool**. How that write lands is decided by the core memory
capture mode. With `auto` the fact is searchable immediately. With `review` or
`off` it becomes a candidate awaiting approval. The tool result
carries a `searchable_now` field, so the agent can tell you honestly whether the
fact it just stored can already be recalled.

> [!NOTE]
> In `review` mode, promotion of a claim into long-term memory is a deliberate,
> human-reviewed step. In `auto` mode, facts the agent stores
> explicitly are searchable at once. Memory mode (auto / review / off) and
> retrieval mode (fulltext / embedding) are **core** settings
> (`AIHUMMER_MEMORY_CAPTURE` / `AIHUMMER_MEMORY_RETRIEVAL` in the settings
> catalog), not a plugin form.

## The v2 memory platform (on by default)

Einstein ships the full **v2 memory platform**, and all of its power is **on out
of the box** — nothing to wire up by hand: claim extraction, a review queue, a
background deriver (facts, links and entities from evidence), a
"dream"/consolidation pass (dedup and memory self-healing), a memory graph and
contradiction detection. Memory mode, the embedder and the vector store are
configured separately, as core settings. Einstein itself is vendor-configured:
the plugin exposes no operator settings, and on the Plugins page only its update
action is available.

> [!NOTE]
> In `review`, a human **approves writes to canonical memory** (`MEMORY.md`).
> Every v2 worker writes only to a separate sidecar store and **never touches the
> canonical Markdown**. When Einstein derives an edit worth committing to canon,
> you can approve and apply it with **one click** in the review UI.

## Installation

Einstein is a **built-in plugin**: it installs automatically for every tenant,
carries a **"Built-in"** badge in the plugin list and **cannot be removed** —
memory is part of the product core. The module itself is always present, but
**memory collection can be turned off**: the `off` memory mode (the core
`AIHUMMER_MEMORY_CAPTURE` setting) stops automatic capture without removing the
module. The full lifecycle of regular plugins is described in
[Install & updates](/en/v1.7/marketplace/install-updates/). There are no
containers — Einstein runs as its own systemd service alongside the gateway.

## Security and limits

- **Canonical Markdown is a readable projection.** The system store is
 PostgreSQL; indexes and embeddings are derivable; the canonical text is what a
 human reviews and edits.
- **No silent rewrites.** The v2 platform works out of the box, but a write to
 canon goes through one-click human approval; workers write only to the sidecar
 and never touch the canonical Markdown.
- **Data-fenced recall.** Memory reaches the model as fenced tool output, never
 as instructions, which blocks indirect prompt injection.
- **Secured Web UI.** The plugin's review/management UI is access-controlled.
- **Host-native.** Runs under systemd, not in a container.

## Where to next

- Concept: [Memory (Einstein)](/en/v1.7/concepts/memory-einstein/)
- [Install & updates](/en/v1.7/marketplace/install-updates/)
- [Marketplace overview & tiers](/en/v1.7/marketplace/overview-tiers/)
