NEW

SurrealDB 4 is here, introducing SurrealDB Earth and SurrealDS!

Learn more

The database and memory
for every agent

Starts on its first query. Speaks Postgres and MySQL.
Scales to zero instantly. Remembers in one query.

Earth. Serverless on Cloudflare, with each database running where it is first queried.
Agent Memory. Connects and retrieves context wherever your data lives, every fact carrying its source.
Self-hosted. The same engine runs on your own servers, embedded in your app, or fully managed in Cloud.

SurrealDB 4
Compatible, stable, faster

Compatibility. PostgreSQL and MySQL clients connect over their own wire protocols, and MongoDB driver code runs through mql.js.
Stability. More than 240 fixes that no 3.x release contains, including more than 90 community bug reports that 3.x did not fix.
Performance. A rebuilt query core, with vector indexes built 7.4x faster and filtered vector search down from 27 ms to 1.1 ms.

SurrealDB Earth

surreal cloud instance create my-agent --region earth
Built on Cloudflare.
Serverless. Starts on its first query on Cloudflare's network, cold starts in ~300ms and scales to zero instantly.
Isolated by default. Each database is its own instance, for as many agents as you need, with no compute billed when idle.
One query, many Workers. A query splits across Workers and merges its answer, every leg reading the same point in time.

SurrealDB 4 and SurrealDB Earth. What every agent gets.

Explore SurrealDB 4
  • Scales to zero instantly.
  • Remembers in one query.
  • Fully transactional. Still ACID.
  • Speaks Postgres and MySQL.
  • Cold starts on Earth in ~300ms.
  • Instance creation time ~500ms.
  • Starts on its first query on SurrealDB Earth.
  • One engine. Serverless, Cloud or self-hosted.
  • Scales to as many agents and users as you need.

HOW IT FITS TOGETHER

A database for every agent.Memory on top.One connected view of everything your application and agents know.

Your application
Object storageS3 / S3-compatible

WHAT SETS IT APART

What makes it different

USE CASES

What teams build on one engine. With the data model each workload needs.

GraphRAG

Database

Retrieval that combines graph traversal with vector search for grounded, connected context.

Explore the database

Agent Memory

Agent Memory

Persistent, queryable memory for agents - relationships, semantics, and recency in one store.

Explore Agent Memory

Knowledge graphs

Database

Model entities and relationships natively - query structure and meaning together.

Explore the database

Temporal facts

Agent Memory

Facts that supersede one another with the history kept, so an agent knows what changed and when.

Explore Agent Memory

Digital twins

Database

Assets, dependencies, telemetry and the agents that reason over them, in one transactional engine.

Explore the database

Real-time applications

Database

Live queries and change streams, so every client sees a write as it commits.

Explore the database

One SurrealQL query searches vectors, walks the graph, filters documents and ranks full text, and commits it all in one ACID transaction.

CUSTOMER STORIES

Proven in production

Your questions,answered

SurrealDB is a database for every agent. Relational, document, graph, vector and time-series data are native primitives you can query together in one ACID transaction, through SurrealQL or through Postgres and MySQL clients. On SurrealDB Earth, each database starts on its first query and scales to zero immediately when the query ends. Authentication, row-level permissions and live queries are built in.

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

Start with the database, or start with Agent Memory. Both run on one engine. The database is a free account away. Agent Memory is a context in Studio away.

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