01 |INSTALL THE CLI
Choose your platform. One command installs the CLI and the server as a single executable.
Install on macOS
On macOS, run the SurrealDB install script, or install with Homebrew. Either way you get the command-line tools and the SurrealDB server as a single executable.
# Direct install
curl -sSf https://install.surrealdb.com | sh
# Homebrew
brew install surrealdb/tap/surreal
Install on Linux
The preferred way to get going on Unix systems is the SurrealDB install script. Run the following in your terminal and follow the on-screen instructions.
curl -sSf https://install.surrealdb.com | sh
Install on Windows
On Windows, install the SurrealDB command-line tool by running the following in PowerShell.
iwr https://windows.surrealdb.com -useb | iex
Install on Docker
Docker lets you run SurrealDB without installing any CLI tools locally. The container includes the full CLI for import/export and for running a server.
docker run --rm --pull always -p 8000:8000 surrealdb/surrealdb:latest start
02 |VERIFY AND RUN
Confirm the install, then start. Check the CLI is on your path and bring up a local server.
Check the version
Confirms the CLI is on your path and which release it is.
surreal version
Start a local server
An in-memory instance on port 8000, with a root user for the session.
surreal start --user root --pass secret memory
Persist to disk
The same server with its data kept in a SurrealKV directory.
surreal start --user root --pass secret surrealkv://data
Open a SQL shell
An interactive SurrealQL prompt against the running server.
surreal sql --endpoint http://localhost:8000 --user root --pass secret --ns test --db test
THE PLATFORM
Everything an application and its agents know. Five surfaces, one engine.
Database
Document, graph, vector, time-series and relational in one engine.

Agent Memory
What an agent learns, with its source and its time, in the same engine.

Cloud
Dedicated clusters by region, or serverless on SurrealDB Earth.

Studio
Query, explore and design the schema from the browser.

MCP
Every model that speaks MCP reaches the database and the memory directly.

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.
VP of Engineering, Later
GET STARTED