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 分