head to head · open source

Khoj vs COG-second-brain

Khoj has 38,345 GitHub stars, 2,578 forks, 148 open issues and last shipped 4 months ago. COG-second-brain has 1,560 stars, 195 forks, 13 open issues and last shipped 2 days ago. Khoj leads on adoption by 2,358% (38,345 vs 1,560 stars). Khoj is written in Python under AGPL-3.0; COG-second-brain is written in Python under MIT. Khoj has attracted 7% as many forks as stars, COG-second-brain 13%. COG-second-brain was the more recently maintained of the two, and both are self-hostable with no licence fee.

Two open source projects, one decision. Both are free and self-hostable — the differences are community size, license terms, language stack and release pace.

Khoj ★ 38K COG-second-brain ★ 1.6K category Productivity & Utilities

← all 20902 open source comparisons

Side by side

Khoj COG-second-brain
GitHub stars ★ 38K ★ 1.6K
License AGPL-3.0 MIT
Written in Python Python
Last push 2026-08-02 2026-12-03
Forks ⑂ 2.6K ⑂ 195
Self-hosting Yes Yes
Data ownership Your server Your server

pick Khoj if

  • You weight community size — 38K stars and counting
  • You want the AGPL-3.0 license terms
  • Your stack matches Python
  • You value the larger contributor base for long-term maintenance

full Khoj profile →

pick COG-second-brain if

  • You want the COG-second-brain feature set and don't need the biggest community
  • You prefer the MIT license terms
  • Your stack matches Python
  • You evaluated both and COG-second-brain fits your workflow better

full COG-second-brain profile →

About Khoj

Your AI second brain 📑 Docs • 🌐 Web • 🔥 App • 💬 Discord • ✍🏽 Blog 🎁 New Meet 🌶️ Pipali our open source AI coworker that runs on your computer. Read about Khoj's excellent performance on modern retrieval and reasoning benchmarks. Overview Khoj is a personal AI app to extend your capabilities. It smoothly scales up from an on device personal AI to a cloud scale enterprise AI. Chat with any local or online LLM (e.g llama3, qwen, gemma, mistral, gpt, claude, gemini, deepseek). Get answers from the internet and your docs (including image, pdf, markdown, org mode, word, notion files). Access it from your…

read the full Khoj overview →

About COG-second-brain

COG: The Agentic Second Brain That Actually Self Evolves Cognition + Obsidian + Git — A self evolving second brain powered by AI agents, markdown files, and version control. No database, no vendor lock in — just .md files that think. Quick Start Skills Features FAQ SETUP.md Works with Claude Code • Antigravity • Cursor • Kiro • Gemini CLI • OpenAI Codex • any AI that reads markdown Inspired by Garry Tan's gstack and gbrain Quick Start 1. Clone & enter the repo: 2. Run onboarding in your agent: Or install via skills.sh: Done — COG is personalized and ready in 2 minutes. See SETUP.md…

read the full COG-second-brain overview →

More in Productivity & Utilities

Related comparisons

More Note Taking & Knowledge Management projects

Compare either of these against the rest of the Note Taking & Knowledge Management field.

Frequently asked questions

Is Khoj or COG-second-brain more popular?

Khoj has 38,345 GitHub stars and COG-second-brain has 1,560. Khoj has the larger community by that measure.

Are Khoj and COG-second-brain free?

Both are open source. Khoj is licensed under AGPL-3.0 and COG-second-brain under MIT. Neither carries a licence fee.

What is the difference between Khoj and COG-second-brain?

Khoj is written in Python and COG-second-brain in Python. The practical differences are community size, licence terms, language stack and release cadence — all compared in the table above.

Which should I choose, Khoj or COG-second-brain?

Choose Khoj if you want the larger community (38,345 stars) or its AGPL-3.0 licence terms. Choose COG-second-brain if its feature set, stack or MIT licence fits better. Both are self-hostable.