Installation

Learn how to install and configure the plugin in your Kirby project.

Step 1: Install the Plugin

Although it is a commercial plugin, you can download and test it in your local environment before purchasing.

Composer

The recommended way to install the plugin:

composer require johannschopplich/kirby-copilot

ZIP File Download

Download the latest version v3.2.0 or head over to the releases page to see all versions. Extract the ZIP file to your site/plugins folder.

Step 2: AI Provider Configuration

Configure the AI provider by setting the API key in the global Kirby configuration. The AI model is optional – sensible defaults are provided for each provider.

For example, to get started with Google Gemini, create a new Google API key and add it to the configuration:

config.php
return [
    'johannschopplich.copilot' => [
        'provider' => 'google',
        'providers' => [
            'google' => [
                'model' => 'gemini-3-pro-preview',
                'apiKey' => 'YOUR_API_KEY'
            ]
        ]
    ]
];
We recommend to create a unique API key for each project. This way, you can easily revoke access to the API key if needed.

Step 3: Choose Your Workflow

Kirby Copilot offers four ways to generate content. Each method integrates seamlessly into the Panel and can be mixed and matched based on your needs.

If you are unsure where to start, we recommend adding the copilot view button to your blueprint first.

View Button

Generate content for a single multiple fields at once from any Panel view.

pages/default.yml
buttons:
  - copilot # Choose position
  - preview
  - settings
  - languages
  - status

Toolbar Buttons

In-context editing for writer and textarea fields with selected text support.

text:
  type: writer
  marks:
    - copilot
    - copilot-suggestions

Inline Suggestions

Ghost text suggestions appear after you pause typing in writer fields. Enabled by default.

Copilot Section

Alternative to the Panel view button for single-field generation.

copilotSection:
  type: copilot
  field: blocks

Step 4: Buy a License

You can test the plugin locally. However, you need to purchase a license to use the plugin in production environments.

Visit the product page on Lemon Squeezy and purchase a license. Then, open any Panel page that contains the Copilot view button or section. You will see a license activation notice. Click the Activate link to open the activation form:

Enter the email you used for the purchase and the order number and hit the submit button. Done! Thanks for supporting our work. Once you activate your license, the license activation buttons will disappear.

Your license key will be stored automatically in /site/config/.kirby-tools-licenses. This file is created on first activation. Make sure to add it to your .gitignore to keep your license key private.