litellm vs dspy
litellm and dspy share 3 technologies: anyio, Pydantic, and jsonschema. Both are written in Python.
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.7kRead on November 5, 2026, at commit 7e4ad6eWhat is litellm built with?Only in litellm
- FastAPI
- Flask
- axum
- tower
aws-sdk-s3
psycopg
rusqlite
- sqlx-postgres
- sqlx
- Postgres
- moka
- Redis
- SQLite
- azure_storage_blob
OpenAI- Claude
- Qdrant
- Tokio
- AIOHTTP
- React
- Next.js
- Anthropic
- jsonwebtoken
aws-sdk-sts
- azure_identity
- gcp_auth
litellm
- rmcp
tokenizers
- tiktoken
- tiktoken-rs
- jinja2
- zip
- schemars
tracing
- boto3
- azure_core
aws-sdk-secretsmanager
tracing-subscriber
- Tailwind CSS
class-variance-authority
- next-themes
- tanstack
- React Hook Form
- Base UI
react-syntax-highlighter
recharts
- react-copy-to-clipboard
- react-hotkeys-hook
usehooks-ts
- @shadcn/react
- cmdk
sonner
- ProseMirror
- prosemirror-state
- prosemirror-view
- react-json-view-lite
react-resizable-panels
- Lucide
@heroicons/react
- jwt-decode
- react-markdown
papaparse
remark-gfm
- Zod
@hookform/resolvers
In common
stanfordnlp
dspy
DSPy: The framework for programming—not prompting—language models
Python39kRead on November 6, 2026, at commit c400596What is dspy built with?Only in dspy
- diskcache
gepa
Side by side
litellmdspy
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%.
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.

