Run Budget Guard

com.botrecipe由 botrecipe.com 發布v1.0.1更新於 Oct 25, 2026

Hard dollar, token, call and time caps shared by every sub-agent in one agent run.

發布方自己的服務:Bot Recipes

已驗證Streamable HTTP可網頁執行金融AI 與機器學習

概覽

AI 產生的概覽

一個遠端預算守衛伺服器,讓助理為單次代理程式執行設定美元、token、呼叫次數與時間的硬性上限,並在每次呼叫前預留花費。

可以做什麼
為單次代理程式執行開啟硬性預算,可設美元、token、呼叫次數與時間上限,並回傳供子代理程式共用的控制代碼。在每次模型呼叫、工具呼叫或派生子代理程式前預留預估花費,回傳允許或拒絕並指出觸發的限制。呼叫後記錄實際用量以校正帳本。查看花費與上限、剩餘預算、停止狀態及最近的帳本事件,並在執行結束時關閉。產生唯讀的每週報告,涵蓋執行、花費與超限情況。顯示當日用量與升級資訊。
適用情境
適合多步驟或多代理程式工作流程,當失控迴圈或分支可能超支時,希望在每次呼叫前由子代理程式共用的硬性上限來約束,而不是事後才發現。
執行需求
遠端 streamable HTTP 端點;未宣告套件、環境變數或標頭。免費額度為每天 500 次呼叫,用量按金鑰或 IP 統計。
安裝前請注意
伺服器按金鑰或 IP 統計花費與用量,升級工具指向每月 49 美元的付費方案。預留會扣減預算,被拒絕時應停止並回傳部分結果。每週報告為唯讀,不傳送任何內容。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Run Budget Guard,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.botrecipe%2Fbudget/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "run-budget-guard": {
      "type": "http",
      "url": "https://budget.cloudforbots.com/mcp"
    }
  }
}

工具

6

open_budget

Open a hard budget for one agent run before it starts: max dollars, tokens, calls and/or wall-clock seconds. Returns a handle. Give the handle to every sub-agent; they all draw from the same ledger, so one runaway loop or fork cannot exceed the run cap.

輸入參數modelabelmax_usdmax_callsttl_hoursmax_tokensmax_seconds

reserve

Call BEFORE each model call, tool call or sub-agent spawn with your estimate. Returns allowed=true and deducts it, or allowed=false with the limit that tripped. When allowed is false, stop, do not retry, and return your partial result to the user. Atomic, so parallel sub-agents cannot both slip under the cap.

輸入參數usdnotecallshandle必填tokens

record

After a call, report the actual usage minus what you reserved (positive if it cost more, negative to give back an overestimate). Keeps the ledger honest without blocking.

輸入參數usdnotehandle必填tokens

weekly_report

Draft a plain-English report of the last 7 days for your key (or IP): runs, spend, runs that went over their cap, and dollars spent after a cap would have stopped them. Read-only; sends nothing. Show it to your user.

無需輸入參數。

budget_status

See spend vs limits, remaining budget, whether the run is stopped and why, and the last 20 ledger events. Set close=true when the run finishes.

輸入參數closehandle必填

usage_and_upgrade

Show today's usage for your key or IP and the $49/month All Access upgrade link (cloudforbots.com/offer). Free tier: 500 calls/day. Not metered.

無需輸入參數。

版本歷史

1
  1. v1.0.1最新Oct 15, 2026

評分

已滿足適用檢查項的 72%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分

    請在註冊中心條目中發布圖示。

  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。

其他 Botrecipe 整合