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.
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.
/write blog about
/ : 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 commandDXPR 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.
composer require drupal/ckeditor_ai_agent/admin/config/ai/settings/admin/config/content/formats and drag the "AI Agent" button into the CKEditor toolbar
Spin up DXPR CMS: Drupal pre-configured with DXPR Builder, DXPR Theme, CKEditor AI Agent module, and security best practices.
/write followed by your topic to generate new contentCmd/Ctrl + / to insert AI content mid-sentencedrupal/ai): Required. Routes AI requests through Drupal server-side, keeping API keys secure. Works with any AI provider plugin.The module itself is free and open source (GPL). You need an AI provider to process requests. DXPR AI Provider includes 10,000 free words and 10 images per month for all sites. Alternatively, use your own API keys with OpenAI, Anthropic, Ollama, or any other provider supported by the Drupal AI module.
All AI requests are routed server-side through the Drupal AI module. API keys are stored in your Drupal configuration (or in the Key module for extra security) and never sent to the browser. The CKEditor plugin communicates only with your own Drupal backend, which then forwards requests to the AI provider.
Yes. When paired with DXPR AI Provider, the module supports long-form content creation by automatically routing between multiple AI providers when token limits are reached. Content teams can generate 1,000+ word articles with proper research and structure in a single prompt, including headings, lists, and formatted HTML.
Yes. The module is context-aware and reads the surrounding editor content to produce relevant responses. You can also select existing text and use the AI menu to revise, translate, summarise, or adjust tone. All edits are inserted directly into CKEditor with full undo/redo support.
CKEditor AI Agent works with any chat model available through the Drupal AI module ecosystem: over 400 models from providers including OpenAI (GPT-4o, GPT-4), Anthropic (Claude), Google (Gemini), Mistral, XAI (Grok), and local models via Ollama. Switch models at any time without changing your content workflow.
Yes. CKEditor AI Agent works inside DXPR Builder's text editing fields. When editing rich text elements in the page builder, all slash commands, streaming, and AI menu options are available. DXPR Builder also passes its security settings to the CKEditor 5 AI Agent plugin automatically.
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.
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.