Skip to content

SurrealDB Compatibility

AgentCTX uses SurrealDB as its primary database. This page documents the license compatibility between the two projects.

SurrealDB is licensed under the Business Source License 1.1 (BSL 1.1), the same license model AgentCTX uses for its enterprise features.

PropertySurrealDB
LicenseBSL 1.1
Change date4 years from each release
Change licenseApache 2.0
Production useRequires SurrealDB commercial license for certain use cases
DeploymentAgentCTX LicenseSurrealDB LicenseNotes
Local developmentApache 2.0BSL 1.1 (permitted)✅ No restrictions
Self-hosted (internal)Apache 2.0BSL 1.1✅ Permitted for internal use
SaaS (multi-tenant)BSL 1.1Check SurrealDB terms🔶 May require SurrealDB license
After change dateApache 2.0Apache 2.0✅ Fully open source

If SurrealDB’s licensing doesn’t fit your deployment:

AlternativeCompatibilityTrade-offs
PostgreSQLApache 2.0 compatibleNo built-in vectors, graph, or LIVE SELECT
SQLitePublic domainNo clustering, limited vectors
Custom adapterWrite your ownFull control, more development effort

AgentCTX’s storage layer uses an adapter pattern, making it possible to swap the database backend.

  1. Development and internal tools: Use SurrealDB freely — no license restrictions
  2. External-facing SaaS: Review SurrealDB’s commercial terms
  3. Regulated environments: Both BSL 1.1 licenses guarantee source availability and eventual Apache 2.0 conversion