AI Metering
Token usage tracking, cost estimation, per-user quotas, and budget governance for Drupal AI (ai) operations. All provider calls that flow through the ai module are intercepted automatically, with no per-feature instrumentation required.
Documentation
- Installation — Requirements, Composer install, optional integrations.
- Permissions — The five permissions and what each gates.
- Configuration — Pricing sources, quotas, alerts, currency, LiteLLM proxy.
- Dashboard by User — Per-user usage, quotas, inline budget editing.
- Dashboard by Role — Usage aggregated into role buckets.
- Per-call usage log — Filterable audit trail with CSV/JSON export.
- Monthly rollup and retention purge — Cron aggregation and raw-log retention.
- Personal usage self-service — Block, profile tab, and account-menu link.
- GDPR and account lifecycle — What happens on account deletion and cancellation.
- Drush commands — Quota resets, budgets, pricing sync, LiteLLM reports.
- Context grouping — Group all calls of one agent run.
- Hooks API — Alter hooks and the record-created event.
- Multi-currency setup — Display-time conversion and exchange rates.