nixcfg/config/opencode/config.json
Harald Hoyer d8e8293c0e feat(mx): add Nextcloud Talk opencode bot pointing at halo.hoyer.tail:8000
Mirrors the existing nextcloud-claude-bot setup but invokes `opencode run`
against the local `halo-8000` provider/model. The bot listens on
127.0.0.1:8086, is exposed via the `/_opencode-bot/` location on
nc.hoyer.xyz, and uses `@Halo` as its mention trigger in group chats.

The opencode config (config/opencode/config.json) is installed into the
service's $HOME/.config/opencode/ on each start, so the bot picks up the
same provider definition the user uses interactively. The model map keys
are renamed to `halo-8000` / `halo-8001` so the canonical
`provider/model` reference works without an alias indirection.
2026-05-13 15:08:18 +02:00

26 lines
606 B
JSON

{
"$schema": "https://opencode.ai/config.json",
"disabled_providers": ["opencode"],
"provider": {
"halo-8000": {
"npm": "@ai-sdk/openai-compatible",
"name": "Halo (8000)",
"options": {
"baseURL": "http://halo.hoyer.tail:8000/v1"
},
"models": {
"halo-8000": { "name" : "halo-8000" }
}
},
"halo-8001": {
"npm": "@ai-sdk/openai-compatible",
"name": "Halo (8001)",
"options": {
"baseURL": "http://halo.hoyer.tail:8001/v1"
},
"models": {
"halo-8001": { "name" : "halo-8001" }
}
}
}
}