initial commit

This commit is contained in:
felix
2026-07-02 12:54:55 +02:00
commit a52876cd66
6 changed files with 95 additions and 0 deletions

35
README.md Normal file
View File

@@ -0,0 +1,35 @@
# app-open-code-experiment
[opencode](https://opencode.ai/) in a Docker container, wired to [weave](https://weave.redpencil.io) 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:
```yaml
services:
opencode:
environment:
WEAVE_API_KEY: "..."
volumes:
- /path/to/your/repo:/workspace/repo
```
Then:
```
docker compose up -d
docker compose exec opencode opencode
```
Or a one-shot against a registered model:
```
docker compose exec opencode opencode run --model weave/glm-5.2 "..."
```
## Layout
- `config/opencode/` - image: Dockerfile + baked `opencode.json`
- `data/` - persisted opencode state (gitignored)
- `docker-compose.yml` - opencode service