Skip to main content

In-Memory Storage

Zero-config ephemeral storage — the default for development and testing. Data is lost on restart.

SQLite Storage

File-based persistence with better-sqlite3. No initialize() call needed — the table is created automatically on first use.

PostgreSQL Storage

Production-grade relational persistence. Requires the pg package and an initialize() call before use.

MongoDB Storage

Document-based persistence for scale. Requires the mongodb package and an initialize() call.

Storage with Agent

Pass any storage driver to an agent for session persistence across requests and restarts.

Storage with Memory

Use storage to persist long-term memory — summaries and user facts survive restarts.

Storage with Admin

Use storage with the admin API to persist dynamically created agents and their configurations.

Storage Migration

Swap storage drivers without changing application code. All drivers implement the same StorageDriver interface.
Set the driver via environment variable:

Custom Storage Driver

Implement the StorageDriver interface to add any persistence backend — Redis, DynamoDB, Firestore, etc.

DynamoDB Storage

AWS-native serverless storage. Pay-per-request pricing, no server management.

MySQL Storage

MySQL-backed persistence for teams already running MySQL infrastructure.

Redis Storage

In-memory storage with optional persistence. Best for high-throughput caching and ephemeral sessions.