Platform settings
Administrators set instance defaults under System Settings in the sidebar's System group. Users override most defaults in user settings. Piping resolves the effective value for each user on request.
How a value is resolved
Every setting key resolves through three layers, strongest first:
| Layer | Set by | Stored |
|---|---|---|
| User override | The user, in user settings | Server database, per user |
| Instance default | An administrator, in System Settings | Server database, one row per key |
| Built-in default | Shipped with the product | Setting registry in the web UI |
A user override always beats the instance default; if neither exists, the built-in default applies. Each catalog row carries a source badge — user, instance, or default — showing which layer currently supplies the value. The API exposes the same resolution at GET /api/v1/settings/effective, returning the merged value together with both raw layers (user_value, instance_value) and the source.
Tip: Appearance settings (
app.theme,app.language,ui.scale) are additionally mirrored to browserlocalStorage, so the right theme, language, and scale apply on page load before the first API response arrives.
Persistence classes
Not every setting lives on the server. Each definition declares one of three persistence classes:
| Class | Where it lives | Scope |
|---|---|---|
server | Piping database | Follows the user across browsers and devices |
browser | Browser localStorage | This browser only; never sent to the server |
session | Browser sessionStorage | This tab only |
Instance defaults apply only to server settings. Local browser and session entries, such as the SSH file-browser layout and restored session tabs, appear only in the user catalog.
Categories
The catalog is grouped into five fixed categories:
| Category | Contents |
|---|---|
| Appearance | Theme, interface language, UI scale |
| Connections | Connection-tree grouping and collapsed state, SSH file-browser layout |
| Workspace | Saved workspace filters, panel layout, restored session tabs |
| Assistant | Built-in assistant instance configuration and window placement |
| Data | Table page size |
Notable settings
Selected keys (see the catalog for the full list):
| Key | Control | Notes |
|---|---|---|
app.theme | select | light, dark, or system |
app.language | select | en or ru |
ui.scale | select | Global UI scale, 90–150% |
table.page_size | select | Default rows per page in tables (25–200) |
connections.tree.config | JSON | Tree grouping: mode, level order (site/tenant/role), quick-access buttons |
assistant.window | JSON | Assistant window dock (right/left/bottom/floating) and size |
JSON-valued settings are edited as raw JSON in the catalog; the editor validates syntax before saving. Every row has a Reset button that removes the override at that layer (the user's value in the user catalog, the instance default in the admin catalog).
Assistant settings
The Assistant group is the main admin-only block: keys under assistant.instance.* are hidden from the user catalog and govern the built-in assistant for the whole instance:
| Key | Purpose |
|---|---|
assistant.instance.enabled | Instance-wide feature flag for the assistant |
assistant.instance.provider | LLM gateway: openrouter or litellm |
assistant.instance.base_url | OpenAI-compatible API base URL for the provider |
assistant.instance.model | Default chat model |
assistant.instance.portal_context_enabled | Let the assistant receive current portal context packets |
assistant.instance.max_sessions_per_user | Active sessions per user before rotation (1–25, default 5) |
assistant.instance.archive_retention_days | Days to retain archived transcripts (1–365, default 30) |
The provider API key is a write-only secret. The catalog shows whether it is configured and lets you rotate or Clear it. Chat stays disabled until a key is set.
Validation and limits
The backend validates every write:
- Keys must match
^[a-z][a-z0-9._-]*$and be 1–200 characters long. - Values are arbitrary JSON, up to 64 KiB per key.
- Instance defaults record who changed them and when.
REST API
| Method | Path | Purpose |
|---|---|---|
GET | /api/v1/settings/effective | List effective settings for the current user (?keys=a,b to filter) |
GET | /api/v1/settings/effective/{key} | One effective setting |
PUT | /api/v1/settings/user/{key} | Set a personal override |
DELETE | /api/v1/settings/user/{key} | Remove a personal override |
GET | /api/v1/admin/settings/defaults | List instance defaults (admin) |
PUT | /api/v1/admin/settings/defaults/{key} | Set an instance default (admin) |
DELETE | /api/v1/admin/settings/defaults/{key} | Remove an instance default (admin) |
The admin endpoints are gated by the RBAC policy engine — non-admins receive 403. See Access control. Both PUT endpoints take the same body:
{ "value": { "mode": "dark" } }
What is configured elsewhere
The settings catalog covers runtime defaults stored in the database. Other concerns have dedicated pages:
- Logo, colours, product name — Branding.
- Community limits and additional seats — Licensing.
- Deployment-level configuration (database, ports,
PIPING_*environment variables) — Configuration.