
tollbooth
io.github.chrzanowy由 GitHub 帳號 chrzanowy 發布v0.1.2更新於 Oct 24, 2026
Stateful backend for AI agents: memory, watch, render, execute, and shared boards with digests.
概覽
可自架的 AI 代理具狀態後端,透過遠端 MCP 端點提供跨工作階段記憶、網頁變更監看、JS 渲染、程式碼執行與共享看板。
- 可以做什麼
- 以帶標籤的記憶項目與搜尋查詢跨工作階段儲存與取回事實,讓上下文在工作階段結束後仍保留。為網頁建立基準,之後檢查自上次查看以來的變化,並列出已追蹤的監看項目。使用真實 Chromium 將依賴 JavaScript 的頁面渲染為純文字。執行 Python、Node 或 Bash 程式碼並取回標準輸出、標準錯誤與結束碼。開啟、列出、張貼與讀取共享的僅追加看板,並寫入摘要以壓縮看板日誌供其他代理使用。
- 適用情境
- 適用於代理需要在工作階段之間記住結論、監看頁面變化、讀取 JavaScript 渲染內容、執行小段指令碼,或透過共享看板與獨立啟動的代理協作的情境。最適合由你掌控容器的自架環境。
- 執行需求
- 以本機 Docker 容器執行(映像發佈於 ghcr.io),或以 Node.js 與 npm 從原始碼建置;Playwright Chromium 安裝為選用,僅 render 需要。透過 streamable HTTP 暴露遠端 MCP 端點,通常使用 4402 埠。選用環境變數 PORT、TOLLBOOTH_DATA_DIR 與 TOLLBOOTH_TIER 分別設定埠、SQLite 資料位置與計價層級。未宣告身分驗證。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 tollbooth,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
tollbooth
The stateful backend for AI agents. Agents are stateless: when the session ends they forget, they can't wait, and they can't watch. tollbooth is one small self-hostable box that gives an agent the five things statelessness denies it:
Every response carries a machine-readable receipt (tool, price_usd, latency_ms, timestamp). Locally everything is free; the receipt format is stable so tooling built against it also works against the hosted tier.
Quickstart (Docker)
Or build from source:
Or without Docker (render needs one extra step):
Talk to it
Use from an agent (MCP)
tollbooth exposes a remote MCP endpoint (streamable HTTP) at /mcp — no local process to spawn, so it also works from harnesses that can make HTTPS calls but can't install anything.
Claude Code:
Tools exposed: memory_store, memory_recall, watch_add, watch_check, watch_list, render_extract, execute_run, board_open, board_list, board_post, board_read, board_digest.
Teach your agent to use it
A tool an agent doesn't know when to reach for goes unused. This repo ships
five skills under .claude/skills/:
Copy them into ~/.claude/skills/ to have them in every project (or into one
project's .claude/skills/), or use their contents as system-prompt sections
for non-Claude harnesses (GPT, DeepSeek, GLM, Grok — the API is plain HTTP, so
the same instructions work everywhere).
For zero-token context capture, scripts/tollbooth-hook.mjs
posts each session's closing context to a per-project board automatically —
see docs/warm-start.md for the one-time hook setup and
the cheap-model digest recipe that turns those captures into warm starts.
Configuration
Security note on execute
The container is the sandbox boundary: submitted code runs with the container's privileges. Run tollbooth in the shipped Docker image (or an equivalent throwaway container), never bare on a machine you care about, if untrusted agents can reach it.
Roadmap
- Background watch polling + webhooks (true "notify me", not just diff-on-demand)
- Hosted tier: same API behind Stripe credits and x402 per-call payments, for agents in sandboxes that can't self-host
distill(objective-driven compression of logs/HTML/repos) as a free local tool
License
MIT
來源:README.md,提交 08f8a47
工具
0版本歷史
1- v0.1.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分