Skip to content

Get started

Agent Memory

SurrealDB Agent Memory is a memory and knowledge layer for AI agents. It is an application tier in front of SurrealDB, and every durable record lives in that database: graph, vector, document, relational, and geospatial, written under ACID transactions. Provenance and trust sit on the records themselves. Traces of retrieval and decisions are graph nodes, not disposable logs. Belief history is tri-temporal, so the system can keep apart what was said, what is true now, and what used to be true.

Use this hub to go from principles to running code, then dive into the product sections (memory & knowledge, integrations, cookbooks, reference).

Note

SurrealDB Agent Memory was developed under the project name Spectron, and the rename is arriving in stages. Already renamed: the client SDKs (@surrealdb/memory, surrealdb-memory, and so on), the framework integrations, and — as of the CLI rebrand — the agent-memory binary and the MCP server, which now registers as agent-memory.

Still carrying the old name: the spectrond server binary, the SPECTRON_* environment variables, and the X-Spectron-* request headers. Those are configuration and wire contract rather than things the product is called, so they are unchanged for now.

What SurrealDB Agent Memory is built to do, what it is not, and how retrieval, traces, and time work:

Quickstarts

Building with AI coding tools? Start with Agent guide (AGENTS.md) - copy it into Cursor rules or a project skill so your agent can learn SurrealDB Agent Memory without reading the full docs.

How isolation, sessions, categories, and provenance fit together:

  • Memory & knowledge - authoritative and experiential ingest, unified retrieval, reasoning, operations, tuning.

  • Integrations - SDKs, MCP, framework adapters.

  • Cookbooks - end-to-end patterns.

  • Reference - REST, management API, CLI, configuration, errors.

  • State and diffs - what a session holds, and how it changes between turns

Was this page helpful?