samuelreichor / craft-co-pilot
AI Agent plugin for Craft CMS with chat interface, entry context awareness, field-level read/write, and multi-provider support.
Package info
github.com/samuelreichor/craft-coPilot
Type:craft-plugin
pkg:composer/samuelreichor/craft-co-pilot
0.0.0-RC1
2026-03-08 15:12 UTC
Requires
- php: >=8.2
- craftcms/cms: ^5.0.0
- patrickschur/language-detection: ^5.3
Requires (Dev)
- craftcms/ecs: dev-main
- craftcms/phpstan: dev-main
- phpunit/phpunit: ^11.0
README
AI content assistant plugin for Craft CMS 5.
Requirements
- Craft CMS 5.0+
- PHP 8.2+
- API key for at least one provider: OpenAI, Anthropic, or Google Gemini
Installation
composer require samuelreichor/craft-co-pilot php craft plugin/install co-pilot
Configuration
Add your API key to .env:
OPENAI_API_KEY=sk-...
Create config/co-pilot.php:
<?php return [ // Provider: 'openai', 'anthropic', or 'gemini' 'activeProvider' => 'openai', // API key env var names (must be set in .env) 'openaiApiKeyEnvVar' => 'OPENAI_API_KEY', 'anthropicApiKeyEnvVar' => 'ANTHROPIC_API_KEY', 'geminiApiKeyEnvVar' => 'GEMINI_API_KEY', ];
All settings are optional — defaults work out of the box with just an API key.