Multisage Skill
Query the Multisage API for multi-expert AI answers. Multisage sends your question to Claude, GPT, and Gemini simultaneously, then synthesizes their responses into a single, well-rounded answer — highlighting where they agree, disagree, and what unique insights each provides.
Prerequisites
The multisage CLI must be installed globally:
CODEBLOCK0
An API key is required. Get one at https://multisage.ai/settings (under "API Keys").
API Key Setup (Do This First)
Before running any multisage command, you must ensure MULTISAGE_API_KEY is available in your shell. The env var is often NOT inherited automatically — check and load it explicitly:
CODEBLOCK1
If you get a timeout or authentication error, the most likely cause is a missing API key — always verify it's set before debugging further.
Running from Claude (Important)
When running multisage from Claude or any non-interactive context, always use the -q flag to suppress the interactive spinner (doesn't render in tool output).
Redirect output to a file with > instead of piping through tee, which can cause issues in non-TTY contexts:
CODEBLOCK2
Standard Query
For most questions, run a standard query. This consults all three AI providers and returns a synthesized answer with stage breakdown:
CODEBLOCK3
The default output shows each stage: quick answer, expert synthesis, and debate (if the experts disagree). This costs 1 credit.
Deep Research
For questions that need thorough, in-depth analysis — research topics, complex technical questions, literature reviews — use deep research mode. This launches 3 parallel deep research sessions (one per provider) and synthesizes the results:
CODEBLOCK4
Deep research costs 5 credits and takes 5-25 minutes. The CLI streams progress updates as each provider completes. You can detach with Ctrl+C and check results later.
Output Options
| Flag | What it does |
|---|
| INLINECODE5 | Suppress spinner (always use from Claude) |
| INLINECODE6 |
Show everything: quick answer, individual expert responses, synthesis, debate |
|
--final-only | Show only the final synthesized answer (skip stages) |
|
-j, --json | Output as structured JSON |
|
--deep-research | Use deep research mode (5 credits, 5-25 min) |
Combine flags as needed. For example, -f -q gives full output without a spinner. -j gives structured JSON (useful if you need to parse the response programmatically).
Managing Deep Research
Deep research runs asynchronously. If you start one and need to check on it later:
CODEBLOCK5
The threadId is printed when you start a deep research query.
When to Use Which Mode
- - Standard (
multisage -q "...") — Good for most questions. Quick (30-90 seconds), costs 1 credit. Best for factual questions, advice, comparisons, code help. - Deep Research (
multisage -q --deep-research "...") — For thorough analysis. Each provider does its own deep research with web search, then results are cross-referenced and synthesized. Best for research topics, technical deep-dives, market analysis, literature reviews.
Typical Usage from Claude
CODEBLOCK6
Response Structure
The API returns:
- -
answer — Final synthesized answer - INLINECODE16 — List of expert names (or full details with
-f) - INLINECODE18 — Credits consumed (1 for standard, 5 for deep research)
- INLINECODE19 — Initial quick answer before expert consultation
- INLINECODE20 — Synthesized answer incorporating all expert perspectives
- INLINECODE21 — Debate section highlighting disagreements (null if experts agree)
Limits and Errors
- - Questions are truncated to 1000 characters
- 5-minute timeout for standard queries
- API keys must start with INLINECODE22
- Rate limit: 10 requests/minute, 3 concurrent
| Status | Meaning |
|---|
| 401 | Invalid or missing API key |
| 402 |
Insufficient credits — purchase at https://multisage.ai/pricing |
| 429 | Rate limited or too many concurrent requests (check Retry-After header) |
| 500 | Server error — try again |
Troubleshooting
Timeout errors are almost always caused by a missing API key — the CLI makes an unauthenticated request that hangs instead of returning a clean error. Fix: verify MULTISAGE_API_KEY is exported (see API Key Setup above).
Diagnostic checklist (run these before retrying):
CODEBLOCK7
Multisage 技能
查询 Multisage API 获取多专家 AI 答案。Multisage 将你的问题同时发送给 Claude、GPT 和 Gemini,然后将它们的回答合成为一个全面均衡的答案——突出显示它们一致、分歧之处以及各自提供的独特见解。
前置条件
必须全局安装 multisage CLI:
bash
npm install -g multisage
需要 API 密钥。请前往 https://multisage.ai/settings(API 密钥部分)获取。
API 密钥设置(请先执行此步骤)
在运行任何 multisage 命令之前,必须确保 MULTISAGEAPIKEY 在你的 shell 中可用。环境变量通常不会自动继承——请检查并显式加载:
bash
1. 检查是否已设置
echo ${MULTISAGE
APIKEY:0:8}
2. 如果为空,在常见位置查找
grep MULTISAGE
APIKEY .env 2>/dev/null || grep MULTISAGE
APIKEY ~/.env 2>/dev/null
3. 导出(替换为上面找到的实际密钥)
export MULTISAGE
APIKEY=msk_...
如果遇到超时或认证错误,最可能的原因是缺少 API 密钥——在进一步调试前务必确认已设置。
从 Claude 运行(重要)
从 Claude 或任何非交互式上下文运行 multisage 时,始终使用 -q 标志来抑制交互式旋转动画(在工具输出中不会显示)。
使用 > 将输出重定向到文件,而不是通过 tee 管道传输,后者在非 TTY 上下文中可能引发问题:
bash
正确——重定向到文件
multisage -q 你的问题 > /tmp/multisage-output.txt 2>&1
cat /tmp/multisage-output.txt
错误——在非 TTY 上下文中 tee 可能引发问题
multisage -q 你的问题 | tee output.txt # 不要这样做
标准查询
对于大多数问题,运行标准查询。这将咨询所有三个 AI 提供商,并返回包含阶段分解的综合答案:
bash
multisage -q 你的问题
默认输出显示每个阶段:快速回答、专家综合和辩论(如果专家意见分歧)。这消耗 1 个积分。
深度研究
对于需要深入、透彻分析的问题——研究主题、复杂技术问题、文献综述——请使用深度研究模式。这将启动 3 个并行的深度研究会话(每个提供商一个)并综合结果:
bash
multisage -q --deep-research 你的问题
深度研究消耗 5 个积分,需要 5-25 分钟。CLI 会在每个提供商完成时流式传输进度更新。你可以使用 Ctrl+C 断开连接,稍后检查结果。
输出选项
| 标志 | 功能 |
|---|
| -q | 抑制旋转动画(从 Claude 使用时始终使用) |
| -f, --full |
显示所有内容:快速回答、各专家回复、综合、辩论 |
| --final-only | 仅显示最终综合答案(跳过各阶段) |
| -j, --json | 输出为结构化 JSON |
| --deep-research | 使用深度研究模式(5 积分,5-25 分钟) |
根据需要组合标志。例如,-f -q 提供完整输出且无旋转动画。-j 提供结构化 JSON(如果需要以编程方式解析响应,这很有用)。
管理深度研究
深度研究异步运行。如果你启动了一个深度研究并需要稍后检查:
bash
检查结果是否就绪
multisage results
取消正在进行的查询
multisage cancel
启动深度研究查询时会打印 threadId。
何时使用哪种模式
- - 标准(multisage -q ...)——适用于大多数问题。快速(30-90 秒),消耗 1 个积分。最适合事实性问题、建议、比较、代码帮助。
- 深度研究(multisage -q --deep-research ...)——用于深入分析。每个提供商使用网络搜索进行自己的深度研究,然后交叉引用和综合结果。最适合研究主题、技术深度探讨、市场分析、文献综述。
从 Claude 的典型用法
bash
标准查询——重定向到文件,然后读取
multisage -q 对于业余项目,SQLite 和 PostgreSQL 之间的权衡是什么? > /tmp/ms-output.txt 2>&1
cat /tmp/ms-output.txt
完整输出(包括各专家回复)
multisage -q -f 对于业余项目,SQLite 和 PostgreSQL 之间的权衡是什么? > /tmp/ms-output.txt 2>&1
cat /tmp/ms-output.txt
深度研究
multisage -q --deep-research 蛋白质折叠预测的最新进展是什么?
用于解析的 JSON 输出
multisage -q -j Rust 和 Go 哪个更适合 CLI 工具? > /tmp/ms-output.txt 2>&1
cat /tmp/ms-output.txt | jq .answer
响应结构
API 返回:
- - answer — 最终综合答案
- experts — 专家名称列表(使用 -f 时包含完整详情)
- creditsUsed — 消耗的积分(标准为 1,深度研究为 5)
- stages.quickAnswer — 咨询专家前的初始快速回答
- stages.synthesis — 综合所有专家观点的综合答案
- stages.debate — 突出显示分歧的辩论部分(如果专家意见一致则为 null)
限制和错误
- - 问题截断为 1000 个字符
- 标准查询超时时间为 5 分钟
- API 密钥必须以 msk_ 开头
- 速率限制:每分钟 10 个请求,3 个并发
积分不足——请前往 https://multisage.ai/pricing 购买 |
| 429 | 速率受限或并发请求过多(检查 Retry-After 标头) |
| 500 | 服务器错误——请重试 |
故障排除
超时错误几乎总是由缺少 API 密钥引起——CLI 会发起一个未经认证的请求,该请求会挂起而不是返回清晰的错误。解决方法:验证 MULTISAGEAPIKEY 已导出(参见上面的 API 密钥设置)。
诊断检查清单(在重试前运行这些):
bash
API 密钥是否已设置?
[ -n $MULTISAGEAPIKEY ] && echo 密钥已设置:${MULTISAGEAPIKEY:0:8}... || echo 密钥未设置
CLI 是否已安装?
which multisage && multisage -V
快速连接测试
multisage -q 你好 > /tmp/ms-test.txt 2>&1 && echo 正常 || echo 失败——检查输出: && cat /tmp/ms-test.txt