
Hebline
io.github.Hebline由 GitHub 帳號 Hebline 發布v0.2.1更新於 Nov 10, 2026
Intelligent API routing for AI agents. Best service, best price, free alternatives.
概覽
將助理的 API 呼叫(大型語言模型、地理編碼、翻譯、搜尋等)路由到最合適的服務,並回傳結果及費用與延遲資訊。
- 可以做什麼
- 依能力請求路由到評分最高的服務,回傳結果及服務、費用、延遲
- 在呼叫前比較某能力下所有可用服務及其評分
- 列出支援的能力及對應服務
- 涵蓋大型語言模型、地理編碼、翻譯、網頁擷取、匯率、OCR、天氣、網頁搜尋與新聞
- 適用情境
- 適合代理頻繁呼叫第三方 API、希望優先嘗試免費方案、不必改程式碼就能更換服務商,並需要逐次呼叫費用記錄的情境。
- 執行需求
- 以 stdio 在本機執行,通常透過 npx 或全域安裝 npm 套件,需要 Node.js。免費服務不需金鑰;選用的付費服務使用 DEEPL_API_KEY、GOOGLE_MAPS_API_KEY 或 LIBRETRANSLATE_API_KEY,README 另列出其他服務商金鑰。需要網路連線。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Hebline,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Hebline MCP Server
Your agents overpay for every API call. We fix that.
Hebline routes every API call — including LLM calls — to the best service at the right price. Free when it's enough. Paid when it matters. It knows the difference.
Every other router earns a margin on your paid calls. Routing you to free alternatives kills their revenue. No margin on your API calls. Ever.
Why Hebline?
Your agents are bleeding money. One task triggers 5–10 paid API calls across different providers. No transparency, no cost control. Hebline fixes that:
- Route free first — Most calls don't need the best model. Hebline learns precisely when it matters — and keeps learning as the market changes.
- No margin. Honest routing. — We don't earn when you pay more. So we're the only router built to actually save you money.
- Provider Abstraction — Your agent says what it needs ("geocode this address"), not which service to use. Swap providers without changing agent code.
- Cost Transparency — Every call is logged with service used, latency, and cost. Know exactly what your agents spend.
- Learns from usage — Hebbian learning strengthens what works, weakens what doesn't. Your broker gets smarter every day.
- BYOK (Bring Your Own Key) — Paid services use your API keys via environment variables. No key? The service is automatically excluded from routing.
- GDPR compliant — Only anonymized metadata logged. No API call content stored. Self-hosted option for zero data leaving your network.
- Open Source — Core MCP server is MIT licensed. Community-driven adapter system.
How It Works
Your agent connects to Hebline as an MCP server. Instead of calling APIs directly, it uses Hebline's tools — execute, compare, or categories. Hebline scores all available services, picks the best one, makes the call, and returns the result with full metadata.
Available MCP Tools
Quick Start
Add to Claude Desktop
Add to claude_desktop_config.json:
Add to Claude Code
Add to .mcp.json:
Add to Cursor
Add to .cursor/mcp.json:
Add to Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
Add to VS Code (Copilot)
Add to .vscode/mcp.json:
Install globally
With paid services (optional)
Set environment variables for any paid providers you want to use:
No keys? No problem — Hebline routes to free alternatives automatically.
Supported Services
9 categories, 20 services. Free services work instantly — no API key needed. LLMs route through the Hebline proxy when no local key is set (50 free calls/day).
Example
An agent asks: "Geocode the Brandenburg Gate in Berlin"
Hebline receives:
Hebline responds:
The agent got coordinates, knows it was free, and Hebline logged the call for future analysis.
Architecture
Call Logging
Every API call is logged to ~/.hebline/calls.jsonl:
No content is logged — only metadata. This data will power Hebbian Learning in future versions.
Roadmap
- Core MCP server with stdio transport
- Weighted scoring router
- Geocoding adapters (Nominatim, Google Maps)
- Translation adapters (MyMemory, LibreTranslate, DeepL)
- BYOK key management
- Append-only call logging
- CI/CD with GitHub Actions
- Hebbian Learning — router learns from call history
- Hopfield network scoring (replaces weighted scoring)
- More categories (web scraping, currency, OCR, email)
- Community adapter system
- SSE transport for remote deployments
- Web dashboard for cost analytics
- Budget alerts and spending limits
- Multi-agent cost attribution
Contributing
Contributions are welcome! Adding a new adapter is straightforward — implement the ServiceAdapter interface and register it.
License
Built by Hebline — Route free first. Only pay when necessary.
來源:README.md,提交 548ed23
工具
0版本歷史
1- v0.2.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分