dabao-yi / model-flux
PublicModelFlux: OpenAI-compatible model traffic router with health-aware key-pool scheduling and failover
ModelFlux is a smart traffic router for AI services that provides one unified entry point for all your AI-powered tools. Instead of managing multiple API keys and connections separately, you connect everything to ModelFlux, which intelligently routes requests to the right AI service, balances load across your accounts, and automatically handles failures by switching to backup accounts. It includes a beautiful web dashboard where you can manage your AI service accounts, set up model name shortcuts, and monitor everything in real-time. The project works great with tools like Codex, CLIProxyAPI, sub2api, and any OpenAI-compatible application.
How It Works
You're using Codex, CLIProxyAPI, or another tool that needs AI capabilities, but managing different accounts and API keys is getting complicated.
You download and set up ModelFlux on your computer or server. It runs quietly in the background, ready to help manage your AI traffic.
In the friendly web dashboard, you add your API keys for the AI services you want to use - like DeepSeek, MiMo, or OpenAI. Everything stays on your own machine.
You create simple shortcuts for model names - like saying 'when I ask for gpt-5.5, actually use mimo-v2-pro'. The dashboard shows you exactly how requests will flow.
You enter the local address (127.0.0.1:19090) and your access key into Codex, CPA, or any OpenAI-compatible tool
You use the service name (model-flux:19090) so containers can find ModelFlux on the same network
Your requests flow through ModelFlux to the AI services. If one account has issues, ModelFlux automatically switches to another and keeps your work going.
All your AI tools now use a single, stable entry point. ModelFlux handles the routing, balances the load, and recovers from problems automatically - you just focus on your work.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.