18 lines
718 B
Bash
18 lines
718 B
Bash
# Required Postgres connection string
|
|
DATABASE_URL=postgres://user:password@localhost:5432/opencode_proxy
|
|
|
|
# Optional: use this instead of keys.txt. Must be a JSON array of strings.
|
|
# OPENCODE_API_KEYS=["go-first-key","go-second-key"]
|
|
|
|
# Optional: client keys that bypass proxy rate limits. Must be a JSON array of strings.
|
|
# Send one in Authorization: Bearer <key> or x-api-key.
|
|
# UNLIMITED_API_KEYS=["personal-unlimited-key"]
|
|
|
|
# Optional: override the built-in comma-separated model allowlist for ordinary clients.
|
|
# Unlimited API keys bypass this restriction. Set this to an empty value to allow every upstream model.
|
|
# ALLOWED_MODELS=kimi-k3,gpt-4.1
|
|
|
|
# Optional server settings
|
|
PORT=4005
|
|
MAX_CONTEXT_TOKENS=262144
|