{% extends "_base.html" %} {% from "_macros.html" import tabs %} {% block title %}Settings · Urika{% endblock %} {% block heading %}Global settings{% endblock %} {% block breadcrumb %} {% endblock %} {% block content %} {# ---- Compliance banner --------------------------------------------- #} {# Two Anthropic auth modes are supported: - api_key (default): ANTHROPIC_API_KEY is required. Show a banner whenever the dashboard process can't see the env var. - subscription (opt-in, post-June-15-2026): OAuth tokens are the auth carrier; no API key needed. Banner is suppressed entirely. The Privacy tab is where the user adds endpoints (and references API key env-var names); for the actual key value they need to either run `urika config api-key` or export the variable. #} {% if api_key_configured %} {# Positive companion to the unset-key banner. Confirms Urika sees a key AND lets the user verify it actually works against api.anthropic.com via POST /api/settings/test-anthropic-key. The verify path is the same one the CLI's `urika config api-key --test` uses (urika.core.anthropic_check.verify_anthropic_api_key). #}