NEW

SurrealDB 4 is here, introducing SurrealDB Earth and SurrealDS!

Learn more

Give every agent
its own database

One per agent. On SurrealDB Earth each agent or user can have its own database, which starts on its first query and scales to zero when idle.
Speaks Postgres and MySQL. Agents write the SQL they already know, and Postgres and MySQL clients connect as they are.
Remembers in one query. Vector, graph, document and full-text come back together, and Agent Memory keeps each fact with its source.

01 |THE PROBLEM

The context wall. Every seam between systems is where context leaks.

Context leakage

Relationships, history and metadata fragment as data moves between systems.

Partial writes

Without one transaction, memory updates in one system while state fails in another.

Compounding latency

Every hop between systems is a round trip, and they add up under load.

Operational overhead

Five systems means five failure modes, five monitors and five sets of credentials.

02 |MEMORY

Remembers in one query. Graph, vector, filters and time in one round trip.

1-- Context engineering: combine graph, vector, and temporal data
2LET $user = user:jaime;
3LET $query_vec = fn::embed("What products does this user like?");
4
5SELECT
6 ->purchased->product AS purchase_history,
7 ->reviewed->product[WHERE vector::similarity::cosine(embedding, $query_vec) > 0.8] AS relevant_products,
8 ->preferences[WHERE valid_at <= time::now()] AS current_preferences
9FROM ONLY $user;

03 |MULTI-AGENT

Coordination through shared memory. One knowledge graph, under ACID guarantees.

04 |THE STACK

Database and Agent Memory. One stack, one transaction, one policy.

Your questions,answered

RAG retrieves chunks of text by vector similarity. SurrealDB and Agent Memory supply structured context, with graphs, documents, vectors, temporal facts and memory in one transactional system. RAG is one retrieval pattern within it.

THE PLATFORM

Everything an application and its agents know. Five surfaces, one engine.

IN PRODUCTION

Trusted at scale. Samsung, Nvidia, Verizon, Tencent, and Walmart run on SurrealDB.

14,000+

Developers building on SurrealDB Cloud

4M+

Developers building on SurrealDB worldwide

FROM THE TEAMS

SurrealDB gives us a foundation where we can unify semantic search, knowledge graphs, and AI-driven decision making without stitching together multiple systems. Collapsing responsibility into SurrealDB has become our default engineering posture.
Justin Foley

VP of Engineering, Later

GET STARTED

Give every agent its own database. A database that starts on its first query on SurrealDB Earth, with Postgres and MySQL clients and memory in one query.

ISO 27001
AICPA SOC 2 Type 2
Cyber Essentials
GDPR
Cyber Essentials Plus