Status: [LIVE] Endpoints found: https://openrouter.ai/api/v1 Source: https://github.com/sstpnk/TinyLLM-proxy # TinyLLM **Lightweight OpenAI-compatible proxy with automatic multi-provider fallback.** --- TinyLLM is a minimal HTTP proxy that exposes a single OpenAI-compatible API endpoint and transparently distributes requests across multiple upstream AI providers. When a provider returns a fallback-eligible error (429, 5xx, timeout, quota exhausted, model deleted, or network failure) it automatically retries the next configured provider — no client-side changes needed. Designed to replace full-stack solutions like LiteLLM when you only need sequential fallback and don't want the 200+ MB dependency tree, database, admin panels, billing, or virtual keys. ## Quick start ```bash # 1. Clone git clone https://github.com/sstpnk/TinyLLM-proxy.git cd TinyLLM-proxy # 2. Configure cp .env.example .env # Edit .env with your API keys # 3. Run with Docker Compose docker compose up -d ``` Your clients now use: | Setting | Value | |---------------|------------------------------------| | Base URL | `http://your-host:4100/v1` | | API key | The value of `TINYLLM_API_KEYS` | | Model | `coding-auto` (or any route name) | ## Architecture ``` ┌──────────────┐ OpenAI-compatible API ┌──────────────────┐ │ OpenCode │ ─── POST /v1/chat/completions ─→│ │ │ (client) │ GET /v1/models │ TinyLLM │ │ │ ←── response / SSE stream ──────│ (proxy) │ └──────────────┘ └────────┬─────────┘ │ ┌──────────────┼──────────────┐