Skip to content

Installation & Requirements

  • PHP: 8.4 or higher (ext-curl, ext-pdo_sqlite, and ext-openssl or ext-sodium for SecretBox)
  • ProcessWire: 3.0.271 or higher
  • Required First-Party Modules: Inertia, React, Entries
  • Companion Modules Included: ProcessAi (Setup -> AI) and InputfieldAiChat (inline AI drawer in Page/Entry editors)
  • CLI Tooling: trk/processwire-console for all 8 ai:* / make:assistant commands, 4 queue workers, and PruneAiUsageLogsTask
  1. Require the package and its neuron-core/neuron-ai runtime dependency:

    Terminal window
    composer require trk/processwire-ai
  2. Refresh and install Ai (and its companions):

    Terminal window
    php vendor/bin/wire module:refresh
    php vendor/bin/wire module:install Ai

Installing Ai automatically registers all 7 Entries blueprints (AiBlueprints), creates the 3 telemetry tables (ai_usage_logs, ai_conversations, ai_mcp_logs), creates the 5 RBAC permissions (ai-admin, ai-use, ai-translate, ai-image, ai-audit), and installs ProcessAi at Setup -> AI.

Terminal window
php vendor/bin/wire ai:doctor --json
# Or auto-repair missing blueprints, tables, cache dirs, or permissions:
php vendor/bin/wire ai:doctor --fix --force --json

Navigate to Setup -> AI in the ProcessWire admin to add your first provider connection and assign default model tiers.

Module Role
Ai Core service ($this->wire()->ai / Ai::requireInstance($wire)), gateway, editorial engine, agent runner, vector index, and MCP server.
ProcessAi Full React/Inertia administrative workspace mounted at Setup -> AI (Overview, Providers, Models, Routing & Governance, MCP Access, Rules, Brand Voices, Glossaries, Assistants, Editorial Sandbox, Bulk Operations, Activity & Logs).
InputfieldAiChat Self-contained companion Inputfield (dist/InputfieldAiChat.{js,css}) for embedding grounded AI chat and proposal review directly inside Page and Entry edit forms.

Next steps