Source: https://seerepo.com/compare/BerriAI/litellm/vs/khoj-ai/khoj
Markdown source: https://seerepo.com/compare/BerriAI/litellm/vs/khoj-ai/khoj.md
Description: litellm and khoj share 6 technologies: Next.js, React, FastAPI, Postgres, OpenAI, and Anthropic. Both are written in Python.

# litellm vs khoj

litellm and khoj share 6 technologies: Next.js, React, FastAPI, Postgres, OpenAI, and Anthropic. 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]
- [khoj-ai/khoj](https://seerepo.com/r/khoj-ai/khoj): Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (gpt, claude, gemini, llama, qwen, mistral). Get started - free.

## What they share and what sets them apart

- In common: Next.js, React, FastAPI, Postgres, OpenAI, Anthropic
- Only in litellm: Flask, axum, Redis, Claude
- Only in khoj: Android, Django, PostHog, Resend

## Side by side

| | litellm | khoj |
|---|---|---|
| Size | 4,405,837 lines written, 5,630 code files | 71,518 lines written, 229 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 | 0% of its commits signed by AI |
| Activity | Last push October 30, 2026, 45,956 commits, 62,405 stars | Last push August 2, 2026, 4,763 commits, 37,920 stars |
| Tests | 6,741 test files. 21.7% of its code files have a test that imports them | 30 test files. 12.7% 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 khoj?

litellm, with 4,405,837 lines written in 5,630 code files; khoj has 71,518 in 229.

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

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

litellm, with 62,405 stars; khoj has 37,920.

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

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

litellm, with 6,741 test files; khoj has 30.

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

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

litellm: its last push was on October 30, 2026, and khoj's on August 2, 2026.

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

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

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

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)
- khoj-ai/khoj: Read on November 1, 2026, at commit ae229ca (https://github.com/khoj-ai/khoj/tree/ae229ca894c0b80ad84664afcfdde523b5e87057)

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