ARC Web

ModelMogul
TypeScript

Intelligent model routing for AI agents. The Baron of Bitsfordshire selects the right LLM for the right task, automatically.
TypeScriptOpen Source
The problem

What's broken without this

😀
Provider outages halt agents
When your primary LLM provider goes down, your agent stops working unless you've manually coded fallbacks.
πŸ’Έ
Overpaying for wrong models
You're routing every task to your most expensive model when cheaper alternatives handle the job equally well.
πŸ”
No visibility into spend
You have no real-time tracking of what models cost during a session, making budget management impossible mid-run.
The difference

Why it matters

βœ— Without
Manual work
Slow iteration
Repeated mistakes
βœ“ With this
Automatic provider failover without manual error handling code
Phase-based routing that picks cheaper models for simpler tasks instead of always using premium tiers
Real-time cost tracking per request so you know exactly what you've spent before hitting budget caps
Under the hood

How it works

πŸ“₯
Define model portfolio
You provide API keys for Anthropic, DeepSeek, Mistral, and local models, plus cost caps and phase requirements.
βš™οΈ
Route by phase and health
ModelMogul evaluates provider status, model cost-per-token, and context window fit, then selects the best match for planning, discussion, execution, or refinement phases.
πŸ“€
Get response + ledger
Agent receives the completion from the chosen model, plus real-time cost tracking and automatic failover if that provider fails mid-request.
What it does

Core capabilities

⚑
Fast
Optimized for speed and efficiency.
🎯
Reliable
Built to work consistently.
πŸ”Œ
Integrates
Works with your existing tools.
I stopped manually switching between Claude and Mistral based on task complexityβ€”the Baron just picks the right one and tells me what it cost.
arc-web/ModelMogul
Codebase

Built with care

πŸ’»
TypeScript
Built in TypeScript for type safety and reliability.
πŸ—οΈ
Architecture
SDK/Library
πŸ“¦
Key deps
openai
πŸ”“
Open Source (MIT / PolyForm)
Fork it, extend it, ship it. It's yours.
Built by

Mike Ensor
Arc Web

AI automation, marketing technology, building tools that work.
Mike builds open-source AI tools for agencies, marketers, and operators who are done waiting for software to catch up. All Arc Web projects are open source by default β€” fork them, extend them, ship them.
1 / 8
\u2190 \u2192 arrow keys  |  P to play  |  M to mute