Deployment Modes: Desktop vs Server
Both Stravia Desktop and Stravia Server embed the exact same Rust gateway core, router, MCP server, and observation storage. Choose between them based on where the gateway runs, how administrators authenticate, and whether you need direct local client config writing.
Desktop vs. Server differences
| Dimension | Stravia Desktop | Stravia Server |
|---|---|---|
| Packaging | Windows NSIS, Linux AppImage, macOS .dmg (ad-hoc signed) | Linux/Windows archives, Docker (ghcr.io/stravia-ai/straviaplatform), NixOS module |
| Admin authentication | Automatic NativeAdminSession (Bearer token issued only to the main WebView; no /setup or login page) | One-time console /setup token on first launch, then stravia_access HTTP cookie sessions |
| Client configuration | Writes global config files (Connect clients → Write configuration) | Copyable preview snippets only |
| Default data directory | OS Tauri app_data_dir() (cn.stravia.agent-infra) | ~/.stravia (or /var/lib/stravia on NixOS, /data in Docker) |
| Database options | SQLite | SQLite or PostgreSQL (+ required Redis ≥ 6.2) |
Moving a Desktop database to Server
Because Desktop creates a native session without web passwords, transferring a Desktop SQLite directory to Server requires setting a Server username and password via stravia-server recover-admin before logging in through a browser.
Startup recovery, window chrome & health probes
- Desktop native window chrome & external access: Desktop selects OS-appropriate window materials at startup—native Mica on Windows 11 (build
>= 22000), Opaque on Windows 10 (or unknown builds) and Linux, and Sidebar vibrancy on macOS. Toggling external network access or fixed listening ports (Settings → Network, port>= 1024, default23471) safely rebinds with retries and rolls back if the port is unavailable. - Desktop startup recovery: If opening the database fails before the console mounts, Desktop opens a dedicated recovery view showing the phase, error code, and buttons to copy diagnostics, open startup logs, restart, or exit—it never silently wipes or alters your database.
- Server health endpoints:
GET /healthz: Returns503while starting up,200once/setupor business routes are mounted (does not probe database connectivity).GET /readyz: Returns503 setupduring initial setup,503 schema_pending/unavailableif the database is unreachable or incompatible, and200when the gateway and database are ready.
Next
- Server Hosting, Auth & Reverse Proxy — run Server binaries, Docker, or NixOS behind TLS.
- Databases, Storage & Backups — configure SQLite, PostgreSQL + Redis, S3 artifacts, and
/settings. - Security, Upgrades & Recovery — protect instance secrets and recover admin credentials.