Repository navigation
AI consumption
English · Español
What each brain spends on AI engines, so that a big document source or a reindex does not run up the bill without anyone seeing it, and so that a slow ingestion can be explained.
Every call MimirSynth makes to an engine, where it makes it:
| Use | Engine | When |
|---|---|---|
| Fact extraction | LLM and embeddings | Ingesting a proposal (Graphiti) |
| Decider | Decider | Triaging a proposal |
| Corrector of types | Decider | Looking for wrong entity types |
| Recall | Embeddings | Every recall, also over MCP, and the document search |
| Document index / Episode index | Embeddings | Indexing documents and episodes |
| Fact editing | Embeddings | Editing a fact's text |
| Import | Embeddings | Computing the vectors of an imported brain |
| Written answers | LLM | Each answer of Ask → Answer |
| Summary review | LLM | Each entity the summary reviewer looks at, in Content quality → Summaries |
| Model change | Embeddings | The shadow fill of a model change (not on behalf of a brain) |
For each call it keeps the tokens (input and output) that the answer reports in its usage field; when an answer has none, the input is estimated (4 characters per token) and the call is marked as estimated. It also counts the 429 answers (the provider limits the pace) and the 5xx ones, and the pace: requests per minute right now and the day's peak. Only counters per day, brain, engine and use are stored, never the calls or their text.
- Administration → Brain → AI consumption (brain administrators): the last 30 days of the brain, per use and engine, and its budget.
- Administration → AI models → Consumption (instance administrator): every engine with its requests per minute now, its peak, its errors and its price, and every brain. It refreshes every 15 seconds.
Set a price per million tokens, for input and for output, per model (Consumption → Price). A model without a price is shown as such and does not count in the cost. For a local engine (Ollama), leave it at zero: what matters there is the time.
Optional, per brain, in tokens or in estimated cost:
- At 80 % and at 100 % the
ai.budgetnotification goes out, once per month and level (see Notifications). - With Pause ingestion when it is spent, at 100 % the brain stops ingesting proposals. An approved proposal waits, marked «paused», without being lost; it goes on by itself when the budget is raised or the month changes (checked every ten minutes). Recall, the decider and document indexing are not paused.
Changes to the budget and to the prices are audited (brain.ai_budget, ai.price).
GET /api/brains/{slug}/ai-usage?days=30 and PUT /api/brains/{slug}/ai-budget ({"limit", "unit": "tokens" | "cost", "pause"}; an empty limit removes it), for brain administrators. GET /api/ai-usage?days=30, PUT /api/ai-usage/prices ({"kind", "model", "price_in", "price_out"}) and DELETE /api/ai-usage/prices?kind=&model=, for the instance administrator. See REST API.
MimirSynth · Repository · Issues · Contributing / Contribuir · Roadmap · Apache-2.0
Start
Use
- Overview
- Journal
- Facts
- Entity page
- Knowledge
- Ask
- Reference queries
- Graph
- Cypher query
- Proposals
- Content quality
- Memory health
- Curator
- Verifiable facts
- Vocabulary
- Contradictions
- Jobs
- My account
Administer
- Administration overview
- Brains and members
- Federation
- Secrets
- Export a brain
- Import a brain
- Incoming webhooks
- Notifications
- Metrics
- Administer users
- Security and two-factor
- OIDC identity
- SMTP email
- AI providers
- AI consumption
- Folders and limits
- Recall and ingestion
- Audit log
- Settings reference
- Roles and permissions
Agents
- Connect agents
- Agent plugin configuration
- Claude Code integration
- Codex integration
- OpenCode integration
- Hermes Agent integration
- OpenClaw integration
- REST API
- Writing good memory
- Document memory
Reference
Español
Empezar: Tus primeros 15 minutos · Conceptos · Guía rápida · Instalación · Actualización y copias de seguridad · HTTPS y proxy inverso
Usar: Resumen · Diario · Hechos · Página de entidad · Conocimiento · Preguntar · Consultas de referencia · Grafo · Consulta Cypher · Propuestas · Calidad del contenido · Salud de la memoria · Curador · Hechos verificables · Vocabulario · Contradicciones · Trabajos · Mi cuenta
Administrar: Visión general de la administración · Administrar brains y miembros · Federación · Secretos · Exportar un brain · Importar un brain · Webhooks de entrada · Notificaciones · Métricas · Administrar usuarios · Seguridad y doble factor · Identidad OIDC · Correo SMTP · Proveedores de IA · Consumo de IA · Carpetas y límites · Recuerdo e ingesta · Auditoría · Referencia de ajustes · Roles y permisos
Agentes: Conectar agentes · Configuración de los plugins de agente · Integración con Claude Code · Integración con Codex · Integración con OpenCode · Integración con Hermes Agent · Integración con OpenClaw · API REST · Escribir buena memoria · Memoria documental
Referencia: Variables de entorno · Glosario · Preguntas frecuentes · Solución de problemas