Source: https://seerepo.com/compare/BerriAI/litellm/vs/langgenius/dify
Markdown source: https://seerepo.com/compare/BerriAI/litellm/vs/langgenius/dify.md
Description: litellm and dify share 5 technologies: Next.js, React, Flask, Redis, and Postgres. Both are written in Python.

# litellm vs dify

litellm and dify share 5 technologies: Next.js, React, Flask, Redis, and Postgres. Both are written in Python.

- [BerriAI/litellm](https://seerepo.com/r/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]
- [langgenius/dify](https://seerepo.com/r/langgenius/dify): Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

## What they share and what sets them apart

- In common: Next.js, React, Flask, Redis, Postgres
- Only in litellm: FastAPI, axum, OpenAI, Claude, Anthropic
- Only in dify: net/http, Sentry, Resend

## Side by side

| | litellm | dify |
|---|---|---|
| Size | 4,405,837 lines written, 5,630 code files | 2,251,379 lines written, 6,491 code files |
| Who writes it | 20% of its commits signed by AI. With Claude Code, Devin, Cursor, GitHub Copilot, OpenHands, Codex, Aider, and Gemini CLI | 5.1% of its commits signed by AI. With GitHub Copilot, Claude Code, Gemini CLI, Codex, Jules, Devin, Cursor, and Warp |
| Activity | Last push October 30, 2026, 45,956 commits, 62,405 stars | Last push October 29, 2026, 14,589 commits, 159,891 stars |
| Tests | 6,741 test files. 21.7% of its code files have a test that imports them | 4,495 test files. 65.5% of its code files have a test that imports them |

- Size: Lines written by people and agents, without generated ones; code files, without tests.
- Who writes it: A commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
- Activity: From GitHub and its history, on the day SeeRepo read it.
- Tests: The files that test the code, and the share of code files a test imports.

## Frequently asked questions

### Which is bigger, litellm or dify?

litellm, with 4,405,837 lines written in 5,630 code files; dify has 2,251,379 in 6,491.

The proof: [BerriAI/litellm's code at commit ef9385c](https://github.com/BerriAI/litellm/tree/ef9385c712297fa59bf8555962bfd719c55a4529)

### Which has more GitHub stars, litellm or dify?

dify, with 159,891 stars; litellm has 62,405.

The proof: [langgenius/dify on GitHub](https://github.com/langgenius/dify)

### Which has more tests, litellm or dify?

litellm, with 6,741 test files; dify has 4,495.

The proof: [BerriAI/litellm's code at commit ef9385c](https://github.com/BerriAI/litellm/tree/ef9385c712297fa59bf8555962bfd719c55a4529)

### Which was updated more recently, litellm or dify?

litellm: its last push was on October 30, 2026, and dify's on October 29, 2026.

The proof: [BerriAI/litellm's commits on GitHub](https://github.com/BerriAI/litellm/commits)

### Which has more commits signed by AI, litellm or dify?

litellm: an AI signed 20% of its commits, with Claude Code, Devin, Cursor, GitHub Copilot, OpenHands, Codex, Aider, and Gemini CLI; in dify, 5.1%.

The proof: [the commits each tool signed in BerriAI/litellm](https://seerepo.com/r/BerriAI/litellm/ai)

## Sources

- BerriAI/litellm: Read on October 30, 2026, at commit ef9385c (https://github.com/BerriAI/litellm/tree/ef9385c712297fa59bf8555962bfd719c55a4529)
- langgenius/dify: Read on October 29, 2026, at commit a8e39b3 (https://github.com/langgenius/dify/tree/a8e39b3036bd9025aaff3740b407c1f846b1f9e7)

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
