AI Usage Log
Async LLM usage metrics in PostgreSQL
Capture tokens, latency, API and tool calls from the native Odoo Enterprise AI stack into a database queue, then flush them to a read-only usage log under the AI app. Privacy-first: prompts and model responses are never stored.
- Database audit, not only server logs — See LLM usage inside Odoo instead of grepping [AI Summary] in the logfile.
- Async flush — Cheap enqueue on each LLM call; a scheduled action materializes durable rows every few minutes without blocking answers.
- Privacy-first — Only metrics (tokens, latency, provider, agent). No prompts, no completions.
- Fail-soft — Logging errors never break AI chats, composers or direct responses.
- Native AI menu — Lives under AI → Configuration → Usage logs next to agents and settings.
- Retention control — Daily purge with configurable retention (ai_usage_log.retention_days, default 90).





