• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
Best Free Web Resources — local AI tools and hardware guides

Best Free Web Resources

Local AI Tools & Digital Engineering Resources

What can I run?
  • AI Tools
    • Start: Local LLMs
    • Ollama Models & VRAM
    • LM Studio Models
    • GPU Comparison
    • AI Hardware Matrix
    • Local LLM Directory
    • VRAM Calculator
    • Hardware Compare
    • Local Model Recommender
    • API Pricing & ROI
  • Local AI Guides
  • Web Resources
    • Inspiration
    • Photography
    • Games
    • SEO
    • Tutorial
      • Coding
      • WordPress
    • Resume/CV
    • Graphics
      • Logo
    • Freebies
A LiteLLM command bound to localhost with a key set and the version pinned

LiteLLM Alternatives in 2026, and How to Run LiteLLM Safely With Local Models

October 24, 2026 by BFWR Editorial

LiteLLM is the most widely used open-source LLM gateway: one OpenAI-compatible endpoint in front of Ollama, vLLM, llama.cpp and the cloud APIs, with keys, spend tracking and fallbacks. It is also a project with a difficult 2026. Two of its PyPI releases were published by an attacker in March, and its GitHub security page lists 17 advisories published since April.

That is why people are searching for alternatives. This guide covers what LiteLLM does for a local setup, what its licence and security record actually say, how to run it more safely if you keep it, and how the open-source alternatives compare on licence and maintenance. Repository figures were read from GitHub on 17 October 2026. BFWR has not benchmarked any of these gateways.

Quick answer

  • You may not need a gateway at all. Ollama, llama.cpp and LM Studio already serve an OpenAI-compatible API. A gateway earns its place when you combine several backends, add cloud fallback, or hand out keys to other people.
  • If you keep LiteLLM: bind it to 127.0.0.1 (its default is 0.0.0.0), set a master key, pin the version, and follow its security advisories.
  • Actively maintained open-source alternatives: Bifrost (Apache-2.0, Go) and New API (AGPL-3.0).
  • Ones to check before relying on: TensorZero’s repository is archived, Portkey’s open-source gateway has not had a commit since May, and Helicone’s AI gateway since November 2025.
  • OpenRouter is not a like-for-like alternative. It is a hosted service, so it routes to cloud providers, not to the models on your machine.

What LiteLLM does in a local setup

LiteLLM is a Python library and a proxy server. The proxy takes OpenAI-format requests on port 4000 and forwards them to whichever backend you configure. For local models, that means one address for your apps whether the model is served by Ollama, vLLM or a cloud API, plus virtual keys per user, spend tracking, rate limits and automatic fallback.

Its own Ollama page shows the configuration. Models are listed in a config.yaml, and LiteLLM recommends the ollama_chat route “for better responses”:

model_list:
  - model_name: qwen3.8-27b
    litellm_params:
      model: ollama_chat/qwen3.8:27b
      api_base: http://localhost:11434

As of 17 October 2026 the repository has about 61,400 stars, the latest stable release is v1.105.1 (14 October), and it ships release candidates almost daily. It is the most actively developed project in this guide by a wide margin.

The licence: MIT, except the enterprise directory

GitHub labels LiteLLM’s licence NOASSERTION because it is two licences in one file. The top of LICENSE says content under the enterprise/ directory “is licensed under the license defined in” enterprise/LICENSE, and “Content outside of the above mentioned directories or restrictions above is available under the MIT license”.

The enterprise licence is not open source. It says the software “may only be used in production” by those with a subscription and “a valid BerriAI Enterprise license for the correct number of user seats”, while allowing you to “copy and modify the Software for development and testing purposes, without requiring a subscription”. For a personal or small-team gateway in front of local models, the MIT part covers the proxy. If you turn on a feature, check whether its code lives under enterprise/.

The 2026 security record

The March supply-chain incident

LiteLLM’s own write-up gives the timeline: “On March 24, 2026 at 10:39 UTC, LiteLLM v1.82.7 was pushed to PyPI.” Version 1.82.8 followed, and “Those packages were live for about 40 minutes before being quarantined by PyPI.” The team traced it to an unpinned Trivy security-scanner dependency in their CI pipeline, which had access to the release credentials. The team updates on the project’s incident issue say users of the proxy Docker image were not impacted, because its dependencies are pinned. The technical analysis in the same issue describes the payload as a credential stealer targeting SSH keys, cloud credentials and environment variables.

Both versions have been deleted from PyPI; 1.82.6 is still listed and 1.82.7 and 1.82.8 no longer exist. If you installed LiteLLM with pip on 24 March 2026, treat that machine’s credentials as exposed and follow the project’s incident guidance. Since then LiteLLM has moved to trusted publishing on PyPI, immutable Docker release tags and Cosign-signed images, according to its CI/CD post.

Seventeen advisories in seven months

Separately from the March incident, the repository’s security page lists 17 published advisories between 3 April and 1 October 2026: 4 rated critical, 6 high, 5 medium and 2 low. The critical ones are an authentication bypass through an OIDC cache-key collision, SQL injection in API-key verification, an authentication bypass via host-header injection, and a privilege escalation to proxy admin through reuse of the salt key.

All of them are in the proxy server, many in optional features: the admin UI, single sign-on, MCP tools, custom-code guardrails. That has two readings. A large attack surface is being actively audited and fixed, which is good. And every feature you enable is one more thing to keep patched, which matters if the proxy is reachable by anyone but you.

Three defaults worth changing

These come straight from LiteLLM’s documentation:

  • It listens on every interface. The CLI reference gives the --host default as 0.0.0.0. On a laptop on public Wi-Fi, that exposes the proxy to the network. Use --host 127.0.0.1.
  • No master key means no authentication. The Ollama page’s own example labels the client key “can be anything, if master_key not set”. If your config also holds cloud API keys, an open proxy lets anyone who can reach it spend them.
  • Budgets need a database. The Docker quick start warns: “Budgets are not enforced without a database”. Without one, a max_budget in the config will not stop spending.

Running LiteLLM more safely in front of local models

LiteLLM’s quick start installs the proxy with uv tool install 'litellm[proxy]'. Pin the version so an unexpected release cannot arrive on its own, then start it bound to your own machine:

uv tool install 'litellm[proxy]==1.105.1'
export LITELLM_MASTER_KEY="sk-$(openssl rand -hex 32)"
litellm --config config.yaml --host 127.0.0.1 --port 4000

Your apps then use http://127.0.0.1:4000 with the master key as their API key. If you use the Docker image instead, publish the port to localhost only, with -p 127.0.0.1:4000:4000 rather than -p 4000:4000, for the same reason our Ollama server guide gives. Before you upgrade, read the release notes and the security advisories page; LiteLLM’s CI/CD post also explains how to verify its signed Docker images.

The alternatives, compared

All figures below were read from each repository on 17 October 2026. “Ollama in README” means the project’s README lists Ollama as a supported backend. For llama.cpp’s llama-server or LM Studio, check each project’s docs for custom OpenAI-compatible endpoints.

Gateway Licence Stars Latest release Last commit Ollama in README
LiteLLM MIT + enterprise dir 61,400 v1.105.1, 14 Oct 2026 17 Oct 2026 yes
New API AGPL-3.0 50,100 v1.0.0-rc.44, 12 Oct 2026 16 Oct 2026 no
Portkey AI Gateway MIT 13,200 v1.15.2, 12 Jan 2026 25 May 2026 yes
TensorZero Apache-2.0 11,700 2026.6.0, 4 Jun 2026 archived not checked
Bifrost Apache-2.0 8,900 transports/v2.3.0, 13 Oct 2026 17 Oct 2026 yes
Helicone AI Gateway GPL-3.0 640 v0.2.0-beta.30, 21 Jul 2025 21 Nov 2025 no

Bifrost

Bifrost (maximhq/bifrost) is a Go gateway, Apache-2.0 licensed and the most active of the alternatives, with commits and releases this week. Its README describes it as an LLM gateway, MCP gateway and agent gateway, with one OpenAI-compatible API and Ollama among its providers. Of the projects here it is the closest like-for-like replacement for the LiteLLM proxy with a permissive licence and current development.

New API

New API (QuantumNous/new-api) has 50,000 stars and is very active, but it is built for a different job. Its repository describes it as “A unified AI model hub for aggregation & distribution”, and its README lists quotas, subscriptions and per-tier pricing, which suits running a shared API service for a team or customers. It is AGPL-3.0, whose network clause requires you to offer the source of any modified version you let others use over a network. Its README does not list Ollama, so plan on using an OpenAI-compatible endpoint for local models.

Portkey AI Gateway

Portkey’s open-source gateway (Portkey-AI/gateway) is MIT-licensed, TypeScript, and lists Ollama in its provider table. Its last release was v1.15.2 on 12 January 2026 and its last commit on 25 May 2026, with none in the past 90 days. It is not archived, and its README announces a Gateway 2.0 pre-release that merges Portkey’s enterprise gateway into open source, but that branch’s last commit was on 14 March 2026. Portkey also sells hosted and enterprise versions. For now the open-source repository is quiet.

TensorZero

TensorZero’s repository is archived on GitHub, which makes it read-only. Its last release was 2026.6.0 on 4 June 2026. The README still describes an active platform and carries no archive notice, which is exactly how stale recommendations survive. It is the same pattern our guide to AI coding tools that are still maintained found with Aider. Do not start a new project on it.

Helicone AI Gateway

Helicone’s Rust gateway (Helicone/ai-gateway) is GPL-3.0, still on beta releases, and has had no commit since 21 November 2025. Helicone’s main observability platform is a separate, more active repository.

LiteLLM vs OpenRouter

These are often compared but solve different problems. OpenRouter is a hosted service: you send requests to openrouter.ai/api/v1 with an OpenRouter key, and it forwards them to cloud model providers. Your prompts go through its servers, and it forwards them to the providers in its catalogue, not to a model running on your own machine.

LiteLLM is software you run yourself. It can sit in front of your local Ollama and still forward some requests to cloud APIs, including OpenRouter. If the point of your setup is that prompts stay local, OpenRouter is not an alternative to LiteLLM. If you just want one key for many cloud models and do not want to run a server, it is the simpler option.

Do you need a gateway at all?

For one person running one local model, usually not. Ollama serves an OpenAI-compatible API on port 11434, llama-server on 8080 and LM Studio on 1234. Coding agents and chat front ends can point at those directly, as our OpenCode local setup guide shows. A gateway is worth its maintenance when you need:

  • several backends behind one address, for example Ollama for small models and vLLM for a large one;
  • automatic fallback to a cloud model when the local one is busy or fails;
  • separate keys, budgets or rate limits for several people;
  • spend and usage logging across local and cloud models.

If you only need the first two, a minimal gateway bound to localhost is a small risk. If you need the last two, you are running a multi-user service, and the security record above becomes the main thing to weigh.

FAQ

Is LiteLLM safe to use now?

The March releases were removed and the publishing pipeline was rebuilt, so current releases are not the compromised ones. The proxy has had a steady stream of serious advisories since, so treat it like any internet-facing service: keep it updated, bind it to localhost unless you need otherwise, set a master key, and enable only the features you use.

Is LiteLLM free?

The proxy and SDK outside the enterprise/ directory are MIT. The enterprise code requires a paid licence for production use.

What is the best LiteLLM alternative for local models?

On licence and maintenance as of October 2026, Bifrost: Apache-2.0, actively developed, with Ollama in its provider list. Check its documentation for the features you rely on in LiteLLM, because no two gateways cover the same set.

Can I use OpenRouter with local models?

No. OpenRouter forwards requests to hosted providers. To mix local and cloud models behind one endpoint, run a self-hosted gateway and add OpenRouter as one of its backends.

Related guides and tools

  • How to run Ollama as a server, and in Docker
  • Securing a local LLM: prompt injection and the OWASP Top 10
  • API pricing and local break-even calculator
  • Self-hosted AI and vLLM hubs
  • DeepSeek API Pricing vs Running It Locally
  • Self-Hosting n8n with Local AI
  • Claude Code With a Local Model
  • n8n vs Make vs Zapier

Sources

  • LiteLLM on GitHub, including LICENSE, enterprise/LICENSE.md and the security advisories page, read 17 October 2026
  • LiteLLM: security townhall update and CI/CD v2 improvements
  • LiteLLM issue #24518: compromised PyPI releases, timeline and status
  • LiteLLM docs: Ollama, CLI and Docker quick start
  • Alternatives’ repositories: Bifrost, New API, Portkey AI Gateway, TensorZero, Helicone AI Gateway
  • OpenRouter quickstart

Updated 17 October 2026. Repository data, licences, advisories and documentation were read on that date.

⚡ Free Interactive Tools

Work out what your hardware can actually run

Free calculators and directories, sized from real model weights — before you download gigabytes or order a card:

🚀 Start: Local LLMs Hardware, runner and first model 📊 What Can I Run? Models by VRAM tier, 8GB–128GB 💻 Hardware Matrix 75 laptops & GPUs profiled ⚡ VRAM & KV Calculator Weights, cache and overhead

Filed Under: Coding, Technology

About BFWR Editorial

BFWR Editorial is the byline for guides researched and written by Best Free Web Resources. These guides are built from primary sources — model cards, configuration files, official documentation and vendor pricing pages — and every figure is dated and linked so you can check it yourself. Size and memory numbers are arithmetic computed from published model data or from our own calculators, never measurements: BFWR does not operate a hardware test lab and publishes no benchmarks of its own. Where a figure comes from a vendor, we say so.

Primary Sidebar

⚡ FREE INTERACTIVE TOOLS

Local AI Hardware & VRAM Matrix

Benchmark your PC or Mac for local AI, calculate VRAM requirements, and compare cloud API costs vs local hardware ROI.

🚀 New here? Start with Local LLMs → 💻 Hardware Matrix (79 Devices) → 📚 Local LLM Directory (30 Models) → 🎮 AI GPU Comparison → ⚡ VRAM & KV Cache Calculator → 💰 API Pricing & Break-Even → 🍎 Mac VRAM Unlocker (90% Boost) →
📦 Ollama 🖥️ LM Studio ⚙️ llama.cpp 🚦 vLLM 💬 Open WebUI 🎨 ComfyUI 🔒 Self-Hosted 📊 VRAM Tiers 🎯 Recommender ⚖️ Comparisons

Search

  • Facebook
  • Instagram
  • RSS
  • Twitter
  • YouTube

Footer

Latest Guides

  • herdr: Running Several Coding Agents From One Terminal (With Local Models Too)
  • LibreChat With Ollama: Docker Setup, Local Models and Safe Defaults
  • SAM 3 Locally: Files, ComfyUI Nodes, Prompts and the Licence
  • Jan With Local Models: Setup, the llama.cpp Engine and the Local API Server
  • Free Seamless Textures in 2026: CC0 Sources, Photoshop Use and What the Licences Allow
  • GPT4All in 2026: Is It Still Maintained, and What to Use Instead

AI Tools & Calculators

  • What can I run?
  • VRAM Calculator
  • GGUF Size Calculator
  • Fine-tuning VRAM
  • LoRA Training VRAM
  • Image Generation VRAM
  • Mac VRAM Optimizer

Browse & Compare

  • Models Directory (30 models)
  • Hardware Matrix (79 devices)
  • Image Models
  • Model Licences
  • Comparisons
  • Model Recommender
  • API Pricing & ROI

Guides & Resources

  • Technology
  • Coding
  • Tutorials
  • Freebies
  • Graphics

Copyright © 2026 · Best Free Web Resources · All Rights Reserved.  |  About · Privacy Policy · Contact · AI Tools Hub