# Litelm strips LiteLLM down to 2,900 lines and 2 dependencies

Original title: Litelm: LiteLLM Without the Bloat

> Hacker News story 49662767 · language: en · submitted 2026-09-11
> Web version: https://zeli.app/story/49662767
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 173 · by [kennethwolters](<https://news.ycombinator.com/user?id=kennethwolters>) · 💬 61
[original](<https://github.com/kennethwolters/litelm>) · [HN discussion](<https://news.ycombinator.com/item?id=49662767>)

## Summary

Litelm is a lean alternative to LiteLLM that keeps only the core call path—model routing, message translation, streaming, tool use, and embeddings—while dropping the proxy server, caching, cost tracking, and dozens of other features. It spans roughly 2,900 lines with just two dependencies (openai and httpx), routes to 19 providers, and mirrors LiteLLM's API so switching is a simple import swap. The project is in alpha with 262 passing tests.

## Key quote

> litellm's routing + translation in ~2,900 lines and 2 dependencies (openai, httpx).

## HN discussion (61 comments)

### [Centigonal](<https://news.ycombinator.com/item?id=49663121>)

> This is a cool project, and the idea of using LLMs to selectively extract features from open source projects is an interesting concept.
>
> The only thing I take issue with is the phrase "LiteLLM Without the Bloat." A lot of the features that have been removed (like cost tracking, streaming, caching) are... kind of the core value proposition of LiteLLM for many of their users.

### [khalic](<https://news.ycombinator.com/item?id=49663119>)

> I strongly recommend the authors rewrite the readme by hand. It’s kind of a snif test for how much care someone put into this project.

### [clickety_clack](<https://news.ycombinator.com/item?id=49664297>)

> One of the 2 dependencies, httpx, isn't really maintained anymore. Pydantic picked it up as httpx2: https://pydantic.dev/docs/httpx2

### [9dev](<https://news.ycombinator.com/item?id=49665632>)

> Funny, everything you pruned away is the reason I’m deploying LiteLLM in our platform. Having a reliable way to track token spend per customer across different services is important to us, and LiteLLM handles this well

### [dlojudice](<https://news.ycombinator.com/item?id=49665842>)

> It would be great if there were a plugin/extension infrastructure. For example, to write the cache and costs however and whenever I see fit

---

## Cite

- Page: https://zeli.app/story/49662767
- Date: 2026-09-11
- Source: github.com (https://github.com/kennethwolters/litelm)
- Hacker News: https://news.ycombinator.com/item?id=49662767

## Other languages

- zh: https://zeli.app/zh/story/49662767 · markdown: https://zeli.app/zh/story/49662767.md
- ja: https://zeli.app/ja/story/49662767 · markdown: https://zeli.app/ja/story/49662767.md
- ko: https://zeli.app/ko/story/49662767 · markdown: https://zeli.app/ko/story/49662767.md
- de: https://zeli.app/de/story/49662767 · markdown: https://zeli.app/de/story/49662767.md
- es: https://zeli.app/es/story/49662767 · markdown: https://zeli.app/es/story/49662767.md
- ru: https://zeli.app/ru/story/49662767 · markdown: https://zeli.app/ru/story/49662767.md
