Skip to content

gapolli/omniroute-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

OmniRoute Lite πŸš€

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.

✨ Features

  • 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.

πŸ› οΈ Installation on Debian 12

Prerequisites

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

Environment Setup

  1. Clone this repository or copy the project files into a local folder.
  2. Build and initialize your isolated virtual environment:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

πŸš€ Running the Server

Launch the local gateway using the following module command:

python3 -m src.main

The server will boot and start listening natively on http://127.0.0.1:8000.

πŸ’» VSCode Configuration (Example using Continue Extension)

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"
    }
  ]
}

Project Workspace Directory Structure

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

About

πŸš€ A lightweight, zero-cost AI proxy inspired by OmniRoute (https://github.com/diegosouzapw/OmniRoute). Implements full OpenAI v1 specification compatibility with automatic resilient fallbacks for IDE extensions like Continue, Cline, and Cursor.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages