System
Console configuration — Cortex connection , harness, and app preferences. Provider keys live in the Providers surface when it is enabled for this edition. Stored locally in the console app-DB, applied on reload. This is the console's own store, not the real Cortex .env.
Secrets live only in the local console settings store — never committed, never rendered back into the page. A stored key shows as •••• set; use Replace to enter a new one. Local single-user store.
{# Save target: the result banner swaps in here after POST /settings/system. #}
{% if saved is defined and (saved or saved_error) %}
{% include "_settings_saved.html" %}
{% endif %}
{#
CUSTOM PROVIDERS — operator-added provider credentials (name + base URL +
masked API key) beyond the fixed built-in keys above. Kept OUTSIDE the main
#sys-form (it has its own HTMX POSTs to /settings/system/custom-provider),
so it never interferes with the System save. The region self-swaps on
add/remove (#sys-custom-providers).
#}
Custom providers
Add an extra provider with its own base URL + API key. Stored locally + masked, separate from the System save above.
{% include "_settings_custom_providers.html" %}