{% extends "base.html" %} {% block title %}Agent tokens{% endblock %} {% block app_class %}no-insp{% endblock %} {% block crumbs %}›Agent tokens{% endblock %} {% block main %}

Agent tokens

AI coding agents read and change your cases through the agent API with a bearer token. Every change an agent makes shows up on the case page and can be undone there.

API {{ api_url }}
{% if created %} {% comment %}The plaintext is in this response only (Cache-Control: no-store); the database keeps its sha256 digest.{% endcomment %} {% endif %}

Personal tokens

Create one per agent or machine; revoke it when you stop using it
{% if personal %}
{% for t in personal %} {% endfor %}
NamePrefixScopeCreatedLast usedExpires
{{ t.name }} {{ t.prefix }}… {{ t.get_scope_display }} {{ t.created|date:"Y-m-d H:i" }} {{ t.last_used|date:"Y-m-d H:i"|default:"never" }} {% if t.is_expired %}expired{% else %}{{ t.expires|date:"Y-m-d"|default:"—" }}{% endif %}
{% csrf_token %}
{% else %}
No personal tokens yet.
{% endif %}
{% csrf_token %}

Read tokens can look at cases, results and figures. Write tokens can also change inputs of your cases, start calculations and post notes; every change is undoable from the case page. Tokens never give access to the PI password or the AI key.

{% if desktop or ccp_profile == "desktop" %}

Desktop session

Issued by the desktop app at every start and written to its agent file, so agents on this computer connect without setup
{% if desktop %}
{% for t in desktop %} {% endfor %}
NamePrefixScopeCreatedLast used
{{ t.name }} {{ t.prefix }}… {{ t.get_scope_display }} {{ t.created|date:"Y-m-d H:i" }} {{ t.last_used|date:"Y-m-d H:i"|default:"never" }}
{% else %}
No desktop session token: the app was started with --no-agent, or by a server without the launcher.
{% endif %}
{% endif %} {% endblock %}