Drupal is a registered trademark of Dries Buytaert
Release: reCAPTCHA 8.x-3.5 Minor update available for module recaptcha (8.x-3.5). Release: Search API Solr 4.3.14 Minor update available for module search_api_solr (4.3.14). Release: ECA: Event - Condition - Action 2.1.22 Minor update available for module eca (2.1.22). Release: WebProfiler 11.2.1 Minor update available for module webprofiler (11.2.1). Usage Milestone: Entity Browser Module entity_browser crossed 100,000 active installs. Release: Editoria11y SI (SiteImprove) 3.0.0 Major update available for module editoria11y_si (3.0.0). Release: Diagnosis 1.0.3 Minor update available for theme diagnosis (1.0.3). Release: DiBa Integration 1.3.3 Minor update available for module diba_integration (1.3.3). Release: AlternativeCommerce NovaPoshta API 1.1.10 Minor update available for module basket_novaposhta (1.1.10). Module Revived: Commerce Currency Resolver 2.0.2 Module commerce_currency_resolver updated after 10 months of inactivity (2.0.2).

AI Inspector provides a dashboard for monitoring and observing AI requests made by your Drupal site. It logs prompts, responses, token usage, costs, and performance metrics with sensitive data masked.

AI Inspector is a monitoring and observability dashboard for the Drupal AI layer. It captures every AI request the AI module makes — prompt, response, tokens, timing, cost and status — and surfaces it as a developer-focused dashboard. Secrets are masked at capture.

Features

- Request & response inspector — full prompt, raw + processed response, finish reason, tokens, errors/warnings, per user.
- Token dashboard — prompt/completion/total tokens, estimated cost from an editable per-model price table, daily usage.
- Performance dashboard — response time, average latency, failed requests, success rate, with daily/provider/model charts.
- Provider health — response time, token volume and error rate per configured provider.
- Vector database inspector (submodule) — collections, embedding binding, index, collection health and a similarity tester over Search API ai_search indexes.
- CSV/JSON export (submodule) — permission-gated, masked.
- Captures AI calls from any module or code path that uses the AI layer, including decoupled REST/JS clients. No changes to calling code required.
- Secrets masked at capture; capture is asynchronous via the Queue API (no added request latency); dashboards read a daily rollup, not raw rows.

Post-Installation

Enable the module (and optionally ai_inspector_vector / ai_inspector_export), then visit Configuration → AI → AI Inspector (/admin/config/ai/inspector/requests). Configure capture, retention, masking and the cost price table under the Settings tab. Grant the "Access AI Inspector", "View AI request logs" and "Administer AI Inspector" permissions as appropriate. Capture begins automatically for any call made through drupal/ai.

Additional Requirements

Requires drupal/ai with at least one configured AI provider (e.g. OpenAI, AWS Bedrock, Ollama). The Vector submodule additionally requires drupal/search_api and an ai_search server/index. No external services beyond your configured AI provider.

- AI (drupal/ai) — required; the layer this module observes.
- AI Search (drupal/ai_search) + Search API — to use the Vector inspector submodule.

Activity

Tracked releases
1
Tracked since
Jun 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0 Stable Jun 28, 2026