31 lines
681 B
Bash
31 lines
681 B
Bash
# 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.1
|
|
OPENCODE_MEMORY_RESERVATION=512M |