Drupal is a registered trademark of Dries Buytaert
cms 2.1.0 Update released for Drupal core (2.1.0)! menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). ai 1.2.13 Minor update available for module ai (1.2.13). ai 1.3.2 Minor update available for module ai (1.3.2). moderated_content_bulk_publish 2.0.51 Minor update available for module moderated_content_bulk_publish (2.0.51). moderated_content_bulk_publish 2.0.50 Minor update available for module moderated_content_bulk_publish (2.0.50). editoria11y 2.2.21 Minor update available for module editoria11y (2.2.21). eca 3.1.0 Minor update available for module eca (3.1.0). sophron 3.1.1 Minor update available for module sophron (3.1.1). ai 1.3.1 Minor update available for module ai (1.3.1). seven 2.0.0-beta6 New beta version released for theme seven (2.0.0-beta6). seven 1.0.1-beta1 First beta version released for theme seven (1.0.1-beta1). miniorange_saml 3.1.4 Minor update available for module miniorange_saml (3.1.4). eca_tamper 2.0.10 Minor update available for module eca_tamper (2.0.10). modeler_api 1.1.1 Minor update available for module modeler_api (1.1.1). turnstile 1.1.26 Minor update available for module turnstile (1.1.26). email_tfa 2.0.8 Minor update available for module email_tfa (2.0.8). paragraphs_entity_embed 4.0.0 Major update available for module paragraphs_entity_embed (4.0.0). bootstrap_italia 2.17.4 Minor update available for theme bootstrap_italia (2.17.4). bootstrap_italia 2.17.6 Minor update available for theme bootstrap_italia (2.17.6).

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.

Activity

Total releases
2
First release
Apr 2026
Latest release
21 hours ago
Release cadence
0 days
Stability
0% stable

Releases

Version Type Release date
2.0.x-dev Dev Apr 1, 2026
1.0.x-dev Dev Apr 1, 2026