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

# khoj vs cognee

khoj and cognee share 4 technologies: Next.js, React, FastAPI, and OpenAI. Both are written in Python.

- [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.
- [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 khoj: Android, Django, Postgres, Anthropic, PostHog, Resend
- Only in cognee: None

## Side by side

| | khoj | cognee |
|---|---|---|
| Size | 71,518 lines written, 229 code files | 653,245 lines written, 2,198 code files |
| Who writes it | 0% of its commits signed by AI | 17.2% of its commits signed by AI. With Claude Code, CodeRabbit, Cursor, GitHub Copilot, and OpenHands |
| Activity | Last push August 2, 2026, 4,763 commits, 37,920 stars | Last push November 1, 2026, 8,651 commits, 32,980 stars |
| Tests | 30 test files. 12.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, khoj or cognee?

cognee, with 653,245 lines written in 2,198 code files; khoj has 71,518 in 229.

The proof: [topoteretes/cognee's code at commit 525b1d1](https://github.com/topoteretes/cognee/tree/525b1d1179c550cd5b5661bcbf8f00f57a676928)

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

khoj, with 37,920 stars; cognee has 32,980.

The proof: [khoj-ai/khoj on GitHub](https://github.com/khoj-ai/khoj)

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

cognee, with 1,483 test files; khoj has 30.

The proof: [topoteretes/cognee's code at commit 525b1d1](https://github.com/topoteretes/cognee/tree/525b1d1179c550cd5b5661bcbf8f00f57a676928)

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

cognee: its last push was on November 1, 2026, and khoj's on August 2, 2026.

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

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

cognee: an AI signed 17.2% of its commits, with Claude Code, CodeRabbit, Cursor, GitHub Copilot, and OpenHands.

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

## Sources

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