Part of the Ckeditor ecosystem · 110 projects
This module transforms CKEditor into an AI-powered content creation tool, offering slash commands and real-time streaming to generate and edit content quickly. It supports over 400 AI models and integrates seamlessly with external web content, while ensuring API keys are kept secure.
This module is part of the AI module ecosystem and included in DXPR CMS.
Transform CKEditor 5 into an AI-powered content creation platform with slash commands, real-time streaming, and support for 400+ AI models. Like ChatGPT but faster, and better at creating HTML content. Built on DXPR's CKEditor 5 AI plugin.
You need CKEditor AI Agent if
- You want AI-powered content generation directly within your text editor
- Your content team needs faster, more efficient writing workflows
- You want to integrate external web content seamlessly into your articles
- You need support for multiple AI providers with automatic failover
- You prefer intuitive slash commands over complex AI interfaces
How It Works
Type / in any CKEditor 5 field to open the AI command menu. Enter a prompt, press Enter, and watch content stream into the editor in real time. All requests are routed server-side through the Drupal AI module; API keys never reach the browser. The module works with any AI provider supported by the AI module: DXPR, OpenAI, Anthropic, Ollama, and more.
Features
- Slash commands: Quickly trigger AI actions using intuitive commands like
/write blog about - Real-time streaming: See AI-generated content appear instantly as it is written
- Web content integration: Include URLs in prompts to incorporate external content as reference material
- Context-aware writing: Automatically uses surrounding editor content to enhance response accuracy
- Selection-based edits: Select text to quickly revise, improve, or translate with AI
- 400+ AI models support: Works with commercial and open source AI vendors via the Drupal AI module
- Secure server-side proxy: AI requests are routed through Drupal; API keys are never exposed to the browser
- Smart formatting: Automatically ensures generated HTML matches your editor's allowed content
- Multilingual support: Fully supports Drupal's multilingual content features
- Simple menu options: Easily edit, review, fix errors, and adjust tone from dropdown menus
- Extensible API: Clearly defined API for integration with custom workflows or systems
Keyboard Shortcuts
/: Open AI command menu in an empty fieldCmd/Ctrl + /: Force insert slash command within textCmd/Ctrl + Backspace: Cancel AI generationEnter: Execute commandShift + Enter: Add new line in command
Extended Content Capabilities
DXPR AI Provider enables long-form content creation by automatically routing between multiple AI providers when limits are reached. Combined with CKEditor AI Agent, content teams can generate 1,000+ word articles with proper research and structure in a single prompt.
Getting Started
- Install with Composer:
composer require drupal/ckeditor_ai_agent - Enable the module and install an AI provider (e.g. DXPR AI Provider, OpenAI, or any other supported provider)
- Configure a default Chat provider at
/admin/config/ai/settings - Grant the "Use CKEditor AI Agent" permission to roles that should have AI access
- Edit your text format at
/admin/config/content/formatsand drag the "AI Agent" button into the CKEditor toolbar - Start using slash commands or the toolbar button for AI assistance
Prefer a turnkey demo site?
Spin up DXPR CMS: Drupal pre-configured with DXPR Builder, DXPR Theme, CKEditor AI Agent module, and security best practices.
Usage Examples
- Content Creation: Type
/writefollowed by your topic to generate new content - Content Enhancement: Select text and use the AI menu to improve or modify it
- Reference Integration: Include URLs in prompts to incorporate external content
- Inline Assistance: Use
Cmd/Ctrl + /to insert AI content mid-sentence - Multilingual Content: Generate content in any language supported by your chosen AI model
Dependencies
- AI module (
drupal/ai): Required. Routes AI requests through Drupal server-side, keeping API keys secure. Works with any AI provider plugin.
FAQ
- Does CKEditor AI Agent require a paid subscription?
-
The module is free and open source (GPL). You need an AI provider: DXPR AI Provider includes 10,000 free words per month, or use your own keys with OpenAI, Anthropic, Ollama, or any other supported provider.
- How does CKEditor AI Agent keep API keys secure?
-
All AI requests are routed server-side through the Drupal AI module. API keys stay in your Drupal configuration and never reach the browser.
- Can CKEditor AI Agent generate long-form content like full blog posts?
-
Yes. With DXPR AI Provider, the module automatically chains multiple AI providers when token limits are reached, enabling 1,000+ word articles with headings, lists, and formatted HTML in a single prompt.
- Does CKEditor AI Agent work with existing content?
-
Yes. The module reads surrounding editor content for context. Select text and use the AI menu to revise, translate, summarise, or adjust tone, with full undo/redo support.
- Which AI models are supported?
-
Over 400 models from OpenAI, Anthropic, Google, Mistral, XAI, and local models via Ollama. Switch models at any time without changing your content workflow.
- Can I use CKEditor AI Agent inside DXPR Builder?
-
Yes. All slash commands, streaming, and AI menu options work inside DXPR Builder's text editing fields. Security settings are passed through automatically.
- Does the module support multilingual content?
-
Yes. CKEditor AI Agent uses the entity's language setting to generate content in the correct language and can translate selected text between languages directly in the editor.
Related Modules
- AI module - Required. Routes all AI requests server-side through Drupal; API keys never reach the browser
- DXPR AI Provider - Compatible AI provider that enables long-form content creation with automatic failover between AI backends
- DXPR Builder - Drag-and-drop Drupal page builder. CKEditor AI Agent works inside DXPR Builder's text editing fields
- Webform - Form builder with dedicated DXPR Builder block integration
CKEditor AI Agent is part of the AI-powered content stack included in DXPR CMS, a turnkey marketing CMS for Drupal that combines AI content creation, a premium Drupal theme, and a drag-and-drop layout builder. See getting started or explore pricing.
Ask your assistant about CKEditor AI Writing Agent
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- AI (Artificial Intelligence)
- ckeditor5 Drupal core
Required by
1 tracked project depends on this one
- AI Social Posts 134 sites
More in the Ckeditor ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-alpha2 | Pre-release | 10–11 | Feb 6, 2025 | ||
| 1.0.0-alpha1 | Pre-release | 10–11 | Feb 4, 2025 | ||
| 1.x-dev | Dev | 10–11 | Feb 4, 2025 |