-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
34 lines (26 loc) · 1.51 KB
/
Copy path.env.example
File metadata and controls
34 lines (26 loc) · 1.51 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
# ── CodeBuddy gateway configuration ──────────────────────────────────────────
# Copy to ~/.hermes/.env (or export in your shell before starting the gateway).
# REQUIRED: one or more CodeBuddy API keys (ck_...).
# Get one from the CodeBuddy CLI login (https://www.codebuddy.cn/).
CODEBUDDY_API_KEY=ck_yourkeyid.yoursecret
# OPTIONAL: multiple keys for cache-aware rotation. Comma- or newline-separated.
# The gateway routes by prompt-prefix affinity (same prefix -> same key, warm
# cache) and assigns new prefixes to the key with the highest cache-hit rate,
# tie-broken by fewest requests (even distribution).
# CODEBUDDY_API_KEYS=ck_key1id.secret1,ck_key2id.secret2
# OPTIONAL: load keys from a file (one per line, # comments allowed).
# CODEBUDDY_KEYS_FILE=/path/to/keys.txt
# OPTIONAL: CodeBuddy backend. Defaults to the China deployment (keys starting
# with ck_ are issued by www.codebuddy.cn). The .ai host rejects ck_ keys.
# CODEBUDDY_BASE_URL=https://www.codebuddy.cn
# OPTIONAL: gateway listen address.
# GATEWAY_HOST=127.0.0.1
# GATEWAY_PORT=8787
# OPTIONAL: default model for requests that omit one.
# CODEBUDDY_DEFAULT_MODEL=hy3
# OPTIONAL: shared secret clients must present (in Authorization: Bearer,
# x-api-key, x-goog-api-key, or ?key=). If unset, no client auth (localhost only).
# GATEWAY_API_KEY=
# OPTIONAL: upstream timeout (seconds) and image fetch size cap (bytes).
# CODEBUDDY_TIMEOUT=180
# IMAGE_FETCH_MAX_BYTES=20971520