A lightweight, zero-cost AI proxy gateway rewritten in Python and optimized for Debian 12. Consolidate your VSCode AI traffic into a single, 100% free local loopback server.
- Native VSCode Compatibility: Seamless integration with Continue, Cline, and Cursor.
- Zero Operating Cost: Exclusive routing through public endpoints and free tiers.
- Transparent Failover: If a provider goes down or encounters a Rate Limit, traffic is automatically re-routed in real-time without breaking your coding workflow.
- Low Footprint: Runs with a target memory usage of < 50MB RAM.
Ensure you have Python 3.11+ and the virtual environment manager installed on your system:
sudo apt update
sudo apt install python3-pip python3-venv -y- Clone this repository or copy the project files into a local folder.
- Build and initialize your isolated virtual environment:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtLaunch the local gateway using the following module command:
python3 -m src.mainThe server will boot and start listening natively on http://127.0.0.1:8000.
Inside the config.json file of your Continue extension, add the following model block pointing directly to OmniRoute Lite:
{
"models": [
{
"title": "OmniRoute Lite",
"provider": "openai",
"model": "omniroute-free",
"apiBase": "http://127.0.0.1"
}
]
}omniroute-lite/
βββ .venv/
βββ docs/
β βββ PLAN.md
β βββ SPEC.md
β βββ TROUBLESHOOTING.md
βββ src/
β βββ gateway/
β β βββ __init__.py
β β βββ routes.py
β β βββ schemas.py
β βββ router/
β β βββ __init__.py
β β βββ engine.py
β βββ __init__.py
β βββ config.py
β βββ main.py
βββ tests/
β βββ test_gateway.py
βββ .gitignore
βββ CHANGELOG.md
βββ README.md
βββ requirements.txt