{% extends "base.html" %} {% block title %}Settings · Kestrel Portal{% endblock %} {% macro field_row(field, model_choices = []) %}
{% if field.is_secret %}
{{ 'current: ' ~ field.masked if field.masked else 'not set' }}
{% elif field.kind == "choice" %} {% elif field.datalist %} {% for model_id in model_choices %} {% endfor %} {% else %} {% endif %}

{{ field.help }}

{% endmacro %} {% block content %}

Settings

Provider, keys, and auto-apply configuration. Secrets are stored masked on this machine — they never leave it except to your chosen provider. Wondering which of these still needs filling in? Open System check.

{% if saved %}

Settings saved and applied to the running portal — no restart needed.

{% endif %} {% if error %}

{{ error }}

{% endif %}

LLM provider

{% for field in fields if field.key.startswith("LLM_") %} {{ field_row(field, model_choices) }} {% endfor %}

Provider keys

{% for field in fields if field.key in ("GEMINI_API_KEY", "OPENAI_API_KEY") %} {{ field_row(field) }} {% endfor %}

Auto-apply

{% for field in fields if field.key in ("CAPSOLVER_API_KEY", "FACTORY_API_KEY", "AUTOAPPLY_MODEL", "AUTOAPPLY_ENGINE") %} {{ field_row(field, model_choices) }} {% endfor %}
{% endblock %}