Files
docker-agent/examples/opencode-go-practical.yaml
Trung Nguyen a2aee0438f fix: replace models removed from models.dev snapshot
opencode-go dropped deepseek-v4-flash (use deepseek-v4.1-flash) and nvidia
dropped nemotron-3-super-120b-a12b (use nemotron-3.5-super-vl-120b-a12b).
2026-10-19 15:22:47 +02:00

27 lines
1015 B
YAML

# OpenCode Go — Practical Example
#
# Requirements:
# 1. Subscribe to OpenCode Go at https://opencode.ai/auth
# 2. Copy your API key and export it as an environment variable:
# export OPENCODE_API_KEY="your-api-key"
#
# Available models:
# OpenAI-compatible (/v1/chat/completions):
# deepseek-v4.1-flash, deepseek-v4-pro, kimi-k2.7-code, kimi-k2.6,
# glm-5.2, glm-5.1, mimo-v2.5, mimo-v2.5-pro
#
# Anthropic-compatible (/v1/messages) — requires a custom provider:
# minimax-m3, minimax-m2.7, qwen3.7-max, qwen3.7-plus, qwen3.6-plus
agents:
root:
model: opencode-go/deepseek-v4.1-flash
description: Go assistant for programming tasks
instruction: |
You are an expert programming assistant.
You help with code, debugging, code review, and software architecture.
commands:
code: Write clean, well-structured code for the user's request.
review: Review the provided code and suggest improvements.
debug: Help debug the described code issue.