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.

Conceptual comparison between Stravia Desktop and Stravia Server sharing the Rust core

Desktop vs. Server differences

DimensionStravia DesktopStravia Server
PackagingWindows NSIS, Linux AppImage, macOS .dmg (ad-hoc signed)Linux/Windows archives, Docker (ghcr.io/stravia-ai/straviaplatform), NixOS module
Admin authenticationAutomatic 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 configurationWrites global config files (Connect clients → Write configuration)Copyable preview snippets only
Default data directoryOS Tauri app_data_dir() (cn.stravia.agent-infra)~/.stravia (or /var/lib/stravia on NixOS, /data in Docker)
Database optionsSQLiteSQLite 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, default 23471) 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: Returns 503 while starting up, 200 once /setup or business routes are mounted (does not probe database connectivity).
    • GET /readyz: Returns 503 setup during initial setup, 503 schema_pending / unavailable if the database is unreachable or incompatible, and 200 when the gateway and database are ready.

Next