Skip to content

Feature/multi api key support#23

Open
tblinka1996 wants to merge 9 commits intofuergaosi233:mainfrom
tblinka1996:feature/multi-api-key-support
Open

Feature/multi api key support#23
tblinka1996 wants to merge 9 commits intofuergaosi233:mainfrom
tblinka1996:feature/multi-api-key-support

Conversation

@tblinka1996
Copy link

@tblinka1996 tblinka1996 commented Jul 14, 2025

Add multi api key supports
For example:
OPENAI_API_KEY="sk-key1,sk-key2,sk-key3"

openhands-agent and others added 9 commits July 9, 2025 04:05
- Support comma-separated API keys in OPENAI_API_KEY environment variable
- Implement APIKeyManager for round-robin distribution and automatic failover
- Add API key status monitoring endpoint (/api-keys/status)
- Enhanced error handling with key-specific failure tracking
- Updated configuration system to parse multiple keys
- Improved security with enhanced .gitignore patterns
- Updated documentation with multi-key usage examples

Features:
- Load balancing across multiple API keys
- Automatic failover when keys fail
- Real-time key status monitoring
- Configurable cooldown periods for failed keys
- Backward compatibility with single key setups
@tblinka1996
Copy link
Author

it uses comma as divider for api keys

slovx2 pushed a commit to slovx2/claude-code-proxy that referenced this pull request Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants