Skip to content
Docs

Settings — System

Navigate to: Settings → System

What it shows: Low-level infrastructure configuration — database backend and system maintenance operations. Object storage is now in Company Settings.

Database section:

Setting Description
Provider SQLite (default) or PostgreSQL
Connection URL Full database connection string
Test Connection Verify connectivity before saving
Vacuum Reclaim space in SQLite; VACUUM ANALYZE in PostgreSQL
Integrity Check Run PRAGMA integrity_check (SQLite) or consistency checks (PostgreSQL)

Step-by-step: Migrate from SQLite to PostgreSQL

  1. Navigate to Settings → System.
  2. Under Database, select PostgreSQL.
  3. Enter the connection URL: postgresql://user:password@host:5432/agentwatch.
  4. Click Test Connection — must return green before saving.
  5. Click Save — AgentWatch restarts its database connection. Existing data is not migrated automatically; run prisma migrate externally first.

Storage has moved. Object storage is no longer in Settings → System. It is under Management → Company Settings → Storage Configuration, so a company admin can set their own organization’s storage:

Provider Required fields
Local Filesystem path (e.g., /app/data/storage)
AWS S3 Bucket name, region, access key, secret key
Google Cloud Storage Bucket name, service account JSON

How to test (database): After changing the connection URL, send a GET /health request — the database field in the response should show ok and the correct provider name.

API endpoints:

  • GET /admin/company/settings — retrieve current settings (database here; storage from Company Settings)
  • POST /admin/company/settings — update config