OpenClaw Consensus

io.github.MICONNM由 GitHub 帳號 MICONNM 發布v0.1.1更新於 Oct 24, 2026

9-LLM consensus + disagreement scoring + cheapest-route picks to fight hallucinations.

發布方自己的服務:OpenClaw Direct

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

包裝 OpenClaw Consensus API,讓助理把同一提示交給多個大型語言模型比對答案、評估分歧程度,並挑選最省成本的呼叫路徑。

可以做什麼
  • 取得多模型共識答案,含信心分數與各模型投票,可選 deep、balanced 或 fast 模式
  • 評估深度多模型回答對某個提示的分歧程度
  • 依 fast、balanced、deep 順序嘗試,直到達到目標信心值,給出最省成本路徑
  • 原樣回傳上游 API 回應,欄位可能隨介面演進而增加
適用情境
適合維護者在接受有風險的答案、審查摘要或路由決策前想取得第二意見,或需要分歧訊號來判斷輸出是否值得進一步人工複核時使用。
執行需求
以本機 Python 套件形式透過 stdio 執行(pip 或 uv 安裝),需在 Claude Desktop 或 Claude Code 設定中登記。需要以 RAPIDAPI_KEY 環境變數提供 RapidAPI 金鑰,並能連線至 OpenClaw Consensus API。
安裝前請注意
提示內容會傳送給第三方 API 及多個模型;README 提醒除非端點政策明確允許,不要傳送密鑰、私有原始碼或個人資料。聯網工具可能產生服務商費用。共識結果僅為複核輔助,不保證正確性。

安裝

在 SourceWeft 中

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

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

OpenClaw Consensus MCP

[CI] [PyPI] [License: MIT]

Multi-model consensus inside MCP clients: compare answers, surface disagreement, and escalate only when needed.

OpenClaw Consensus MCP wraps the OpenClaw Consensus API as three Model Context Protocol tools. It is designed for workflows where a maintainer wants a second opinion before accepting a risky answer, review summary, or routing decision.

What it does

OpenClaw runs the same prompt across multiple models, then returns:

  • a consensus answer with confidence and model response metadata,
  • a disagreement heuristic derived from the deep consensus response, and
  • a cheapest route recommendation that tries smaller model sets before escalating.

This MCP server exposes those three capabilities as tools so Claude Desktop / Claude Code can call them mid-conversation.

Why consensus?

A single model can produce a confident but incorrect answer. Comparing multiple responses does not prove correctness, but disagreement is a useful signal that a maintainer should review the output more carefully.

Install

bash
pip install openclaw-consensus-mcp# oruv pip install openclaw-consensus-mcp

You also need a RapidAPI key for the OpenClaw Consensus API: https://rapidapi.com/yanmiayn/api/openclaw-consensus

Set it in your environment:

bash
export RAPIDAPI_KEY="your-rapidapi-key"

Claude Desktop config

Add to ~/.claude/claude_desktop_config.json (macOS/Linux) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "openclaw-consensus": {      "command": "openclaw-consensus",      "env": {        "RAPIDAPI_KEY": "your-rapidapi-key"      }    }  }}

For Claude Code:

bash
claude mcp add openclaw-consensus -- openclaw-consensus

Tools

consensus(prompt, mode="balanced")

Get a 9-LLM consensus answer.

  • prompt (string) — the question.
  • mode (string, default balanced) — deep (9 models), balanced (5), or fast (3).

Returns

json
{  "consensus": "string",  "confidence": 0.0,  "models_responded": 5,  "votes": []}

The consensus tool returns the upstream API response as-is. Fields may expand as the endpoint evolves.

disagreement_score(prompt)

How much the deep consensus response disagrees on a prompt.

Returns

json
{  "disagreement": 0.0,  "confidence": 1.0,  "models_responded": 9,  "votes": []}

cheapest_route(prompt, target_quality=0.85)

Try fast, balanced, and deep modes in order until the confidence threshold is met.

Returns

json
{  "selected_mode": "balanced",  "models_used": 5,  "confidence": 0.9,  "answer": "string"}

Local development

bash
git clone https://github.com/MICONNM/openclaw-consensus-mcpcd openclaw-consensus-mcpuv venv && source .venv/bin/activateuv pip install -e ".[dev]"pytest

Smoke-test the server with the official MCP Inspector:

bash
npx @modelcontextprotocol/inspector openclaw-consensus

Publish

bash
uv builduv publish      # to PyPImcp-publisher publish   # to the official MCP Registry

See CONTRIBUTING.md for the development workflow and docs/maintainer-workflow.md for triage, review, security, and release responsibilities.

Limitations

  • Consensus is a review aid, not a correctness guarantee.
  • Network-backed tools require a configured OpenClaw endpoint and may incur provider charges.
  • Do not send secrets, private source code, or personal data unless your endpoint policy explicitly allows it.

Security

Please report vulnerabilities privately using the process in SECURITY.md.

License

MIT — see LICENSE.

來源:README.md,提交 8f02319

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Openclaw 整合