This add-on integrates Opencode into your DDEV project.
ddev add-on get dragonwize/ddev-opencode
ddev restart
After installation, make sure to commit the .ddev directory to version control.
| Command | Description |
|---|---|
ddev opencode |
Start OpenCode in the container. |
ddev opencode-serve |
Start OpenCode server. Then connect to it from outside with `opencode attach |
OpenCode has new versions very frequently. Since the install is cached in the Docker container for faster startups, a container rebuild is needed to pull the latest version.
ddev add-on get dragonwize/ddev-opencode
ddev restart --no-cache
If you want to update quickly, knowing it will not keep on restart: (Useful to check the new version before saving in your docker container)
ddev opencode upgrade
Contributed and maintained by @dragonwize