Route each prompt to Perfect Expert.
l3mcore acts as the central brain between your users and Artificial Intelligence. Analyze what you need and redirect the conversation to the ideal model in milliseconds, whether in the cloud or on your own local servers.
curl -sSL https://raw.githubusercontent.com/lemoelink/l3mcore/refs/heads/master/setup.sh | bash
Natively compatible with
Massive Cost Savings
Don't use GPT-4 to reply a simple "Hello". l3mcore sends easy tasks to free local models and reserves expensive APIs exclusively for complex tasks.
Total Privacy
Automatically routes prompts with sensitive info (medical data, internal source code) towards your local models, ensuring they never leave to the cloud.
Drop-in Integration
100% compatible with OpenAI and Ollama API. Just change a single URL in your current app or client and you'll get smart routing without touching your code.
Watch it in action
Here we see the console and Open WebUI. We are using 4 experts: 1 local ONNX model (Malbec), 1 on Ollama, and 2 API calls with Groq.
Why l3mcore?
Designed for speed, privacy and maximum flexibility in production.
Extreme Efficiency
The core is so optimized that in real stress tests with 15 active experts it consumes only 1.5 GB of RAM. Forget about bottlenecks and server overhead.
Audited Security
Being open source, we guarantee transparency. Prevents Path Traversal, SSRF and automatically obfuscates sensitive logs to prevent data leaks (Zero Data Leak).
Multi-Backend System
Unify all your AI sources. Connect local models, CPU inference and the most powerful APIs on the market in a single proxy.
- Ollama (Local GPU/CPU)
- ONNX (Local CPU RAM)
- OpenAI / Groq / Anthropic
Plugin System
Extend l3mcore capabilities to your needs. Discover, download and create custom modules in our Plugin Directory.
Semantic Routing
100% local decision engine. Instantly understands the real context of each message and selects the appropriate model using vector mathematics.
Drop-in Integration
You don't have to learn anything new. Keep using the OpenAI SDK.
# Connected to commercial cloud
client = OpenAI(
api_key="sk-proj-...",
base_url="https://api.openai.com/v1"
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello"}]
)
# Connected to your local smart router
client = OpenAI(
api_key="lm-...",
base_url="http://localhost:11435/v1"
)
response = client.chat.completions.create(
model="auto", # <-- l3mcore chooses the ideal expert
messages=[{"role": "user", "content": "Hello"}]
)
Frequently Asked Questions
We resolve typical doubts before you have them.
/v1/chat/completions). You can connect third-party APIs without problem using proxies that translate the API (like LiteLLM) or directly use those that are already supported natively (like Groq, Together, etc.).
Ready to optimize your AI?
Install l3mcore in less than 1 minute and start saving time, money, and resources in your Artificial Intelligence infrastructure.
Get Started Now