Platform Support
AgentOS integrates with the SQL Storage Adapter as its primary persistence interface. This enables a single codebase to run across Cloud (PostgreSQL), Desktop (Electron with better-sqlite3), Mobile (Capacitor SQLite), and Browser/Edge (sql.js fallback).
- Start here:
docs/PLATFORM_FEATURE_MATRIX.md(top-level) for feature availability and gating rules. - Storage adapter details:
packages/sql-storage-adapter/README.mdandARCHITECTURE.md.
Defaults
- SaaS (Cloud): prefer PostgreSQL via
DATABASE_URL. - Desktop: prefer
better-sqlite3, fallback tosqljs. - Mobile: prefer Capacitor SQLite.
- Browser:
sqljsonly, export/import for persistence.
AgentOS Usage
- Use
createDatabase()from@framers/sql-storage-adapterin AgentOS services. - Branch optional features by adapter capabilities: JSON/arrays/streaming only when supported.
- Degrade gracefully (hide orgs/billing where unsupported, provide export/import when no cloud backup).