-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy path.env.example
More file actions
35 lines (29 loc) · 863 Bytes
/
.env.example
File metadata and controls
35 lines (29 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# ============================================
# OpenCode WebUI - 环境变量
# ============================================
# cp .env.example .env
# ---- LLM Provider API Keys(至少填一个)----
ANTHROPIC_API_KEY=
OPENAI_API_KEY=
GEMINI_API_KEY=
DEEPSEEK_API_KEY=
GROQ_API_KEY=
MISTRAL_API_KEY=
XAI_API_KEY=
# ---- 端口 ----
GATEWAY_PORT=6658
PREVIEW_PORT=6659
# ---- 预览域名(绑定独立域名解决前端资源路径问题)----
# 例如 preview.example.com,Nginx 将此域名转发到 PREVIEW_PORT
PREVIEW_DOMAIN=
# ---- 工作目录 ----
WORKSPACE=./workspace
# ---- 安全(公网部署务必设置)----
OPENCODE_SERVER_PASSWORD=
OPENCODE_SERVER_USERNAME=opencode
# ---- 路由服务(由 gateway 内置)----
PUBLIC_BASE_URL=
ROUTER_SCAN_INTERVAL=5
ROUTER_TOKEN_LENGTH=12
ROUTER_PORT_RANGE=3000-9999
ROUTER_EXCLUDE_PORTS=4096