If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.
This DDEV add-on integrates pi-claude-code into your DDEV project’s ddev-pi environment, allowing you to use your Claude subscription directly within the Pi Coding Agent.
This add-on extends mxr576/ddev-pi. ddev-pi will be installed automatically if not already present.
ddev add-on get mxr576/ddev-pi-claude-code
ddev restart && ddev start --profiles=pi
After installation, make sure to commit the .ddev directory to version control.
Authenticate the Claude Code CLI inside the pi service:
ddev pi-claude-login
Follow the browser prompt to log in with your Anthropic/Claude account. Credentials are persisted across container restarts in .ddev/pi/claude.
| Command | Description |
|---|---|
ddev pi-claude-login |
Authenticate Claude Code CLI in the pi container |
ddev pi |
Launch interactive Pi Coding Agent session with pi-claude-code enabled |
You can specify or pin the @anthropic-ai/claude-code version using the PI_CLAUDE_CODE_VERSION environment variable in .ddev/.env.pi:
ddev dotenv set .ddev/.env.pi --pi-claude-code-version="2.1.322"
ddev restart && ddev start --profiles=pi
All customization options:
| Variable | Flag | Default | Description |
|---|---|---|---|
PI_CLAUDE_CODE_VERSION |
--pi-claude-code-version |
latest |
Version of @anthropic-ai/claude-code npm package to install |
Contributed and maintained by @mxr576
If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.