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.

add-on registry tests last commit release

DDEV Assistant Opencode

About this fork

This is a fork of https://github.com/e0ipso/ddev-assistant-opencode that installs OpenCode V2 instead of V1.

Overview

This add-on integrates Assistant Opencode into your DDEV project’s web container.

Installation

ddev add-on get brookemahoney/ddev-assistant-opencode
ddev restart

After installation, make sure to commit the .ddev directory to version control.

Usage

Command Description
ddev exec opencode Run OpenCode commands inside the web container

Configuration

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:

  1. Installs OpenCode into the web container image at /usr/local/bin/opencode
  2. Ensures all mounted directories are owned by the web user (not root)

Credits

Contributed and maintained by @brookemahoney

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