Raised: $0
0% of monthly goal Help us cross the finish line!
Goal: $12,000
Raised: $0 Goal: $12,000
0% of monthly goal Help us cross the finish line!
Sponsor DDEV

If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.

DDEV add-on for Pi Coding Agent

This DDEV add-on provides a fully containerized, isolated environment for the Pi Coding Agent.

Architecture & security

Requirements

Installation

ddev addon get mxr576/ddev-pi
ddev restart

Usage

The Pi agent runs as a DDEV service under the pi profile. You must start DDEV with that profile active.

  1. Start DDEV with the Pi profile enabled:
    ddev start --profiles=pi
    
  2. Run Pi commands via the ddev pi wrapper:
    ddev pi [command]
    

Example:

ddev pi status

Note: The ddev pi command is a thin wrapper that runs ddev exec --service=pi pi "$@" inside the sidecar container. The container’s working directory is /var/www/html (your project root).

Managing extensions

Pi supports two types of extensions:

To remove extensions, use ddev pi remove (global) or ddev pi remove -l (project).

Configuration

Default configurations are initialized in your project’s .pi/ directory during installation (settings.json is copied from the add-on defaults). Modify settings.json there to configure providers and agent preferences.

Note: Re-running ddev addon get will not overwrite an existing .pi/ directory. Defaults are only copied when .pi/ is empty.

Uninstalling

ddev addon remove pi

The .pi/ folder in your project root and the pi-agent Docker volume are not removed automatically. Clean them up manually if needed:

# Remove the project Pi configuration
rm -rf .pi/

# Remove the named Docker volume
docker volume rm ddev-<your-project-name>-pi-agent

Credits

Contributed and maintained by @mxr576. The initial proof of concept and early development were sponsored by Pronovix.

If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.