Search by

vectorbross / vb_ai_core

vectorbross

Base AI stack for VB client sites: ai, key and token.

Package info

bitbucket.org/vectorbross/vb_ai_core

Type:drupal-recipe

pkg:composer/vectorbross/vb_ai_core

Statistics

Installs: 1

Dependents: 7

Suggesters: 0

1.0.0 2026-11-27 11:12 UTC

This package is not auto-updated.

Last update: 2026-12-03 21:58:13 UTC


README

Base AI stack for Vector Bross client sites. Enables the AI framework with key and token support. No LLM provider is included; add a provider recipe on top (see Choose a provider).

What it installs

ModulePurpose
aiAI framework
keySecure API key storage
tokenToken replacement

Requirements

  • Drupal 11.2+
  • Drush 13+
  • composer/installers 2.3+ (the first version that knows the drupal-recipe type)

Project setup

1. Update composer/installers

Make sure the project uses the latest composer/installers:

ddev composer require composer/installers:^2.3

2. Add the recipe install path

Add this to extra.installer-paths in the project's composer.json, so recipes land in recipes/ at the project root:

"installer-paths": {
    "recipes/{$name}": ["type:drupal-recipe"]
}

Without this line the recipe is installed in vendor/ and the paths below will not work. All VB AI recipes must end up in the same recipes/ folder, because the provider recipes reference vb_ai_core by name.

3. Require the recipe

The VB recipes are not on Packagist, so the project's composer.json also needs a repositories entry pointing to the VB package source.

ddev composer require vectorbross/vb_ai_core

Apply the recipe

Run from the project root. Drush runs from the web docroot, so the path starts with ../recipes.

ddev drush recipe ../recipes/vb_ai_core
ddev drush cr

Verify

ddev drush pm:list --status=enabled --filter=ai

Choose a provider

vb_ai_core has no LLM provider. Pick one of the provider recipes below. Each one applies vb_ai_core first, so you only need to require and apply the provider recipe.

RecipeProviderAPI key env variable
vb_ai_provider_anthropicAnthropic ClaudeANTHROPIC_API_KEY
vb_ai_provider_openaiOpenAIOPENAI_API_KEY
vb_ai_provider_geminiGoogle GeminiGEMINI_API_KEY

Example with Anthropic:

ddev composer require vectorbross/vb_ai_provider_anthropic
ddev drush recipe ../recipes/vb_ai_provider_anthropic
ddev drush cr

License

GPL-2.0-or-later. See LICENSE.txt.