Files
docker-agent/examples/opencode-go.yaml
T
jopsis e5334adff1 feat: add OpenCode Go and OpenCode Zen provider support
Add built-in alias and documentation for both OpenCode subscription plans:

OpenCode Go (opencode-go):
- Low-cost subscription for open-source coding models
- OpenAI-compatible endpoint at https://opencode.ai/zen/go/v1
- Anthropic-compatible models via custom provider config

OpenCode Zen (opencode-zen):
- Pay-per-use curated gateway for premium + open-source models
- OpenAI-compatible endpoint at https://opencode.ai/zen/v1
- Covers GPT-5.x, Claude, Gemini, DeepSeek, GLM, Kimi, Grok
- Includes 7 free models
- Anthropic and Google models via custom provider config

Both share the OPENCODE_API_KEY environment variable.

Technical changes:
- pkg/model/provider/aliases.go: register opencode-go and opencode-zen
- pkg/config/auto.go: add default models for both providers
- cmd/root/models.go: add live fetch from provider /v1/models endpoint
  when models.dev has no entry
- pkg/config/examples_test.go: skip opencode-zen in models.dev validation
- docs/: full provider docs pages, nav entry, overview update
- examples/: usage examples for both providers
- .gitignore: add graphify-out/
2026-06-29 17:13:40 +02:00

9 lines
331 B
YAML

agents:
root:
model: opencode-go/deepseek-v4-flash
description: A helpful AI assistant powered by OpenCode Go
instruction: |
You are a helpful AI assistant powered by OpenCode Go.
Be helpful, accurate, and concise in your responses.
You are powered by open-source models served through OpenCode Go.