2026-07-02 14:02:23 +02:00
2026-07-02 13:53:22 +02:00
2026-07-02 12:54:55 +02:00
2026-07-02 12:54:55 +02:00
2026-07-02 12:54:55 +02:00
2026-07-02 14:02:23 +02:00

app-opencode-experiment

opencode in a Docker container, wired to weave as the model provider. Default model weave/glm-5.2. LSP baked in for TypeScript/JS and Python.

Setup

Create a docker-compose.override.yml (gitignored) with your weave key and repo mount:

services:
  opencode:
    environment:
      WEAVE_API_KEY: "..."
    volumes:
      - /path/to/your/repo:/workspace/repo

Then:

drc  up -d
drc exec opencode opencode

TUI

In the TUI, type /models to select a model from the registered weave models.

Layout

  • config/opencode/ - image: Dockerfile + baked opencode.json
  • data/ - persisted opencode state (gitignored)
  • docker-compose.yml - opencode service

Caveats

  • Copy from the TUI is weird over Docker: To copy text out of the opencode TUI running in a container, I have to do Shift+click to select the text, then Ctrl+Shift+C to copy. Plain COPY doesn't work.
Description
No description provided
Readme 31 KiB
Languages
Dockerfile 100%