litellm vs dspy

litellm and dspy share 3 technologies: anyio, Pydantic, and jsonschema. Both are written in Python.

Read it as markdown

What they share and what sets them apart

Side by side

SizeLines written by people and agents, without generated ones; code files, without tests.
litellm4,586,231 lines written5,606 code files
dspy132,756 lines written267 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.1% of its commits signed by AIWith Claude Code, Devin, Cursor, GitHub Copilot, OpenHands, Codex, Aider, and Gemini CLI
dspy5.1% of its commits signed by AIWith Amp, Claude Code, Factory, GitHub Copilot, and Devin
ActivityFrom GitHub and its history, on the day SeeRepo read it.
litellmLast push November 5, 202646,240 commits62,741 stars
dspyLast push November 6, 20264,029 commits38,961 stars
TestsThe files that test the code, and the share of code files a test imports.
litellm6,918 test files22% of its code files have a test that imports them
dspy164 test files49.4% of its code files have a test that imports them

Frequently asked questions

Which is bigger, litellm or dspy?
litellm, with 4,586,231 lines written; dspy has 132,756.

The proof: BerriAI/litellm's code at commit 7e4ad6e

Which has more GitHub stars, litellm or dspy?
litellm, with 62,741 stars; dspy has 38,961.

The proof: BerriAI/litellm on GitHub

Which has more tests, litellm or dspy?
litellm, with 6,918 test files; dspy has 164.

The proof: BerriAI/litellm's code at commit 7e4ad6e

Which was updated more recently, litellm or dspy?
dspy: its last push was on November 6, 2026, and litellm's on November 5, 2026.

The proof: stanfordnlp/dspy's commits on GitHub

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

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

See inside your code, today.

Paste your repo and see it drawn, part by part: a medium one in under a minute.

Free, no account.

Or look inside SeeRepo's own →