mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-06 15:07:58 +00:00
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/
18 lines
594 B
YAML
18 lines
594 B
YAML
# OpenCode Zen — Free Model Example
|
|
#
|
|
# Requirements:
|
|
# 1. Sign in to OpenCode Zen at https://opencode.ai/auth
|
|
# 2. Copy your API key and export it:
|
|
# export OPENCODE_API_KEY="your-api-key"
|
|
#
|
|
# deepseek-v4-flash-free is a free model — no charges apply.
|
|
# Full model list: https://opencode.ai/zen/v1/models
|
|
|
|
agents:
|
|
root:
|
|
model: opencode-zen/deepseek-v4-flash-free
|
|
description: A helpful AI assistant powered by OpenCode Zen (free)
|
|
instruction: |
|
|
You are a helpful AI assistant powered by OpenCode Zen.
|
|
Be helpful, accurate, and concise in your responses.
|