Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Mailchimp 3.1.5 Minor update available for module mailchimp (3.1.5). Release: Commerce Shipping 3.0.5 Minor update available for module commerce_shipping (3.0.5). Release: GoogleTag Manager 2.0.1 Minor update available for module gtm (2.0.1). Usage Milestone: Easy Breadcrumb Module easy_breadcrumb crossed 100,000 active installs. Release: FlowDrop 1.6.1 Minor update available for module flowdrop (1.6.1). Release: MCP Sentinel 2.17.0 Minor update available for module mcp_sentinel (2.17.0). Release: Commerce ML Exchange 2.0.1 Minor update available for module cmlexchange (2.0.1). Release: Commerce ML Exchange 2.0.0 Major update available for module cmlexchange (2.0.0). Release: SynImport 2.0.0 Major update available for module synimport (2.0.0). Module Revived: Contextual Filter from Referer 1.0.2 Module contextual_filter_referer updated after 22 months of inactivity (1.0.2).

CLI Provider

No security coverage

Part of the AI ecosystem · 302 projects

View on drupal.org

This module allows Drupal to use AI command-line interface (CLI) tools installed on your local machine as AI providers. It integrates these CLI tools so they can be used directly by Drupal's AI features without needing custom API integrations, making local AI models and other CLI-based AI services easily accessible.

Bridges the growing ecosystem of AI CLI tools with Drupal's AI module, letting you use locally installed binaries as first-class AI providers — no custom API integrations required.

Instead of calling remote APIs directly, this module pipes prompts to CLI tools installed on your host machine and returns their output as standard Drupal AI responses. This makes any tool that accepts stdin and writes to stdout immediately available to AI-powered Drupal features like content generation, summarisation, and assistants.

Supported tools out of the box

  • Claude Code (Anthropic)
  • Codex (OpenAI)
  • Gemini CLI (Google) — free tier, 1,000 requests/day
  • OpenCode — open source, 75+ provider support
  • Ollama — run open models locally, no API key needed
  • LM Studio — local models via the lms CLI
  • llm (Simon Willison) — proxies to 100+ backends including DeepSeek, Groq, Mistral, and Anthropic via plugins

Custom tools can be added through the settings form — any binary that reads from stdin and writes to stdout works.

DDEV container support

For DDEV environments where CLI tools live on the host machine rather than inside the container, install the ddev-cli-relay addon. Once installed, it starts automatically on ddev start and forwards requests from inside the container to the host binaries.

Requirements

Requires the AI module and Python 3 on the host (for the DDEV relay). CLI tools must be installed separately.

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
1
Tracked since
Apr 2026
Latest release
4 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

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