Show & Tell: AI Router Proxy v1.0 — Self-hosted multi-backend proxy for Claude Code #2
eroslifestyle
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is this?
A self-hosted proxy that sits in front of Claude Code and lets you switch
between Claude (Anthropic) and MiniMax instantly — with automatic
failover, context compression, and a smart "interactive" mode that routes
trivial tasks to the cheaper backend and verifies critical ones with Claude.
Repository: https://github.com/eroslifestyle/ai-router-switch
License: MIT
Language: Python 3.11+ (aiohttp)
Stack: 3 systemd services + 1 proxy = 5 ports
Why I built it
Claude Code pointed at Anthropic is great — but:
http://127.0.0.1:8787) that does the routingfor me, not 5 different API configs to manage
4 routing modes
anthropicminimaxmixedinteractiveQuick start
Triple-defense resilience
systemdwithRestart=alwayson all 3 servicesai-stack-guard.sh) every 60s — falls back tonohupif systemd lagskill/systemctl stop/disableon the 3 protected servicesWhat I'd love feedback on
FALLBACK_STATUSES(auth/billing = retryable). Reasonable?proxy).Links
PRs and ideas welcome. 🙌
Beta Was this translation helpful? Give feedback.
All reactions