بنقرة واحدة
moa-free-models
Mixture of Agents with FREE models from OpenCode Zen — setup, model selection, common pitfalls
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Mixture of Agents with FREE models from OpenCode Zen — setup, model selection, common pitfalls
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | moa-free-models |
| description | Mixture of Agents with FREE models from OpenCode Zen — setup, model selection, common pitfalls |
| version | 3.2.1 |
| author | Hermes Agent |
| license | MIT |
| platforms | ["linux","macos","windows"] |
| metadata | {"hermes":{"tags":["moa","mixture-of-agents","free","opencode-zen","opencode-free-models"],"homepage":"https://opencode.ai"}} |
Mixture of Agents using free-tier models from OpenCode Zen. All models cost $0.
# 1. تأكد إن عندك Node.js
node --version
# 2. احصل على API Key من https://opencode.ai/auth
# وخزنها في .env:
echo "OPENCODE_ZEN_API_KEY=*** ~/.hermes/.env
# 3. فعّل OpenCode Zen provider
hermes config set model.provider opencode-zen
# 4. لو عايز ترجع لـ OpenRouter بعدين:
# hermes config set model.provider openrouter
| Model | Speed | Role |
|---|---|---|
deepseek-v4-flash-free | 1.5s | Aggregator — best synthesis quality |
nemotron-3-ultra-free | 0.8s | Reference — fast analysis |
north-mini-code-free | 0.8s | Reference — coding tasks |
mimo-v2.5-free | 1.4s | Reference — conversational |
big-pickle | 2.6s | Reference — general purpose |
qwen3.6-plus-free — 401 Unauthorizedminimax-m3-free — 401 Unauthorizedmixture_of_agents_free)After enabling moa_free toolset, the agent can call it directly. The tool is auto-registered in tools/mixture_of_agents_tool_free.py.
To enable the toolset:
# Add moa_free to config.yaml toolsets (under the platform section)
# Or use: hermes config set toolsets.desktop "+moa_free"
# Then /reset to reload
Tool name: mixture_of_agents_free (toolset: moa_free)
Requires: OPENCODE_ZEN_API_KEY in .env
from tools.mixture_of_agents_tool_free import mixture_of_agents_tool
import asyncio
result = await mixture_of_agents_tool(
user_prompt="Your complex question here"
)
python ~/moa_free.py "your question here"
hermes chat -q "استخدم MoA عشان تحل المسألة دي: ما هو جذر 144 التربيعي؟"
استخدم requests بدل httpx — httpx بيعمل crash على Windows بالـ error [Errno 2] No such file or directory.
بعض الموديلات بترد في reasoning أو reasoning_content مش content:
message = result["choices"][0]["message"]
content = message.get("content", "") or message.get("reasoning", "") or message.get("reasoning_content", "")
source ~/.hermes/.env
echo $OPENCODE_ZEN_API_KEY
لو الـ 5 موديلات أبطأ من المتوقع، قلّل العدد أو استخدم MIN_SUCCESSFUL_REFERENCES = 1.
| File | Purpose |
|---|---|
tools/mixture_of_agents_tool_free.py | Main MoA implementation (portable) |
~/moa_free.py | Standalone script — copy-paste ready, no Hermes dependencies |
references/model-test-results.md | Test results detail |
references/portable-setup.md | Cross-platform setup for sharing |
references/SETUP.md | Quick start guide |
references/github-publishing.md | How to publish on GitHub for friends |
scripts/install.sh | One-click installer |
Independent MoA script — works without Hermes core, only needs requests.
Usage:
python ~/moa_free.py "your question here"
API Key location on this machine: C:\Users\Karim\AppData\Local\hermes\.env (variable: OPENCODE_ZEN_API_KEY)
Pitfall: The script searches multiple .env paths. If key not found, verify the key exists:
grep OPENCODE_ZEN_API_KEY ~/AppData/Local/hermes/.env
To share this skill with others, the friend needs:
Full guide: references/github-publishing.md
MIT — use freely, share with anyone!