Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Role Theme Switcher Module role_theme_switcher crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

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