Introduction
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.
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
Choose Your Workflow
Kirby Copilot offers four ways to bring AI into the Panel. Mix and match based on your blueprints.
| Workflow | When to Use | Field Types |
|---|---|---|
| View Button | Generate multiple fields at once, or one field with full-page context | Any |
| Toolbar Buttons | In-field editing with selection awareness – append or replace | writer, textarea |
| Inline Suggestions | Passive ghost-text completions while typing – Tab to accept | writer |
| Copilot Section | Dedicated section UI for single-field generation | Blueprint 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.
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.
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.
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.