Hivemind

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

Query multiple AI models (OpenAI, Anthropic, Google) for consensus responses.

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

概覽

AI 產生的概覽

同時查詢 OpenAI、Anthropic 與 Google 的模型並回傳綜合共識答案,附金鑰設定與用量統計工具。

可以做什麼
  • 同時向多個 AI 模型提問,取得綜合後的共識回答,可選擇多輪修正。
  • 設定與檢查 API 金鑰及目前啟用的服務商,並開關聯網檢索等設定。
  • 查看歷史查詢的 token 用量與費用統計。
  • 在 Claude Code 中以斜線指令發起共識、設定金鑰、查看統計,或在宿主模型卡住時啟用自動求助。
適用情境
適合需要對難題取得多方意見、或希望比單一模型更有把握的答案時使用,尤其在 Claude Code 中由 Claude 統籌並綜合其他模型的回覆。
執行需求
以 npm 套件形式在本機透過 stdio 執行,需要 Node.js 18 或更新版本。至少需要一組 OpenAI 或 Google AI 的 API 金鑰,可透過 OPENAI_API_KEY 或 GOOGLE_API_KEY 環境變數、configure_keys 工具或設定檔提供。非 Claude Code 用戶端可選配 Anthropic 金鑰。需要能連線至各模型服務商。
安裝前請注意
需要付費的第三方 API 金鑰,每次查詢都會在對應服務商產生費用;工具會顯示用量與費用統計。金鑰透過設定工具或設定檔保存在本機,請妥善保護該檔案。提問內容與上下文會傳送給 OpenAI、Google,以及可選的 Anthropic。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

Hivemind

[License: MIT] [npm version]

Multi-model AI consensus platform that queries GPT-5.2, Claude Opus 4.5, and Gemini 3 Pro simultaneously to deliver synthesized, high-confidence responses.


MCP Server for Claude Code

Use Hivemind directly in Claude Code to get perspectives from GPT-5.2 and Gemini 3 Pro. Claude acts as the orchestrator and synthesizes the responses.

Requirements

Note: No Anthropic API key needed - Claude is already your host!

Installation

bash
npm install -g @quantulabs/hivemindclaude mcp add hivemind -- hivemind

Configuration

You need at least one API key, but both are recommended for better consensus:

Option 1: Paste directly (recommended)

bash
/hive-config sk-proj-xxx...   # OpenAI key/hive-config AIzaSy...        # Google key

Option 2: Config file

Create ~/.config/hivemind/.env:

bash
OPENAI_API_KEY=sk-...GOOGLE_API_KEY=AIza...
# Optional: Override default modelsOPENAI_MODEL=gpt-5.1GOOGLE_MODEL=gemini-2.5-flash

A .env.example template is included in the package.

Using with other MCP clients (non-Claude Code)

For standalone MCP usage, you can also add an Anthropic key to include Claude in the consensus:

bash
ANTHROPIC_API_KEY=sk-ant-...

Disable Claude Code mode via /hive-config > Settings > Claude Code Mode.

Usage

bash
/hive "Why is my WebSocket connection dropping?"

Claude orchestrates the consensus from GPT-5.2 and Gemini 3 Pro responses.

Available Tools

ToolDescription
hivemindQuery models and get synthesized consensus
configure_keysSet API keys (stored securely)
check_statusCheck configuration and active providers
configure_hiveToggle grounding search and settings
check_statsView token usage and cost statistics

Claude Code Commands

  • /hive <question> - Orchestrate multi-model consensus with Claude as the synthesizer
  • /hive-config - Configure API keys and settings
  • /hivestats - View usage statistics

Automatic Hivemind Fallback

Copy CLAUDE.md.example to your project's .claude/CLAUDE.md to enable automatic Hivemind consultation when Claude is stuck (after 3+ failed attempts).

Prompt Caching

All providers use optimized caching for cost reduction on follow-up queries:

ProviderTypeSavingsMin Tokens
OpenAIAutomatic50%1024
Gemini 2.5+Implicit90%-
AnthropicExplicit90%1024

Web Interface

A full-featured web app with solo mode, hivemind mode, and conversation history.

Quick Start

bash
# Clone the repositorygit clone https://github.com/QuantuLabs/hivemind.gitcd hivemind
# Install dependencies (requires Bun >= 1.0)bun install
# Start development serverbun dev

Open http://localhost:3000, click the settings icon, and enter your API keys.

Features

  • Multi-Model Consensus: Query 3 leading AI models simultaneously
  • Deliberation Algorithm: Up to 3 rounds of refinement to reach consensus
  • Solo Mode: Chat with individual models (GPT, Claude, Gemini)
  • Hivemind Mode: Get synthesized responses from all models
  • Conversation History: Persistent chat sessions
  • Dark/Light Theme: Full theme support
  • Secure Storage: API keys encrypted with AES-GCM in browser

Security

  • API keys are encrypted using AES-GCM with PBKDF2 key derivation
  • Keys are stored locally in browser localStorage (never sent to servers)
  • Session persistence uses sessionStorage (cleared on browser close)

How Consensus Works

  1. Initial Query: All 3 models receive the same question
  2. Analysis: An orchestrator analyzes responses for agreements/divergences
  3. Refinement: If no consensus, models see other perspectives and refine (up to 3 rounds)
  4. Synthesis: Final response synthesizes agreed points and addresses divergences

Supported Models

OpenAI

  • GPT-5.2 (default)
  • GPT-5.1, GPT-5, GPT-5 Mini, GPT-5 Nano
  • O4 Mini

Anthropic

  • Claude Opus 4.5 (default)
  • Claude Sonnet 4.5, Claude Opus 4, Claude Sonnet 4

Google

  • Gemini 3 Pro (default)
  • Gemini 3 Flash, Gemini 2.5 Pro/Flash/Flash Lite, Gemini 2.0 Flash

Project Structure

hivemind/├── apps/│   └── web/              # Next.js 14 frontend├── packages/│   ├── core/             # Shared consensus logic & providers│   └── mcp/              # Model Context Protocol server└── .claude/              # Claude Code integration

Development

bash
# Run all testsbun test
# Run tests with coveragebun test:coverage
# Build all packagesbun build
# Lint codebun lint

License

MIT


Developed by QuantuLabs

來源:README.md,提交 b74985c

工具

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

版本歷史

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

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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