feat: add opencode

This commit is contained in:
Sun-ZhenXing
2026-01-22 10:48:31 +08:00
parent 2a010843d1
commit 32742dc535
11 changed files with 201 additions and 3 deletions
+31
View File
@@ -0,0 +1,31 @@
# OpenCode Version
OPENCODE_VERSION=1.1.27
# Host Port Override
OPENCODE_PORT_OVERRIDE=4096
# Project Directory to mount (absolute or relative path)
# This is where OpenCode will perform coding tasks
OPENCODE_PROJECT_DIR=./project
# Timezone
TZ=UTC
# LLM Provider API Keys
# You need at least one of these to use OpenCode
ANTHROPIC_API_KEY=
OPENAI_API_KEY=
GEMINI_API_KEY=
DEEPSEEK_API_KEY=
GROQ_API_KEY=
TOGETHER_API_KEY=
MISTRAL_API_KEY=
# Optional: Inline JSON config content
# OPENCODE_CONFIG_CONTENT={"theme": "opencode", "autoupdate": false}
# Resource Limits
OPENCODE_CPU_LIMIT=1.0
OPENCODE_MEMORY_LIMIT=2G
OPENCODE_CPU_RESERVATION=0.25
OPENCODE_MEMORY_RESERVATION=512M