Real-time by default
Clients subscribe to SQL queries and receive incremental deltas via DBSP circuits — only changed rows, not full re-scans.
Cosmictron is a real-time database and agent runtime that replaces the traditional application server + database + pub/sub stack with a single Rust binary. Your business logic runs inside the database as sandboxed WASM or V8 modules, co-located with data — eliminating network round-trips and keeping state consistent by construction.
It is built for two audiences:
Real-time by default
Clients subscribe to SQL queries and receive incremental deltas via DBSP circuits — only changed rows, not full re-scans.
Logic inside the database
Reducers (state-mutating functions) execute co-located with data in sandboxed WASM (Wasmtime) or JavaScript (V8) runtimes.
Declarative security
Row-level security policies are SQL predicates attached to tables, automatically injected into every query.
Compliance-grade audit
Per-event Ed25519 signatures, SHA-256 hash chains, RFC 3161 timestamps, FROST threshold signing, and signed bundle export.
Stateful agents
Durable sessions, tool authorization, idempotency protection, supervisor handoff hooks, and MCP/A2A protocol support.
One binary
Replaces app server + PostgreSQL + Redis/Kafka + audit logging. Speaks WebSocket, PgWire, and HTTP REST.
| Persona | Pain point Cosmictron solves |
|---|---|
| AI startup engineer | Python agent frameworks don’t scale; glue between DB, queue, and API is fragile |
| Enterprise architect | Need deterministic replay and tamper-evident logs before legal/compliance will approve AI agents |
| Platform team | Multiple services to operate, patch, and integrate — want one binary |
| Module developer | Publish reusable WASM capability modules to the marketplace |
Cosmictron is dual-licensed: AGPL 3.0 for open-source use, and a commercial license for organizations above $5 M revenue and 10,000 concurrent agent sessions. See Licensing for details.