Use this skill when the agent needs the highest-quality answer by querying multiple LLM providers (Claude, Gemini, GPT, Ollama) in parallel and synthesizing...
---
name: multi-llm
description: >
Use this skill when the agent needs the highest-quality answer by querying
multiple LLM providers (Claude, Gemini, GPT, Ollama) in parallel and synthesizing
the results via Mixture of Agents (MoA). Trigger on: complex reasoning, high-stakes
decisions, code review, strategic planning, research, or any task where a single
model's quality is insufficient. Improves actual output quality β not just showing
multiple answers side-by-side.
metadata:
{
"openclaw": {
"emoji": "π§ ",
"requires": {
"bins": ["uv"],
"env": []
}
}
}
---
## How It Works
**Mixture of Agents (MoA)** pattern:
1. All available *proposer* models query the task in parallel (`asyncio.gather`)
2. A *synthesizer* model combines the best elements of all responses
3. Optionally repeat for multiple rounds (higher quality, more latency)
Providers are **auto-detected** from environment variables β no config needed.
| Env Var | Provider | Default models used |
|---|---|---|
| `ANTHROPIC_API_KEY` | Claude | claude-sonnet-4-6, claude-haiku-4-5 |
| `OPENAI_API_KEY` | OpenAI | gpt-4o, gpt-4o-mini |
| `GEMINI_API_KEY` | Gemini | gemini-2.0-flash, gemini-1.5-pro |
| `OLLAMA_HOST` (optional) | Ollama | llama3, mistral (auto-listed) |
## Usage
```bash
uv run {baseDir}/scripts/ensemble.py \
--prompt "λΆμν νμ€ν¬ λλ μ§λ¬Έ" \
[--models claude-sonnet-4-6,gpt-4o,gemini-2.0-flash] \
[--synthesizer claude-opus-4-7] \
[--rounds 1] \
[--format text|json] \
[--output result.txt]
```
**Key options:**
- `--models` / `-m` β μΌν κ΅¬λΆ λͺ¨λΈ λͺ©λ‘ (μλ΅ μ κ°μ§λ λͺ¨λΈ μλ μ ν)
- `--synthesizer` / `-s` β ν©μ± λͺ¨λΈ μ§μ (μλ΅ μ κ°μ₯ κ°ν λͺ¨λΈ μλ μ ν)
- `--rounds` / `-r` β MoA λ°λ³΅ νμ. 1=λΉ λ¦, 2=νμ§ μ΅λ (κΈ°λ³Έ: 1)
- `--format` β `text` (κΈ°λ³Έ) λλ `json` (λͺ¨λΈλ³ μλ΅ ν¬ν¨)
- `--output` / `-o` β νμΌλ‘ μ μ₯ (μλ΅ μ stdout)
## When to Use
- 볡μ‘ν μΆλ‘ , μ λ΅ λΆμ, μμ¬κ²°μ μ΄ νμν λ
- λ¨μΌ λͺ¨λΈ μλ΅μ νμ§μ΄ λΆμ‘±νλ€κ³ νλ¨λ λ
- μ½λ 리뷰, λ²κ·Έ λΆμ, 리μμΉ μμ½
- νΈλ μ΄λ© μ νΈ νμ§ ν₯μ λ± μ νλκ° μ€μν μμ
## Notes
- API ν€ μλ νλ‘λ°μ΄λλ μ‘°μ©ν μ μΈλ¨ (μ€λ₯ μλ)
- ν λͺ¨λΈμ΄ μ€ν¨ν΄λ λλ¨Έμ§λ‘ μ§ν
- μμΈν νλ μ΅μ
: [references/moa-guide.md](references/moa-guide.md)
don't have the plugin yet? install it then click "run inline in claude" again.