{% extends "base.html" %} {% block title %}Account - PlanExe{% endblock %} {% block head %} {% endblock %} {% block content %}

Account

Logout

Manage your {% if admin_mode %}API access.{% else %}profile, API access, and billing.{% endif %}

{# ── Left: profile sidebar ─────────────────────────────────── #} {# ── Right: content sections ───────────────────────────────── #}
{# ── API Keys ───────────────────────────────────────────── #}

API Keys

{% if new_api_key and api_key_show_once %} New — shown once
{{ new_api_key }}

Copy this secret now. You will not be able to see it again.

{% endif %} {% if active_keys %}
{% for key in active_keys %} {% endfor %}
Name Secret Created Last Used LLM Calls Credits Used
{# ── Display mode ── #} {{ key.name or "Untitled" }} {# ── Edit mode (hidden by default) ── #} {{ key.key_prefix }}... {% set copyable_key = key.key_plaintext or (new_api_key if new_api_key and new_api_key.startswith(key.key_prefix) else None) %} {% if copyable_key %} {% else %} {% endif %} {{ key.created_at.strftime("%Y-%m-%d") if key.created_at else "—" }} {{ key.last_used_at.strftime("%Y-%m-%d") if key.last_used_at else "Never" }} {{ llm_call_counts.get(key.id|string, 0) }} {{ credit_usage.get(key.id|string, "0") }}
{% else %}

No API keys yet. Create one to use PlanExe via MCP.

{% endif %} {% if can_create_key %}
{% else %}

Maximum of 10 secrets reached. Delete an unused one to create a new one.

{% endif %}
{% if not admin_mode %} {# ── Buy Credits ───────────────────────────────────────── #}

Buy Credits

{% if stripe_enabled %} {% else %} {% endif %}

1 credit = ${{ "%.2f"|format((credit_price_cents or 100) / 100.0) }} USD

{% if telegram_enabled %}
{% endif %}
{# ── Payment History ───────────────────────────────────── #}

Payment History

{% if recent_payments %}
{% for p in recent_payments %} {% endfor %}
Date Provider Status Credits Amount ID
{{ p.created_at }} {{ p.provider }} {{ p.status }} {{ p.credits }} ${{ "%.2f"|format(p.amount_major) }} {{ p.currency }} {{ p.payment_id }}
{% else %}
No payments yet.
{% endif %}
{% endif %}{# not admin_mode #}
{% if new_api_key and api_key_show_once %} {% endif %} {% endblock %}