🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

SurrealDB 3

by @24601

Expert SurrealDB 3 architect and developer skill. SurrealQL mastery, multi-model data modeling (document, graph, vector, time-series, geospatial), schema des...

πŸ’‘ Examples

> Credential warning: Examples below use root/root for **local development > only**. Never use default credentials against production or shared instances. > Create scoped, least-privilege users for non-local environments.

# Start SurrealDB in-memory for LOCAL DEVELOPMENT ONLY
surreal start memory --user root --pass root --bind 127.0.0.1:8000

Start with persistent RocksDB storage (local dev)

surreal start rocksdb://data/mydb.db --user root --pass root

Start with SurrealKV (time-travel queries supported, local dev)

surreal start surrealkv://data/mydb --user root --pass root

Connect via CLI REPL (local dev)

surreal sql --endpoint http://localhost:8000 --user root --pass root --ns test --db test

Import a SurrealQL file

surreal import --endpoint http://localhost:8000 --user root --pass root --ns test --db test schema.surql

Export the database

surreal export --endpoint http://localhost:8000 --user root --pass root --ns test --db test backup.surql

Check version

surreal version

Run the skill health check

uv run {baseDir}/scripts/doctor.py

βš™οΈ Configuration

  • surreal CLI -- brew install surrealdb/tap/surreal (macOS) or see install docs
  • Python 3.10+ -- Required for skill scripts
  • uv -- brew install uv (macOS) or pip install uv or see uv docs
  • Optional:

  • Docker -- For containerized SurrealDB instances (docker run surrealdb/surrealdb:v3)
  • SDK of choice -- JavaScript, Python, Go, Rust, Java, .NET, C, PHP, or Dart
  • > Security note: This skill documents package-manager and container installs > only. Prefer auditable installs through Homebrew, apt/dnf, Cargo, npm, or > Docker rather than remote one-line shell installers.

    View on ClawHub
    TERMINAL
    clawhub install surrealdb

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’