-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
74 lines (60 loc) · 4.06 KB
/
Copy path.env.example
File metadata and controls
74 lines (60 loc) · 4.06 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# bscode environment variables — copy to .env.local for local dev
#
# For Cloudflare Workers deployment, sensitive values (API keys, tokens)
# must be set via:
# wrangler secret put <VAR_NAME>
#
# Non-sensitive config (URLs, flags) can go in wrangler.toml [vars].
# See apps/worker/wrangler.toml for the full Workers configuration.
# ── Required for any LLM to work ─────────────────────────────────────────────
# Protect the worker — callers must send: Authorization: Bearer <token>
# Generate with: openssl rand -hex 32
# BSCODE_CLIENT_TOKEN=
# ── Anthropic (Claude) ───────────────────────────────────────────────────────
# Get your key at: https://console.anthropic.com/settings/keys
# ANTHROPIC_API_KEY=sk-ant-...
# Optional: override the Anthropic endpoint (e.g. a local proxy or EU region)
# ANTHROPIC_BASE_URL=https://api.anthropic.com
# ── 火山引擎 Volcengine Ark (Doubao / 豆包) ───────────────────────────────────
# Get your key at: https://console.volcengine.com/ark/region:ark+cn-beijing/apiKey
# The key is called "API Key" in the Ark console.
# DOUBAO_API_KEY=
# Optional: override the Ark endpoint (default: ark.cn-beijing.volces.com/api/v3)
# Use this if Volcengine adds a new regional endpoint or you run an internal proxy.
# DOUBAO_BASE_URL=https://ark.cn-beijing.volces.com/api/v3
# ── DeepSeek ─────────────────────────────────────────────────────────────────
# Get your key at: https://platform.deepseek.com/api_keys
# DEEPSEEK_API_KEY=sk-...
# Optional: override the DeepSeek endpoint (default: api.deepseek.com/v1)
# DEEPSEEK_BASE_URL=https://api.deepseek.com/v1
# ── 智谱 GLM / GLM Coding Plan ────────────────────────────────────────────────
# Get your key at: https://open.bigmodel.cn/usercenter/apikeys
# One key covers standard GLM, GLM Coding Plan, and Anthropic-protocol access.
# GLM_API_KEY=
# GLM base URL — choose ONE of the following (uncomment the one you want):
#
# Standard GLM (default — works for glm-5, glm-4.7, etc.):
# GLM_BASE_URL=https://open.bigmodel.cn/api/paas/v4
#
# GLM Coding Plan (specialized for code tasks, OpenAI protocol):
# GLM_BASE_URL=https://open.bigmodel.cn/api/coding/paas/v4
#
# GLM via Anthropic Message protocol (uses AnthropicModel internally):
# GLM_BASE_URL=https://open.bigmodel.cn/api/anthropic
# (When set to the Anthropic URL, glm-* models are routed through AnthropicModel)
# ── Cloudflare Workers origin ─────────────────────────────────────────────────
# Lock CORS to your deployed frontend origin in production.
# BSCODE_ALLOWED_ORIGIN=https://your-site.pages.dev
# ── Embedding (optional — improves code search) ───────────────────────────────
# Falls back to TF-IDF when not set. Works with OpenAI, TEI, Ollama, vLLM.
# EMBEDDING_API_KEY=
# EMBEDDING_BASE_URL=https://api.openai.com
# EMBEDDING_MODEL=text-embedding-3-small
# ── GitHub (optional — enables PR opening from the agent) ────────────────────
# Create a PAT at: https://github.com/settings/personal-access-tokens
# Required scopes: repo (read+write), pull_requests (write)
# GITHUB_TOKEN=ghp_...
# ── Frontend (apps/web/.env.local) ────────────────────────────────────────────
# This file is for the Worker. For the Next.js frontend, copy:
# apps/web/.env.local.example → apps/web/.env.local
# and set NEXT_PUBLIC_WORKER_URL to point at your worker.