Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
36 lines (27 loc) · 2.03 KB
/
Copy path.env.example
File metadata and controls
36 lines (27 loc) · 2.03 KB
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
36
# Copy this file to .env and fill in your values.
# .env is git-ignored — never commit real keys.
# ── OpenCode upstream ──────────────────────────────────────────────────────
# Your OpenCode API key (required)
OPENCODE_API_KEY=sk-...
# OpenCode go-tier endpoint (required)
UPSTREAM_URL=https://opencode.ai/zen/go/v1
# OpenCode free-tier endpoint (required if using free-tier models)
OPENCODE_FREE_URL=https://opencode.ai/zen/v1
# ── Direct provider API keys ───────────────────────────────────────────────
# OpenRouter API key (for openrouter/* free models)
OPENROUTER_API_KEY=YOUR_OPENROUTER_KEY
# Google Gemini API key (for gemma-4-31b-it and gemma-4-26b-a4b-it models)
GOOGLE_API_KEY=YOUR_GOOGLE_API_KEY
# ── Proxy server ───────────────────────────────────────────────────────────
PORT=8080
# ── Ingress auth (optional) ────────────────────────────────────────────────
# If set, every inbound request must carry "Authorization: Bearer <value>"
# PROXY_API_KEY=change-me-to-any-secret
# ── Direct provider bypass (direct:<model> mode) ──────────────────────────
# Set these to use model="direct:claude-opus-4-7" in Claude Code.
# DIRECT_URL=https://api.anthropic.com
# DIRECT_KEY=sk-ant-...
# ── Model routing ──────────────────────────────────────────────────────────
# Model routing is configured in models.json — no changes needed here.
# To override a single model without editing models.json, set MODEL_MAP:
# MODEL_MAP={"my-alias":"qwen3.7-max"}