Admin UI¶
The admin UI is a web application served by the spongram service at /admin/. An operator uses it to create brains, hand out client bundles, watch ingestion, explore a brain's memory and change the inference settings. When the Cloud control plane is enabled on the server, the same application becomes the console, with accounts, organisations and permissions.
The UI is a single-page application; every action it performs is a call to the HTTP API, so anything described here can also be scripted.
Signing in¶
Server¶
Open https://spongram.example.com/admin/. The login page asks for the admin token, the value of SPONGRAM_ADMIN_TOKEN. The UI checks it by listing the instances, then keeps it in the browser's local storage until you sign out with the button at the right of the navigation bar.
There is one token for the whole deployment and no per-operator account. See the security model.
Server with the Cloud control plane¶
With SPONGRAM_CLOUD_CONTROL_ENABLED=true the same address shows the console sign-in. /console redirects to /admin/.
- First administrator. On a fresh installation the page offers to create the first administrator account. It asks for a name, a username, a password and the installation secret, which is the admin token.
- Sign in. Users then sign in with a username and password. An account created or reset by an administrator must choose a new password at first sign-in.
- Installation recovery. If no administrator can sign in, the installation secret opens a 30-minute recovery session limited to administration.
The session is a cookie; nothing is stored in local storage, and brain keys are not cached in the browser.
Navigation bar¶
| Item | Shown | Leads to |
|---|---|---|
| Instances (Brains with the Cloud control plane) | Always | The list of brains |
| Marketplace | When the persona marketplace is enabled on the deployment; with the Cloud control plane, to installation administrators and to users who can configure at least one brain | The persona catalogue |
| Administration | Cloud control plane, to organisation administrators and owners and to installation administrators | Organisations, members, access, capacity, audit, licence |
| Settings | Always; with the Cloud control plane, installation administrators only | Inference settings |
| Account name | Cloud control plane | Password change |
| Documentation | Always, just before the language switcher | This documentation site, opened in a new tab at /documentation/ |
| Language | Always | French or English. The choice is remembered in the browser; without a choice the browser language is used, then French. |
| Theme | Always | Dark (default) or light, remembered in the browser |
| Sign out | Always | Forgets the admin token, or ends the console session |
With the Cloud control plane, a user who belongs to several organisations also gets an organisation selector under the bar.
The UI learns which features are enabled from GET /admin/api/spongram/features. When the marketplace is disabled its routes do not exist on the server, so the menu entry is hidden rather than shown as an error.
Instance list¶
The list shows one card per brain: name, owner, status (active, suspended or purged), the number of episodes, and the number of requests over the last 24 hours. Selecting a card opens the brain.
Creating a brain¶
Create an instance opens a form with three fields.
| Field | Meaning |
|---|---|
| Owner email | Identifies the owner. Without the Cloud control plane the brain's group_id is derived from it, so one e-mail address gives one brain. |
| Display name | The name shown in the UI and in bundle file names |
| Memory language | French or English; used for compiled wiki pages and written into the bundles |
After creation the page shows the key card described below.
With the Cloud control plane the button leads to the administration page for organisations and brains instead, where a brain is created inside an organisation and assigned to a member.
The key is shown once¶
Creating a brain, or regenerating its key, displays a card titled "API key — shown only once" with:
- the brain key (
spt_brain_xxx) and thegroup_id, each with a copy button; - download buttons for the Claude Desktop bundle (
.mcpb) and the Claude Code plugin (.plugin), which embed the key; - a shortcut to open the Cortex.
The server stores only a hash of the key and cannot show it again. Save the key or download the bundles before closing the card. Without the Cloud control plane, the browser that created the brain keeps the key in its local storage, which is what lets that browser download bundles later without retyping it.
Instance detail¶
The page of a brain is organised from top to bottom as follows.
Telemetry band¶
Four tiles: neurons (entities), synapses (facts), the ingestion queue and the background workers. The page polls the brain's activity every 5 seconds.
Activity, Cortex preview and vital signs¶
| Panel | Content |
|---|---|
| Thought stream | A feed of what the brain is doing: episodes received, queue counters, Sleeper and Dream activity |
| Cortex preview | A live view of the graph, with a button to open the Cortex full screen |
| Vital signs | Status and time of the last memory; the inference models; the wiki; the code map; usage |
The inference models block shows the model currently used for extraction, the model recorded when the brain was created, and the embedding model and dimension, which are fixed for the life of the brain.
The wiki block has a switch for wiki generation. When it is off, the Sleeper stops compiling wiki pages for this brain; existing pages stay, and entity summaries used by search are still produced.
The usage block shows total requests, error rate, median and 95th-percentile latency, a time series and a per-tool breakdown over 24 hours, 7 days or 30 days.
Ingestion queue¶
This card lists the episodes that are waiting: counters for due, processing, retrying and parked rows and for rows processed over the last 24 hours, then one line per row in trouble with its number of attempts, next attempt and last error.
An accepted episode is never dropped. A failed forward is retried after 30 seconds, 2 minutes, 10 minutes, 30 minutes and 1 hour, then the row is parked and retried every 6 hours. Replay makes one row due immediately and Replay all does it for every waiting row; use them once the cause (typically the inference endpoint) is fixed. See ingestion.
Explorers¶
The Cortex, the Wiki, the Code map and the Personas page open as a full-screen overlay inside the admin UI. Each is the same page a user reaches with a brain key under /v1, served here through an admin mirror so the operator does not need the brain's key. Open in a tab opens the same view in a separate tab, and Escape closes the overlay.
| Explorer | What the operator does there |
|---|---|
| Cortex | Browses the entity graph in 3D, filters by project and type, searches, reads an entity's summary, forgets an entity |
| Wiki | Reads the compiled page of each entity and the themes; exports all pages as an archive |
| Code map | Browses the structural graph of the indexed repositories |
| Personas | Creates, edits and deletes personas and their skills, imports a skill or a character card |
See Cortex and Wiki, code map and personas.
Tabs¶
The lower part of the page has four tabs.
Installation
- Bundles: download the Claude Desktop bundle (
.mcpb) or the Claude Code plugin (.plugin) again at any time. Because the bundle embeds the key and the server does not store it, paste the brain key first, unless this browser still holds it. - Install my Spongram: copy-and-paste instructions in four variants: the public Claude Code plugin from the
ezeeFlop/claude-pluginsmarketplace (recommended), Claude Desktop with the.mcpbbundle, Claude Code with the dedicated bundle, and a manual MCP configuration with the/mcpURL and anAuthorization: Bearerheader.
No Codex bundle is generated. Codex connects to the /mcp endpoint with the brain key; see the Codex page.
Transfer
- Export brain downloads the brain as a JSON file in the
spongram-brain/v1format. - Import replays an export into this brain. The UI shows the number of episodes and asks for confirmation. Episodes go through the ingestion queue and are extracted again, so the graph appears progressively, and imported episodes are dated on the day of the import. The file is limited to 100 MB, the embedding dimension must match the brain, and the brain must be active.
See backup and restore.
System
- Resilience: state of the circuit breakers on the chat model and on the embedder, whether the search cache and the PageRank reranking are on, and cache hit counters.
- Personas: a read-only summary (active persona, number of activations, skills) with a button to open the Personas explorer and, when the marketplace is enabled, a link to it for this brain. No button activates a persona: activation is done by the agent.
- Regenerate API key: issues a new key and revokes the previous one immediately. Bundles and clients using the old key stop working and must be reinstalled with the new key.
Danger
- Purge memory erases the whole brain: graph, wiki pages and counters. The instance, its key and the installed bundles are kept. You must type the brain's name to confirm, and the result reports how many nodes, relations and wiki pages were deleted.
- Delete instance removes the instance, its key and all its memory. This cannot be undone.
Warning
Purge and delete are irreversible. Export the brain first if you may need it again.
Note
On a server without the Cloud control plane, purging does not retire the brain's rows in the ingestion queue, and the reconciler queues again completed episodes of the last 30 days that are missing from the graph. Episodes stored recently can therefore come back after a purge. To empty a brain for good, delete the instance and create it again, or have an agent call the clear_graph tool.
Marketplace¶
The Marketplace page appears when the persona marketplace is enabled. It lists ready-made personas from the catalogue sources.
- Pick an instance. The page then shows, for each article, whether it is installed and whether an update is available, and the brain's remaining capacity for personas and skills.
- Filter by source or tag, and open Details to read the role, intent, rules, skills and the instruction block the agent would adopt.
- Install adds the persona and its skills to the brain. If a persona with the same slug exists, the UI asks before replacing it; replacing rewrites the persona and its skills without touching its activation or its summary. Update replaces directly.
Installing never activates a persona. The two language versions of a persona declare the same skills, so the UI disables the second one while the first is installed in the brain. Reload sources re-reads the catalogue directories without a restart and reports skipped articles.
See persona marketplace.
Inference settings¶
The Settings page configures the OpenAI-compatible endpoint used for extraction, for the Sleeper and for embeddings. Changes apply to the next request, without restarting the service.
| Section | Content |
|---|---|
| Provider | A preset list (SPT Models, Ollama, LM Studio, vLLM, hosted providers, a LiteLLM gateway, custom) that fills the base URL and suggests models, with the capabilities of each preset |
| Base URL and API key | The endpoint and its key. The key is stored encrypted and never displayed; leave the field empty to keep the current one. |
| Models | The extraction model, which must support tool calls and strict JSON schema, and the Sleeper model, which produces free text |
| Embedder | The embedding model and its dimension |
| Sleeper tuning | Entities summarised per tick (1 to 200) and the interval between ticks (30 to 3600 seconds) |
| Token usage | Tokens consumed since the last start, per role |
Test connection probes the candidate configuration without saving it: connection, chat completion, tool calls, strict JSON schema. Extraction needs all three model checks to pass.
Warning
Changing the embedding model or its dimension invalidates the vectors already stored. The page refuses the change until you tick the confirmation that every brain has been purged.
See inference providers.
Cloud control plane pages¶
With the Cloud control plane, what a user sees on a brain depends on the permissions granted on it; for example the Danger tab only appears to a user who holds memory.delete, brain.configure and access.manage together. The console adds the following pages.
| Page | Purpose |
|---|---|
| Connect a client | For one brain: create or rotate an MCP key (read-only or agent profile, optional expiry), check a key, download the client bundles, copy a manual MCP configuration or the codex mcp add command, and list or revoke existing keys |
| Organisations and brains | Create organisations and brains, assign a brain's owner, suspend or reactivate a brain |
| Users and applications | Create user accounts with a temporary password, add service accounts, attach existing users to an organisation, reset passwords, suspend accounts |
| Permissions and sharing | Grant permissions on a brain to a member or an application, remove access, issue keys |
| Business memory | Submit and search approved sources, set the write policy of a brain, follow sources and their provenance |
| Operations | Follow ingestion operations from acceptance to availability |
| Usage | Consumption per model and process |
| Capacity | Usage and allocations of the organisation |
| Portability | Export and restore sources |
| Audit log | The most recent access and administration events |
| Licence | Activate or renew the Cloud licence (installation administrators) |
| Migration | Move existing brains under the control plane's access control (installation administrators) |
| My password | Change the account password |
A user with a single brain lands directly on that brain's page.