- Fetch prices for opencode (Zen and Go) incl. limits, image input, reasoning,
long-context tiers and peak-hour/date factors; costs apply them per request
- Record the cost opencode reports per response; track Go allowance in 5h/7d/month
windows against a provider plan limit (budget table, status overlay)
- Settings → Config file: move values of ${NAME} references into the config
- Examples, presets and forms keep keys in the config instead of .env
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
28 lines
911 B
Bash
28 lines
911 B
Bash
# Deployment settings only. API keys, MCP tokens, SSO secrets and everything else
|
|
# are set in the web UI (Settings) and stored in the configuration file.
|
|
|
|
# Optional: create the first admin on first start. Otherwise the server logs a
|
|
# one-time setup code and you create the admin in the web UI.
|
|
CODECRAFT_ADMIN_USER=
|
|
CODECRAFT_ADMIN_PASSWORD=
|
|
|
|
# Directory with your projects, mounted as /workspace.
|
|
WORKSPACE=/path/to/your/projects
|
|
|
|
# Host port and address (127.0.0.1 = only reachable through a local reverse proxy).
|
|
PORT=8787
|
|
BIND_ADDR=127.0.0.1
|
|
|
|
# UID/GID that owns the project files (id -u / id -g).
|
|
UID=1000
|
|
GID=1000
|
|
|
|
# Time zone for automations (cron schedules) and timestamps, e.g. Europe/Berlin
|
|
TZ=UTC
|
|
|
|
# Image version for docker-compose.release.yml (e.g. v202611-00001); default: latest
|
|
CODECRAFT_VERSION=latest
|
|
|
|
# Log format: empty for text, "json" for one JSON object per line
|
|
CODECRAFT_LOG_FORMAT=
|