Introduction

AI-powered content generation and text editing for the Kirby Panel – plus a public PHP API for CLI scripts, hooks, and custom workflows.

Kirby Copilot is a plugin for Kirby CMS that brings AI assistance into the Panel without forcing a workflow. Pick the surfaces that fit your blueprints – view button, toolbar, inline suggestions, section – or skip them entirely and call the same provider stack from PHP.

Explore the interactive playground or install the plugin to try Kirby Copilot for yourself.

Features

Whether you are building sites for clients or managing content yourself, Kirby Copilot brings AI-assisted creation and editing to the Panel.

  • 🦙 Multi-Provider: OpenAI, Anthropic, Google, or Mistral – switch anytime.
  • 🧱 Structure-Aware Generation: Entire layouts from a single prompt, using your project's blocks.
  • Inline Suggestions: Ghost text after a brief pause – Tab to accept.
  • 📇 In-Context Editing: Refine writer/textarea text, with selection awareness.
  • 🌞 Prompt Templates: Save and reuse frequently-used prompts.
  • 🎀 Rich Context: Other fields, images, and PDFs feed the AI.
  • 🔒 Secure by Default: API keys stay server-side, never exposed to Panel users.
  • 🛠 PHP API: Drive AI from CLI, hooks, and custom workflows – see PHP classes.

Supported AI Providers

OpenAI

GPT-5 and GPT-5 Mini models for content generation.

Google

Gemini models. Recommended for blocks and layout generation. Free tier available!

Anthropic

Claude models for nuanced content generation.

Mistral

European AI models with multilingual strengths.

Choose Your Workflow

Kirby Copilot offers four ways to bring AI into the Panel. Mix and match based on your blueprints.

WorkflowWhen to UseField Types
View ButtonGenerate multiple fields at once, or one field with full-page contextAny
Toolbar ButtonsIn-field editing with selection awareness – append or replacewriter, textarea
Inline SuggestionsPassive ghost-text completions while typing – Tab to acceptwriter
Copilot SectionDedicated section UI for single-field generationBlueprint section

New to Copilot? Add the View Button to a blueprint first – it's the broadest workflow and works with any field.

View Button

With the copilot view button, you can access the prompt dialog from anywhere in the Panel. It is especially useful for generating content for multiple fields at once, but it works equally well for single fields.

Open the dialog, select the fields you want to generate content for, and let your AI assistant handle the rest.

Learn more about this workflow in the Panel View Button documentation.

Writer and Textarea Fields

Kirby Copilot integrates directly into writer and textarea fields with two complementary features:

Inline Suggestions appear as ghost text after a brief pause in typing – press Tab to accept or keep typing to dismiss. This feature is enabled by default for all writer fields.

Toolbar Buttons open the prompt dialog for more control. Select text before clicking to use it as context, then choose to replace or append the generated content.

Learn more in the Toolbar Buttons and Inline Suggestions documentation.

Blocks & Layout Generation

One of Kirby Copilot's key features is its ability to generate content for blocks and layout fields. This feature is especially useful for creating content for complex layouts such as landing pages, product pages, and blog posts.

Copilot discovers your project's custom block definitions and generates content based on their structure. No additional configuration is required.
Learn more about this feature in the Blocks & Layout Generation documentation.

Playground

Experience Kirby Copilot firsthand in the interactive playground. Bring your own provider API key – the playground runs client-side, so you can see your key in action transparently. Production installs route through a server-side proxy and never expose keys to Panel users.