This add-on integrates Assistant Opencode into your DDEV project's web container.
ddev add-on get e0ipso/ddev-assistant-opencode
ddev restartAfter installation, make sure to commit the .ddev directory to version control.
| Command | Description |
|---|---|
ddev exec opencode |
Run OpenCode commands inside the web container |
The add-on mounts your host OpenCode configuration into the web container:
| Host Path | Container Path | Purpose |
|---|---|---|
~/.config/opencode |
~/.config/opencode |
OpenCode configuration |
~/.cache/opencode |
~/.cache/opencode |
OpenCode cache |
~/.local/share/opencode |
~/.local/share/opencode |
OpenCode data (including auth) |
On first ddev restart, the add-on:
- Installs OpenCode into the web container image at
/usr/local/bin/opencode - Ensures all mounted directories are owned by the web user (not root)
Contributed and maintained by @e0ipso