feat: make model runtime env-driven and add budget-aware dashboard sync#9
Merged
Protocol-zero-0 merged 2 commits intoMay 17, 2026
Conversation
This was referenced Apr 26, 2026
Closed
100ad2f
into
billion-token-one-task:v6-release
1 check passed
Protocol-zero-0
added a commit
that referenced
this pull request
May 17, 2026
Previously, budget was marked exhausted when usage exactly equaled the budget cap, which prematurely paused the agent before it could spend the full budget. Changed to `>` so the agent can use the entire configured budget before pausing. Credit: HelloAnner first identified this in PR #2 (closed; superseded by the telemetry-driven budget rewrite in PR #9). Carrying the fix forward. Refs #10
Protocol-zero-0
added a commit
that referenced
this pull request
May 17, 2026
Adds a user-facing quickstart covering setup, model switching, budget control, and dashboard usage. PR #9's README does not cover these flows, so we are landing this doc on v6-release independently to keep new contributors onboarded. Original author: HelloAnner. Original PR: #2 (closed; bug-fix portion superseded by PR #9's telemetry-driven runtime rewrite, but docs were not absorbed). Co-Authored-By: HelloAnner <helloanner@gmail.com> Refs #2 #10
Protocol-zero-0
added a commit
that referenced
this pull request
May 17, 2026
… from PR #3) Adds a single-container Linux deployment path so ClawOSS no longer depends on macOS-only launchd/PlistBuddy assumptions: - deploy/docker/Dockerfile + docker-compose.yml + entrypoint.sh - deploy/docker/README.md - scripts/validate-config.mjs (renders openclaw.json placeholders before JSON.parse, so CI does not red on template shape) - .github/workflows/validate.yml Not taken from PR #3: scripts/restart.sh Linux fallback. PR #9 already rewrote restart.sh; the Docker entrypoint is the cleaner cross-platform path and does not require touching restart.sh. Refs #3 #10
This was referenced May 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复目标对照
本 PR 对应以下修复目标:
本次改动摘要
1. 模型配置环境变量化
2. 预算控制
3. Dashboard 运行态展示与 PR 同步
4. 标准化部署与身份配置驱动
环境变量字段说明
GitHub
GITHUB_TOKENGITHUB_USERNAMEGITHUB_EMAILCLAW_AGENT_USERNAMEGITHUB_USERNAME大模型运行配置(单 provider 模式)
CLAWOSS_PROVIDER_IDopenai/openrouter/customCLAWOSS_PROVIDER_BASE_URLCLAWOSS_PROVIDER_API_FORMATCLAWOSS_PROVIDER_AUTH_HEADERCLAWOSS_PROVIDER_API_KEY_ENVOPENAI_API_KEY/OPENROUTER_API_KEYCLAWOSS_MODEL_IDgpt-4.1/moonshotai/kimi-k2.5CLAWOSS_MODEL_NAMECLAWOSS_MODEL_REASONINGCLAWOSS_MODEL_CONTEXT_WINDOWCLAWOSS_MODEL_MAX_TOKENSCLAWOSS_MODEL_INPUT_COSTCLAWOSS_MODEL_OUTPUT_COSTCLAWOSS_MODEL_CACHE_READ_COSTCLAWOSS_MODEL_CACHE_WRITE_COSTCLAWOSS_FALLBACK_MODELS大模型运行配置(高级模式)
CLAWOSS_MODEL_PROVIDERS_JSONCLAWOSS_PRIMARY_MODELprovider/model预算与运行控制
CLAWOSS_HEARTBEAT_INTERVAL_MINUTESCLAWOSS_TOKEN_BUDGET_TOTALCLAWOSS_COST_BUDGET_USD_TOTALDashboard
DASHBOARD_URLCLAW_API_KEYCLAWOSS_DASHBOARD_MANUAL_GITHUB_SYNCCLAWOSS_DASHBOARD_AUTO_GITHUB_SYNC为什么这不是“写死流程”
验证
npm run dashboard:buildnode scripts/render-openclaw-config.mjs --print-primary-model(使用环境变量样例验证)