[UNTESTED] [DarkCaster/LLM-GW] 2 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,158 characters
Status: [UNTESTED]
Endpoints found:
http://127.0.0.1:7777/v1/chat/completions
http://127.0.0.1:7777/v1/models
Source: https://github.com/DarkCaster/LLM-GW
# LLM gateway - personal runner for LLAMA.CPP compatible LLM engines
## Overview
The LLM gateway is a lightweight, self-contained solution that dynamically manages multiple Llama.cpp-compatible engines on demand. It acts as a proxy between incoming OpenAI API-compliant requests and the underlying LLM engine processes, automatically selecting and launching appropriate model variants based on context size requirements and other parameters.
Designed for personal use with local hardware, this gateway enables efficient switching between different models—such as Qwen3-MoE or smaller instruction-tuned versions. It intelligently estimates token requirements, restarts engines with optimal configurations when needed, and gracefully handles idle timeouts to conserve system resources.
This document provides comprehensive usage guidance for users who wish to set up, configure, and operate the LLM gateway.
NOTE: This is highly experimental software written for my experiments and testing; it may or may not work for you (most probably it will not).
## Getting Started
To begin using the LLM gateway, follow these steps:
1. **Install Python dependencies**: Run `init.bat` (on Windows) or `init.sh` (on Linux/macOS) from within your project directory. This will install a dedicated Python environment using `uv`, create a virtual environment (`venv/`), and set up all required packages (including `aiohttp` for HTTP server/client functionality and `python-lua-helper` for configuration parsing).
2. **Prepare configuration file**: Edit `example.cfg.lua` to define your models, engine binaries, paths, and desired settings (e.g., context size, memory quantization). You can use the included Qwen3-MoE model examples as templates for real-world setups. The configuration is validated automatically on load via embedded Lua validation scripts.
3. **Start the gateway**:
- On Windows: Run `run.bat -c example.cfg.lua`
- On Linux/macOS: Run `run.sh -c example.cfg.lua`
The server will sta