Source: https://seerepo.com/compare/HKUDS/LightRAG/vs/mem0ai/mem0
Markdown source: https://seerepo.com/compare/HKUDS/LightRAG/vs/mem0ai/mem0.md
Description: LightRAG and mem0 share 6 technologies: FastAPI, Postgres, MongoDB, Redis, OpenAI, and Anthropic. Both are written in Python.

# LightRAG vs mem0

LightRAG and mem0 share 6 technologies: FastAPI, Postgres, MongoDB, Redis, OpenAI, and Anthropic. Both are written in Python.

- [HKUDS/LightRAG](https://seerepo.com/r/HKUDS/LightRAG): [EMNLP2025] LightRAG: Simple and Fast Retrieval-Augmented Generation
- [mem0ai/mem0](https://seerepo.com/r/mem0ai/mem0): The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

## What they share and what sets them apart

- In common: FastAPI, Postgres, MongoDB, Redis, OpenAI, Anthropic
- Only in LightRAG: React, Vite
- Only in mem0: Supabase, PostHog, AWS S3

## Side by side

| | LightRAG | mem0 |
|---|---|---|
| Size | 442,998 lines written, 338 code files | 234,363 lines written, 636 code files |
| Who writes it | 19.8% of its commits signed by AI. With Claude Code, Codex, GitHub Copilot, Cursor, and Jules | 3.6% of its commits signed by AI. With Claude Code and Cursor |
| Activity | Last push October 29, 2026, 8,260 commits, 40,452 stars | Last push October 29, 2026, 2,650 commits, 68,064 stars |
| Tests | 676 test files. 66% of its code files have a test that imports them | 324 test files. 46.2% 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, LightRAG or mem0?

LightRAG, with 442,998 lines written in 338 code files; mem0 has 234,363 in 636.

The proof: [HKUDS/LightRAG's code at commit aaebfe1](https://github.com/HKUDS/LightRAG/tree/aaebfe1bb8d55deb6a4304d357a3bf4c92fcd40a)

### Which has more GitHub stars, LightRAG or mem0?

mem0, with 68,064 stars; LightRAG has 40,452.

The proof: [mem0ai/mem0 on GitHub](https://github.com/mem0ai/mem0)

### Which has more tests, LightRAG or mem0?

LightRAG, with 676 test files; mem0 has 324.

The proof: [HKUDS/LightRAG's code at commit aaebfe1](https://github.com/HKUDS/LightRAG/tree/aaebfe1bb8d55deb6a4304d357a3bf4c92fcd40a)

### Which was updated more recently, LightRAG or mem0?

Both got their last push on October 29, 2026.

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

### Which has more commits signed by AI, LightRAG or mem0?

LightRAG: an AI signed 19.8% of its commits, with Claude Code, Codex, GitHub Copilot, Cursor, and Jules; in mem0, 3.6%.

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

## Sources

- HKUDS/LightRAG: Read on October 31, 2026, at commit aaebfe1 (https://github.com/HKUDS/LightRAG/tree/aaebfe1bb8d55deb6a4304d357a3bf4c92fcd40a)
- mem0ai/mem0: Read on October 30, 2026, at commit 26cdefb (https://github.com/mem0ai/mem0/tree/26cdefb46600c0fa5953c4b5ee5003c125539fc4)

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