Add Claude Router to docker-configs

Integrate Claude Router v1.1.0 as a new service in the main docker-compose stack:

Features:
- Smart API router with automatic failover between Claude Pro and Claude API
- Scheduled health checks every hour (0-4 minutes) to detect quota recovery
- Intelligent auto-switch back to Claude Pro when available
- Manual health check endpoint for immediate testing
- Complete documentation and Docker containerization
- Compatible with Claude Code CLI

Changes:
- Add router/ subdirectory with complete Claude Router project
- Integrate claude-router service into main docker-compose.yml
- Resolve port conflict (move SillyTavern to 8002, Claude Router uses 8000)
- Update .gitignore for router-specific exclusions

The router automatically detects when Claude Pro quota is restored
and switches back to prioritize the premium service.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Will Song
2025-07-14 19:08:12 -05:00
parent e2696447bf
commit 261ac9d563
8 changed files with 721 additions and 1 deletions

6
.gitignore vendored
View File

@@ -22,5 +22,11 @@
HA/config/
HA/db_data/
# Router specific ignores
router/__pycache__/
router/venv/
router/*.pyc
router/*.log
# Keep structure
!.gitkeep