OpenAI-compatible API bridge to Yupp AI (yupp.ai).
Thank you to the AI Leaks server for being a partner!
- LM Arena Bridge - OpenAI-compatible API bridge to LM Arena
YuppBridge provides an OpenAI-compatible API endpoint that interacts with models on Yupp AI. It uses cloudscraper for stealthy requests and supports streaming responses.
- Python 3.10+
- cloudscraper
pip install -r requirements.txt
pip install -e .To use YuppBridge, you need to get your session token from the Yupp AI website.
- Open your web browser and go to yupp.ai.
- Log in to your account (or use the website without login for limited access).
- Send a message in the chat (this generates the session token).
- Open the developer tools in your browser (F12).
- Go to the "Application" or "Storage" tab.
- In the "Cookies" section, find the cookies for the yupp.ai domain.
- Look for a cookie named
__Secure-yupp.session-tokenand copy its value.
Create a config.json file:
{
"auth_tokens": ["your_yupp_session_token_here"],
"api_keys": [
{"name": "default", "key": "sk-your-api-key", "rpm": 60}
],
"password": "admin",
"proxy": null,
"max_error_count": 3,
"error_cooldown": 300
}Or set environment variable:
export YUPP_API_KEY="your_yupp_session_token"python -m uvicorn src.main:app --host 0.0.0.0 --port 8000
# Or directly
python src/main.pyThe application will start a server on localhost:8000.
curl -X POST http://localhost:8000/api/v1/chat/completions \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "Hello!"}],
"stream": false
}'curl -X POST http://localhost:8000/api/v1/chat/completions \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "Hello!"}],
"stream": true
}'POST /api/v1/chat/completions— OpenAI-compatible chat completionsGET /v1/models— List available modelsGET /health— Health checkGET /dashboard— Admin dashboardPOST /api/v1/config/reload— Reload configuration
YUPP_API_KEY— Comma-separated auth tokensYUPP_TOKENS— Alternative to YUPP_API_KEYMAX_ERROR_COUNT— Max errors before account disabled (default: 3)ERROR_COOLDOWN— Seconds before retry (default: 300)DEBUG_MODE— Enable debug logging
python -m pytest tests/See CLAUDE.md for detailed architecture documentation.
