opencode prices and Go limits, settings out of .env
- 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>
This commit is contained in:
1 parent
70367211c1
commit
bfa1f641d7
23 files changed
+723
-69
No files matched your search
+14
-1
@@ -40,6 +40,13 @@ export const de: Messages = {
|
||||
"settings.imagesDefault": "Standardmodell",
|
||||
"settings.imagesDir": "Ordner im Projekt",
|
||||
"settings.imagesHint": "Modelle und Preise pro Bild werden in der Config-Datei bearbeitet ([images]).",
|
||||
"budget.plan": "Go-Plan ({v}/Monat)",
|
||||
"budget.window.5h": "5 Stunden",
|
||||
"budget.window.week": "7 Tage",
|
||||
"budget.window.month": "Monat",
|
||||
"settings.planLimit": "Planlimit (USD/Monat)",
|
||||
"settings.planLimitHint": "opencode Go: das monatliche Nutzungslimit deines Plans. CodeCraft zählt den Verbrauch, den jede Antwort meldet (5 Stunden 20 %, Woche 50 %, Monat 100 %) – nur Nutzung über CodeCraft.",
|
||||
"status.plan": "Go {pct} ({window})",
|
||||
"budget.title": "Budgets in diesem Monat",
|
||||
"budget.spent": "Verbraucht",
|
||||
"budget.budget": "Budget",
|
||||
@@ -58,6 +65,12 @@ export const de: Messages = {
|
||||
"settings.budgetWarning": "Warnen ab",
|
||||
"settings.adminKey": "Admin-Key (optional)",
|
||||
"settings.adminKeyHint": "Anthropic Admin-API-Key (sk-ant-admin01-…), um die echten, organisationsweiten Monatskosten anzuzeigen.",
|
||||
"settings.envTitle": "Einstellungen aus Umgebungsvariablen",
|
||||
"settings.envHint": "Diese ${NAME}-Verweise holen ihre Werte aus der Server-Umgebung (.env). Übernimm die Werte in die Konfiguration, damit alles hier eingestellt ist – danach können die Variablen aus der .env raus.",
|
||||
"settings.envApply": "In die Konfiguration übernehmen",
|
||||
"settings.envConfirm": "Die aktuellen Werte von {names} in die Konfigurationsdatei schreiben? Die Keys liegen dann in der Config (und in ihren Backups) statt in der Umgebung.",
|
||||
"settings.envDone": "{n} Werte in die Konfiguration übernommen. Du kannst sie jetzt aus der .env entfernen.",
|
||||
"settings.envUnset": "Verwendet, aber nicht gesetzt (bleiben unverändert):",
|
||||
"settings.fetchPrices": "Preise abrufen",
|
||||
"settings.pricesFetched": "Preise für {n} Modelle aktualisiert – zum Übernehmen speichern.",
|
||||
"stats.perMillion": "pro 1 Mio. Tok.",
|
||||
@@ -647,7 +660,7 @@ export const de: Messages = {
|
||||
"settings.baseUrl": "Basis-URL",
|
||||
"settings.apiKey": "API-Key",
|
||||
"settings.apiKeyStored": "Gespeichert – leer lassen zum Beibehalten",
|
||||
"settings.apiKeyHint": "Am besten ${ENV_VAR}-Verweise nutzen; direkte Keys stehen im Klartext in der Config-Datei.",
|
||||
"settings.apiKeyHint": "Wird in der Konfigurationsdatei gespeichert (für Admins lesbar, in Backups enthalten). ${NAME}-Verweise auf Umgebungsvariablen funktionieren weiterhin.",
|
||||
"settings.authPrefix": "Auth-Präfix",
|
||||
"settings.enabled": "Aktiv",
|
||||
"settings.modelCount": "{n} Modelle",
|
||||
|
||||
+14
-1
@@ -39,6 +39,13 @@ export const en = {
|
||||
"settings.imagesDefault": "Default model",
|
||||
"settings.imagesDir": "Folder in the project",
|
||||
"settings.imagesHint": "Models and prices per image are edited in the config file ([images]).",
|
||||
"budget.plan": "Go plan ({v}/month)",
|
||||
"budget.window.5h": "5 hours",
|
||||
"budget.window.week": "7 days",
|
||||
"budget.window.month": "Month",
|
||||
"settings.planLimit": "Plan limit (USD/month)",
|
||||
"settings.planLimitHint": "opencode Go: the monthly usage limit of your plan. CodeCraft tracks the allowance each response reports (5 hours 20 %, week 50 %, month 100 %) – only usage through CodeCraft.",
|
||||
"status.plan": "Go {pct} ({window})",
|
||||
"budget.title": "Budgets this month",
|
||||
"budget.spent": "Spent",
|
||||
"budget.budget": "Budget",
|
||||
@@ -57,6 +64,12 @@ export const en = {
|
||||
"settings.budgetWarning": "Warn at",
|
||||
"settings.adminKey": "Admin key (optional)",
|
||||
"settings.adminKeyHint": "Anthropic Admin API key (sk-ant-admin01-…) to show the real, organisation-wide monthly cost.",
|
||||
"settings.envTitle": "Settings from environment variables",
|
||||
"settings.envHint": "These ${NAME} references take their values from the server's environment (.env). Move the values into the configuration so everything is set here – then remove the variables from .env.",
|
||||
"settings.envApply": "Move into the configuration",
|
||||
"settings.envConfirm": "Write the current values of {names} into the configuration file? Keys are then stored in the config (and in its backups) instead of the environment.",
|
||||
"settings.envDone": "{n} values moved into the configuration. You can now remove them from .env.",
|
||||
"settings.envUnset": "Referenced but not set (left as they are):",
|
||||
"settings.fetchPrices": "Fetch prices",
|
||||
"settings.pricesFetched": "Prices updated for {n} models – save to keep them.",
|
||||
"stats.perMillion": "per 1M tok",
|
||||
@@ -646,7 +659,7 @@ export const en = {
|
||||
"settings.baseUrl": "Base URL",
|
||||
"settings.apiKey": "API key",
|
||||
"settings.apiKeyStored": "Stored – leave empty to keep",
|
||||
"settings.apiKeyHint": "Prefer ${ENV_VAR} references; literal keys are stored in plain text in the config file.",
|
||||
"settings.apiKeyHint": "Stored in the configuration file (readable for admins, included in backups). ${NAME} references to environment variables still work.",
|
||||
"settings.authPrefix": "Auth prefix",
|
||||
"settings.enabled": "Enabled",
|
||||
"settings.modelCount": "{n} models",
|
||||
|
||||
Reference in new issue
Block a user