MoyuFamily / ai-relay
Public轻量级 AI API 中转站 — 多 Provider Key 管理、智能路由、故障自动切换、Token 用量统计 | Lightweight AI API relay — multi-key rotation, smart routing, failover & usage tracking
AI Relay is an open-source service that acts as a smart middleman between your applications and AI providers like OpenAI, Claude, DeepSeek, and Xiaomi. Instead of managing multiple API connections, you get one unified endpoint that automatically routes requests to the right provider, rotates between your API keys to avoid rate limits, and switches to backup providers when something goes wrong. It includes a web dashboard for managing keys and viewing usage, notification support for team chat platforms, and generates temporary access keys for short-term projects. The service deploys to Vercel's free infrastructure tier and requires no server management.
How It Works
You're using multiple AI services for your project, but managing different accounts, handling outages, and keeping track of costs is getting messy.
With one click, you set up your personal API gateway on the internet. It works right away, no servers to maintain.
Through a simple dashboard, you add your API keys for OpenAI, Claude, DeepSeek, or Xiaomi. Everything stays organized in one place.
Instead of managing multiple connections, your apps now talk to one address. The relay automatically picks the best provider and rotates between your keys.
The relay silently switches to your backup provider. Your users never notice the hiccup.
The dashboard shows you usage stats, which keys are working, and any errors that happened.
Daily reports arrive in your team chat. If you're running low on quota, you get an alert before it becomes a problem.
Your AI-powered apps run smoothly with automatic failover, smart routing, and clear visibility into costs and usage.
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.