Compare

litellm vs sglang

litellm and sglang share 5 technologies: FastAPI, axum, Redis, OpenAI, and Anthropic. Both are written in Python.

Read it as markdown

What they share and what sets them apart

BerriAI

litellm

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Python62.4kRead on October 30, 2026, at commit ef9385cWhat is litellm built with?
sgl-project

sglang

SGLang is a high-performance serving framework for large language models and multimodal models.

Python38.3kRead on November 1, 2026, at commit cda284eWhat is sglang built with?

In common

Only in litellm

Side by side

SizeLines written by people and agents, without generated ones; code files, without tests.
litellm4,405,837 lines written5,630 code files
sglang3,187,732 lines written4,539 code files
Who writes itA commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
litellm20% of its commits signed by AIWith Claude Code, Devin, Cursor, GitHub Copilot, OpenHands, Codex, Aider, and Gemini CLI
sglang8.3% of its commits signed by AIWith Claude Code, Gemini CLI, Cursor, GitHub Copilot, Codex, Devin, CodeRabbit, and OpenHands
ActivityFrom GitHub and its history, on the day SeeRepo read it.
litellmLast push October 30, 202645,956 commits62,405 stars
sglangLast push November 1, 202621,411 commits38,327 stars
TestsThe files that test the code, and the share of code files a test imports.
litellm6,741 test files21.7% of its code files have a test that imports them
sglang4,053 test files57.8% of its code files have a test that imports them

Frequently asked questions

Which is bigger, litellm or sglang?
litellm, with 4,405,837 lines written in 5,630 code files; sglang has 3,187,732 in 4,539.

The proof: BerriAI/litellm's code at commit ef9385c

Which has more GitHub stars, litellm or sglang?
litellm, with 62,405 stars; sglang has 38,327.

The proof: BerriAI/litellm on GitHub

Which has more tests, litellm or sglang?
litellm, with 6,741 test files; sglang has 4,053.

The proof: BerriAI/litellm's code at commit ef9385c

Which was updated more recently, litellm or sglang?
sglang: its last push was on November 1, 2026, and litellm's on October 30, 2026.

The proof: sgl-project/sglang's commits on GitHub

Which has more commits signed by AI, litellm or sglang?
litellm: an AI signed 20% of its commits, with Claude Code, Devin, Cursor, GitHub Copilot, OpenHands, Codex, Aider, and Gemini CLI; in sglang, 8.3%.

The proof: the commits each tool signed in BerriAI/litellm

What is your repo built with?

Paste your public repo and see it drawn.

Free, no account.

Or look inside SeeRepo's own →