KhojSelf-hostable personal AI assistant for searching docs and the web
TextGenLocal desktop chat and API for language models
Khoj vs TextGen
How Khoj and TextGen compare on popularity, activity, license and platforms: two open-source AI Interaction & Interfaces projects, both alternatives to ChatGPT, ChatGPT Plus and Claude.
At a glance
- TextGen has more GitHub stars (47.8k vs 38.3k).
- TextGen was updated more recently (last commit 3 months ago, Khoj 4 months ago).
- Both use the AGPL-3.0 license.
- Khoj can be self-hosted.
- Khoj is the older project (repository started 2021; TextGen in 2022).
Side by side
| Khoj | TextGen | |
|---|---|---|
| GitHub stars | ★ 38,342 +112 in 10 days | ★ 47,758 +0 in 7 days |
| Forks | 2,577 | 5,984 |
| Last commit | 4 months ago | 3 months ago |
| Latest version | 2.0.0-beta.28 | v4.9 |
| Repository started | August 2021 | December 2022 |
| License | AGPL-3.0 · copyleft | AGPL-3.0 · copyleft |
| Self-hosted | Yes | Desktop/CLI app |
| Platforms | Web | Web, Linux, macOS, Windows |
| Main language | Python | Python |
| Alternative to | ChatGPT, ChatGPT Plus, Claude, Gemini, Perplexity | Anthropic API, ChatGPT, ChatGPT Plus, Claude, LM Studio, Microsoft Copilot +1 |
Highlighted: more stars or forks, or a last commit at least two weeks more recent. Data from GitHub, updated 4 December 2026.
Khoj
Khoj is an open-source personal AI app that chats with local or online LLMs and answers questions from your documents and the web. It supports custom agents, scheduled automations and research.
Key features
- Chat with local or online LLMs
- Answers from the web and your documents
- Semantic search over personal files
- Custom agents with own knowledge and tools
- Scheduled automations and newsletters
- Image generation and voice
TextGen
Desktop application to run local LLMs with chat, vision, tools, and an OpenAI-compatible API without telemetry.
Key features
- Local GGUF and extended backends
- Instruct and character chat modes
- Multimodal image attachments
- OpenAI-compatible local API
- Tool and MCP calling in chat
- LoRA training on chat datasets