Skip to content

Installation

Not installable with Composer yet

The recipe packages have no composer.json yet, so composer require does not work. They wait for a release of AI Content Review that includes the tool-based criterion (#3585880).

Requirements

  • Drupal core 11.2 or later.
  • Composer and a Drupal project. The examples use DDEV with web as the docroot.
  • An AI provider with a default model for the Chat operation, or an OpenAI or Anthropic API key to enter when the base recipe is applied.

Install the package and apply the recipe

ddev composer require drupal/ai_content_review_base
ddev exec -d /var/www/html/web php core/scripts/drupal recipe ../recipes/ai_content_review_base

With Drush:

ddev drush recipe ../recipes/ai_content_review_base

The recipe asks for an OpenAI and an Anthropic API key. Both are optional. See Configuration.

To apply it without prompts, add --no-interaction and pass the keys as input:

ddev drush recipe ../recipes/ai_content_review_base --no-interaction \
  --input=ai_content_review_base.openai_api_key=sk-...

The recipe also reads the openai_api_key and anthropic_api_key environment variables when no input is given.