samuelreichor/craft-co-pilot

AI Agent plugin for Craft CMS with chat interface, entry context awareness, field-level read/write, and multi-provider support.

Maintainers

Package info

github.com/samuelreichor/craft-coPilot

Issues

Documentation

Type:craft-plugin

pkg:composer/samuelreichor/craft-co-pilot

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

0.0.0-RC1 2026-03-08 15:12 UTC

This package is auto-updated.

Last update: 2026-03-08 15:19:08 UTC


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.