Source: https://seerepo.com/compare/BerriAI/litellm/vs/topoteretes/cognee
Markdown source: https://seerepo.com/compare/BerriAI/litellm/vs/topoteretes/cognee.md
Description: litellm and cognee share 4 technologies: Next.js, React, FastAPI, and OpenAI. Both are written in Python.

# litellm vs cognee

litellm and cognee share 4 technologies: Next.js, React, FastAPI, and OpenAI. 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]
- [topoteretes/cognee](https://seerepo.com/r/topoteretes/cognee): Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory with small models for free

## What they share and what sets them apart

- In common: Next.js, React, FastAPI, OpenAI
- Only in litellm: Flask, axum, Redis, Postgres, Claude, Anthropic
- Only in cognee: None

## Side by side

| | litellm | cognee |
|---|---|---|
| Size | 4,405,837 lines written, 5,630 code files | 653,245 lines written, 2,198 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 | 17.2% of its commits signed by AI. With Claude Code, CodeRabbit, Cursor, GitHub Copilot, and OpenHands |
| Activity | Last push October 30, 2026, 45,956 commits, 62,405 stars | Last push November 1, 2026, 8,651 commits, 32,980 stars |
| Tests | 6,741 test files. 21.7% of its code files have a test that imports them | 1,483 test files. 11.1% 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 cognee?

litellm, with 4,405,837 lines written in 5,630 code files; cognee has 653,245 in 2,198.

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

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

litellm, with 62,405 stars; cognee has 32,980.

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

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

litellm, with 6,741 test files; cognee has 1,483.

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

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

cognee: its last push was on November 1, 2026, and litellm's on October 30, 2026.

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

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

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

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)
- topoteretes/cognee: Read on November 1, 2026, at commit 525b1d1 (https://github.com/topoteretes/cognee/tree/525b1d1179c550cd5b5661bcbf8f00f57a676928)

## 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.
