vectorbross / vb_ai_core
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
Requires
- composer/installers: ^2.3
- drupal/ai: ^1.4
- drupal/core: ^11.2
- drupal/key: ^1.22
- drupal/token: ^1.17
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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
| Module | Purpose |
|---|---|
ai | AI framework |
key | Secure API key storage |
token | Token replacement |
Requirements
- Drupal 11.2+
- Drush 13+
composer/installers2.3+ (the first version that knows thedrupal-recipetype)
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.
| Recipe | Provider | API key env variable |
|---|---|---|
vb_ai_provider_anthropic | Anthropic Claude | ANTHROPIC_API_KEY |
vb_ai_provider_openai | OpenAI | OPENAI_API_KEY |
vb_ai_provider_gemini | Google Gemini | GEMINI_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.