ModelArena is a terminal-first multi-agent reasoning arena powered by OpenRouter. It lets you watch specialized agents debate in real time, score the reasoning quality, and produce a final judged answer with transparent tradeoffs.
- Structured agent workflow instead of one-shot replies
- Camera-friendly terminal UI built with Rich
- Dynamic model fallback at startup and mid-run (auto failover on transient provider errors)
- Cost-aware operation with a dedicated
--freemode - Research-oriented post-run synthesis with
--research
Hunter Alpha-> Strategist (cyan)NVIDIA Nemotron(or fallback reasoner model) -> Reasoner (green)Healer Alpha-> Critic (red)Gemini Flash Lite(or fallback analyst model) -> Analyst/Judge (yellow)Qwen3.5-VL-> Vision Interpreter (magenta)
ModelArena automatically updates displayed identity when a role switches models (for example, Nemotron -> DeepSeek fallback), including runtime failovers during an active step.
Every mode follows explicit rounds for readability:
- Opening
- Cross-Exam
- Rebuttal
- Verdict
Verdict always includes:
CorrectnessClarityEvidence QualityRisk FlagsWinnerTakeawayFinal Answer
flowchart TD
U["User Prompt"] --> CLI["arena.py CLI"]
CLI --> CFG["config.yaml + .env"]
CFG --> ORC["OpenRouterClient"]
CLI --> MODE{"Mode Router"}
MODE --> A["arena"]
MODE --> D["debate"]
MODE --> C["committee"]
MODE --> V["vision"]
MODE --> S["showcase"]
A --> PIPE["Round Engine: Opening -> Cross-Exam -> Rebuttal -> Verdict"]
D --> PIPE
C --> PIPE
V --> PIPE
S --> PIPE
CFG --> FREE["--free overrides + free fallbacks"]
FREE --> PROBE["Reasoner probe and fallback"]
PROBE --> PIPE
PIPE --> UI["Rich UI (legend, flow, panels, scorecard)"]
PIPE --> LOG["logs/run_###.txt"]
PIPE --> R["--research brief"]
R --> UI
R --> LOG
modelarena/
├── arena.py
├── agents.py
├── openrouter_client.py
├── ui.py
├── config.yaml
├── requirements.txt
├── logs/
└── README.md
From the modelarena/ directory:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtCreate .env:
OPENROUTER_API_KEY=your_openrouter_api_keyRun:
python arena.py| Mode | Command | Purpose |
|---|---|---|
| Arena (default) | python arena.py |
Full strategist -> reasoner -> critic -> revision -> judge pipeline |
| Debate | python arena.py debate |
Compact 4-step reasoning debate |
| Committee | python arena.py committee |
Multi-angle opening before critique/judgment |
| Vision | python arena.py vision image.png |
Visual interpretation + reasoning debate |
| Showcase | python arena.py showcase --theme neon |
Live “control-room” layout for demos/posts |
| Flag | Example | What it does |
|---|---|---|
--question |
--question "Should UBI be adopted?" |
Non-interactive run |
--theme |
--theme sunset |
Showcase theme (neon, sunset, classic) |
--free |
python arena.py debate --free --question "..." |
Forces free counterparts and free fallbacks |
--research |
python arena.py arena --research --question "..." |
Adds a post-run research brief |
--free switches each role to free_models in config.yaml when needed, then probes and applies free_fallbacks for the reasoner.
Important behavior:
- If your preferred free model is capped/unavailable, ModelArena auto-falls back.
- UI and transcript always show the active model actually used.
- If your OpenRouter account-level free quota is fully exhausted, some runs may still fail depending on provider limits.
After normal debate completion, ModelArena generates a Research Brief panel with:
- Working Answer
- Confidence score
- Top Claims
- Evidence Quality
- Counterarguments
- Open Questions
- Next Experiments
- Search Queries
This is useful when using ModelArena as a lightweight research copilot, not just a demo UI.
Edit config.yaml to control paid/default and free-mode behavior:
models:
strategist: openrouter/hunter-alpha
reasoner: nvidia/nemotron-3-super-120b-a12b:free
critic: openrouter/healer-alpha
analyst: google/gemini-3.1-flash-lite-preview
vision: qwen/qwen3-vl-8b-instruct
fallbacks:
reasoner:
- deepseek/deepseek-chat-v3-0324
- google/gemini-2.0-flash-001
free_models:
strategist: openrouter/hunter-alpha
reasoner: nvidia/nemotron-3-super-120b-a12b:free
critic: openrouter/healer-alpha
analyst: openrouter/hunter-alpha
vision: nvidia/nemotron-nano-12b-v2-vl:free
free_fallbacks:
reasoner:
- nvidia/nemotron-3-nano-30b-a3b:free
- openrouter/hunter-alpha
- openrouter/healer-alpha
- meta-llama/llama-3.3-70b-instruct:freeAll values are loaded at runtime, no code edits required.
- Every run is saved to
logs/run_###.txt - Logs include timestamp, mode, question, active model mapping, and full transcript
- When enabled, research brief is included in transcript history
Record a live showcase session:
asciinema rec --command "python arena.py showcase --question 'Should startups begin with monoliths?' --theme neon"Generate social-ready media:
./scripts/make_showcase_video.sh debate neon "Should remote work remain default?" my_clipOutputs:
artifacts/my_clip.castartifacts/my_clip.gifartifacts/my_clip.mp4artifacts/my_clip_poster.png
OPENROUTER_API_KEY is missing- Ensure
.envexists inmodelarena/with the key set.
- Ensure
externally-managed-environmentwhen installing- Use local venv (
python3 -m venv .venv) and install there.
- Use local venv (
- Free model
429errors- Expected when provider daily free limit is hit. Configure additional free fallbacks or add OpenRouter credits.
404 No endpoints available ... privacy- Check OpenRouter privacy/guardrail settings for your key.
- Misaligned UI in some terminals
- Use ASCII tags:
MODELARENA_EMOJI=0 ... - Disable spinner if needed:
MODELARENA_NO_SPINNER=1 ...
- Use ASCII tags:
python arena.py --question "Build a GTM plan for an AI SaaS with $10k budget."
python arena.py debate --question "Should AI watermarking be mandatory by law?"
python arena.py committee --question "Monolith vs microservices for first 18 months?"
python arena.py vision /absolute/path/image.png --question "What strategic claim does this image make?"
python arena.py showcase --theme sunset --question "Is universal basic income viable?"
python arena.py debate --free --question "How should a student learn system design in 90 days?"
python arena.py arena --research --question "Should remote work remain default for software teams?"
python arena.py showcase --free --research --theme classic --question "Should frontier AI progress be paused?"Use these to test every mode and flag with non-trivial prompts.
# Default arena
python arena.py --question "Design a 12-week roadmap for launching a profitable AI note-taking SaaS with a $5k budget. Include pricing, GTM, biggest risks, and first 3 experiments."
# Debate
python arena.py debate --question "Should governments mandate AI watermarking for all synthetic media? Give a policy recommendation with tradeoffs for free speech, enforcement, and misuse."
# Committee
python arena.py committee --question "You are advising a startup choosing between monolith and microservices for the next 18 months. Recommend architecture, migration triggers, and team/org constraints."
# Vision
python arena.py vision /absolute/path/image.png --question "What strategic decision is being debated in this image, what stance is presented, and what assumptions are implied?"
# Showcase
python arena.py showcase --theme sunset --question "Is universal basic income fiscally and socially viable in a mid-sized economy over 10 years?"
# Free mode
python arena.py debate --free --question "Create a practical AI adoption plan for a 30-person consultancy with strict privacy constraints and limited ML expertise."
# Research mode
python arena.py debate --research --question "Should remote work remain default for software teams? Provide policy tradeoffs for productivity, onboarding, and innovation."
# Combo stress test
python arena.py showcase --free --research --theme classic --question "Should frontier AI development pause until stronger alignment guarantees exist?"Available media in artifacts/:
showcase.gifshowcase.mp4showcase.castshowcase_poster.pngshowcase_debate.gifshowcase_debate.mp4showcase_debate.castshowcase_quick.gifshowcase_quick.mp4showcase_quick.castshowcase_quick_poster.png
Built ModelArena, a terminal-native multi-agent reasoning arena.
Highlights:
- live rounds: Opening -> Cross-Exam -> Rebuttal -> Verdict
- judge scorecard with winner + takeaway
- dynamic model fallback when a model is unavailable
--freemode for low-cost testing--researchmode for hypothesis + experiment planning
Shipped --free mode in ModelArena.
Now agent roles auto-switch to free counterparts and keep UI/transcript consistency. If a free reasoner model is capped, configured free fallbacks are probed automatically.
Added --research mode to ModelArena.
After the debate, it produces:
- confidence estimate
- strongest claims
- counterarguments
- open questions
- next experiments
- suggested search queries