Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

CLI Provider

No security coverage Under active development

Part of the AI ecosystem · 358 projects

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.

Ask your assistant about CLI Provider

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

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
1 week ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.0.0-alpha1 Pre-release 10–11 Nov 14, 2026
1.0.x-dev Dev 10–11 Apr 11, 2026