Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Leaflet 10.4.13 — Minor update available for module leaflet (10.4.13). Release: Flag 5.1.1 — Minor update available for module flag (5.1.1). Release: Layout Paragraphs 3.0.0-beta5 — New beta version released for module layout_paragraphs (3.0.0-beta5). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

AI Claude Agent SDK (VERY EXPERIMENTAL)

No security coverage

Part of the AI ecosystem · 340 projects

View on drupal.org

This experimental module integrates your Drupal site with the Claude Agent SDK, allowing it to act as a runtime for Claude Code. It provides an API bridge for chat, tool use, and file operations, and supports streaming responses for real-time output. This module is intended for building conversational assistants, automating content tasks, and creating advanced agent workflows within Drupal.

Features

This module integrates Drupal with the Claude Agent SDK (PHP), letting your site interact with Claude Code as an agent runtime. It provides:

NOTE: THIS IS VERY EXPERIMENTAL! IT GIVES ACCESS TO ALL FILES ON YOUR SITE!

We will be making this more locked down but for a long time this is going to be HIGHLY experimental and insecure!

Make use of our (also vibe coded) claude agent sdk php implementation: https://github.com/jamieaa64/claude-agent-sdk-php

  • An API bridge for Claude Code’s agent capabilities (chat, tool use, file operations).
  • Support for streaming responses (real‑time output).
  • Control hooks like interrupt, permission mode changes, and MCP message handling.
  • A developer‑friendly integration path for Drupal AI Agents and DeepChat UIs.

Use this module when you want Claude Code inside Drupal for conversational assistants, automated content work, or advanced agent workflows.

The goal is to eventually create an abstraction layer that allows us to connect to different CLIs.

———

Post-Installation

Commands to automate this:

mkdir -p modules
git clone [email protected]:project/ai_claude_agent_sdk.git modules/ai_claude_agent_sdk
bash modules/ai_claude_agent_sdk/scripts/setup-claudeagentsdk-dev.sh
If you want live mode instead of dev mode:

bash modules/ai_claude_agent_sdk/scripts/setup-claudeagentsdk-live.sh

ddev composer require drupal/ai_claude_agent_sdk
ddev setup-claudeagentsdk-dev

If doing this on a live site (Which you shouldn't!)

ddev setup-claudeagentsdk-live

After enabling the module:

1. Configure the Claude Agent SDK connection (CLI path, working directory, permission mode).
2. Ensure Claude Code CLI is available on the server and your API key is set (e.g. ANTHROPIC_API_KEY).
3. If using a UI (e.g. DeepChat), configure the endpoint provided by this module.
4. Clear caches after configuration changes.

The module can run in streaming mode and supports advanced control flows if you enable them.

———

Additional Requirements

- Claude Code CLI installed on the server.
- Claude Agent SDK (PHP) available via Composer or local path repository.
- Valid Anthropic API credentials (e.g. ANTHROPIC_API_KEY environment variable).

———

- Drupal AI ecosystem modules (e.g. ai_agents, ai_agent_agent).
- DeepChat integration module if you want a ready‑made chat UI.
- Symfony Process (via Composer) for CLI execution in PHP.

———

Similar projects

Drupal AI provider modules integrate with hosted LLM APIs, but they do not expose Claude Code’s agent runtime, tool chain, or file operations. This module is specifically designed for Claude agents via Claude Code.

———

Supporting this Module

If you’d like to support development, contributions and sponsorship info will be posted here.

———

Community Documentation

Documentation, demos, and walkthroughs will be published here as the project stabilizes.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Apr 2026
Latest release
6 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
2.0.x-dev Dev 10–11 Apr 1, 2026
1.0.x-dev Dev 10–11 Apr 1, 2026