v0.1.1 — Zero Dependencies

The LLM API
Wire Operator

Route traffic to the right provider. Automatic fallback. Zero config. Then let Correctover verify the responses are actually correct.

pip install local-gateway click to copy
terminal
# Start in one command
local-gateway --providers deepseek,kimi,claude

# Point any OpenAI-compatible client
export OPENAI_BASE_URL=http://localhost:8765/v1
9
Providers
0
Dependencies
73
Lines of Code
30s
Setup Time
Two Layers, One Stack

The Wire Operator vs The Quality Inspector

LocalGateway routes your requests. Correctover verifies your responses. Two different problems, one seamless stack.

LocalGatewayCorrectover
LayerNetwork (proxy)Application (SDK)
Role"The wire operator""The quality inspector"
DoesRoutes traffic to the right providerVerifies responses are actually correct
On failureSSE fallback to next provider6-dimensional contract validation + MAPE-K
Complexity73 lines, pure urllib37 modules, 100 public APIs
OverheadNetwork hop onlyP50 22µs validation
MoatAnyone can forkCore壁垒 — not replicable
PriceFree & Open SourcePro / Enterprise
The Open-Core Funnel

From Routing to Verifying

LocalGateway is the problem amplifier — use it and you'll discover why verification matters.

01

Install

pip install local-gateway — start routing in 30 seconds. Nine providers, zero config.

02

Discover

"Every time I failover, I don't know if the new provider's response is correct."

03

Need

"I need to verify the response content, not just the HTTP status code."

04

Upgrade

pip install correctover — add the verification layer on top.

9 Built-in Providers

Route to Any Provider, Instantly

Automatic model name mapping across providers. No manual config needed.

DeepSeek
deepseek-chat, deepseek-reasoner
OpenAI
gpt-4o, gpt-4o-mini
Kimi
moonshot-v1-128k
Claude
claude-sonnet-4-20250514
Gemini
gemini-2.0-flash
Qwen
qwen-turbo, qwen-plus
GLM
glm-4-flash
Groq
llama-3.3-70b
Mistral
mistral-large-latest
Quick Start

Up and Running in 30 Seconds

terminal
# 1. Install
pip install local-gateway

# 2. Set your API keys
export DEEPSEEK_API_KEY=sk-...
export KIMI_API_KEY=sk-...

# 3. Start the gateway
local-gateway --providers deepseek,kimi

# 4. Point your app
export OPENAI_BASE_URL=http://localhost:8765/v1

# Done. Automatic fallback on failure.
# Need response verification? → pip install correctover

Routing Is Not Enough

Failover switches providers. Correctover verifies the response is correct.

pip install local-gateway Explore Correctover →