---
title: "TrueMemory vs khoj"
type: "comparison"
canonical_url: "https://www.graphcanon.com/compare/buildingjoshbetter-truememory-vs-khoj-ai-khoj"
tools: ["buildingjoshbetter-truememory", "khoj-ai-khoj"]
---

# TrueMemory vs khoj

*GraphCanon updated Aug 23, 2026*

## Verdict

Pick TrueMemory if trueMemory is an automatic capture and recall memory system for AI agents using SQLite; pick khoj if khoj is a self-hostable AI tool that functions as an assistant able to extract information from the web or user documents for deep research tasks. It supports various local and online language models (LLMs) like GPT, LLa.

[TrueMemory](https://truememory.net) reports 373 GitHub stars, 47 forks, and 18 open issues, last pushed Jul 29, 2026. [khoj](https://khoj.dev) has 37k stars, 2.4k forks, and 133 open issues, last pushed Aug 2, 2026. Figures are from public GitHub metadata via [TrueMemory's repository](https://github.com/buildingjoshbetter/TrueMemory) and [khoj's repository](https://github.com/khoj-ai/khoj).

| | [TrueMemory](/tools/buildingjoshbetter-truememory.md) | [khoj](/tools/khoj-ai-khoj.md) |
| --- | --- | --- |
| Tagline | Automatic capture and recall memory system for AI agents | Your AI second brain. Self-hostable. |
| Stars | 373 | 36,512 |
| Forks | 47 | 2,386 |
| Open issues | 18 | 133 |
| Language | Python | Python |
| Adopt for | TrueMemory is an automatic capture and recall memory system for AI agents using SQLite. | khoj is a self-hostable AI tool that functions as an assistant able to extract information from the web or user documents for deep research tasks. It supports various local and online language models (LLMs) like GPT, LLa |
| Persona | - | - |
| Runtime | - | - |
| License | AGPL-3.0 | khoj is distributed under the GNU Affero General Public License v3.0 (AGPL-3.0), which entails users must make source code available if they run modified versions of khoj on a network and allow others |
| Categories | AI Agents, Developer Tools | AI Agents, Developer Tools, Model Training |

## Trust and health

_Sourced signals - not a safety guarantee. No winner column._

| | [TrueMemory](/tools/buildingjoshbetter-truememory.md) | [khoj](/tools/khoj-ai-khoj.md) |
| --- | --- | --- |
| Days since push | 25d | 14d |
| Open issues (now) | 18 | 133 |
| Stars delta | +4 (30d) | +702 (30d) |
| Open issues delta | +5 (30d) | +14 (30d) |
| Owner type | User | Organization |
| Full report | [trust report](/tools/buildingjoshbetter-truememory/trust.md) | [trust report](/tools/khoj-ai-khoj/trust.md) |

## Decision facts: TrueMemory

- **Adopt for:** TrueMemory is an automatic capture and recall memory system for AI agents using SQLite.

## Decision facts: khoj

- **Hosting:** self hosted
- **Pricing:** freemium - khoj provides free access to its core functionalities, but certain high-tier features might be subject to premium licensing.
- **Adopt for:** khoj is a self-hostable AI tool that functions as an assistant able to extract information from the web or user documents for deep research tasks. It supports various local and online language models (LLMs) like GPT, LLa
- **License detail:** khoj is distributed under the GNU Affero General Public License v3.0 (AGPL-3.0), which entails users must make source code available if they run modified versions of khoj on a network and allow others

## Choose when

### Choose TrueMemory if…

- Tags unique to TrueMemory: agent-memory, ai-agent, embeddings, generative-ai.
- When you want to ensure your memory storage remains entirely local without depending on cloud services.
- Leaner open-issue backlog (18).

### Choose khoj if…

- Pricing: khoj provides free access to its core functionalities, but certain high-tier features might be subject to premium licensing..
- Tags unique to khoj: agent, ai, assistant, chat.
- Also covers Model Training.
- khoj ships Docker support for self-hosted deployment.
- You're looking to build custom agents for specific tasks, making it ideal if you require a tool with high customization options.

## When NOT to use TrueMemory

- If you need extensive scalability features offered by cloud-based memory solutions.
- When your project mandates integration exclusively with non-SQLite databases, because TrueMemory is centered around SQLite for its backend.

## When NOT to use khoj

- When you need real-time responses where latency needs to be minimized, since self-hosting might introduce delays.
- If you prefer cloud-based solutions for maintenance and scaling purposes without managing your own servers, khoj may not be the best option.

## Common questions

### What is the difference between TrueMemory and khoj?

TrueMemory: Automatic capture and recall memory system for AI agents. khoj: Your AI second brain. Self-hostable.. See the comparison table for live GitHub stats and shared categories.

### When should I choose TrueMemory over khoj?

Choose TrueMemory over khoj when Tags unique to TrueMemory: agent-memory, ai-agent, embeddings, generative-ai; When you want to ensure your memory storage remains entirely local without depending on cloud services; Leaner open-issue backlog (18).

### When should I choose khoj over TrueMemory?

Choose khoj over TrueMemory when Pricing: khoj provides free access to its core functionalities, but certain high-tier features might be subject to premium licensing.; Tags unique to khoj: agent, ai, assistant, chat; Also covers Model Training; khoj ships Docker support for self-hosted deployment; You're looking to build custom agents for specific tasks, making it ideal if you require a tool with high customization options.

### When should I avoid TrueMemory?

If you need extensive scalability features offered by cloud-based memory solutions. When your project mandates integration exclusively with non-SQLite databases, because TrueMemory is centered around SQLite for its backend.

### When should I avoid khoj?

When you need real-time responses where latency needs to be minimized, since self-hosting might introduce delays. If you prefer cloud-based solutions for maintenance and scaling purposes without managing your own servers, khoj may not be the best option.

### Is TrueMemory or khoj more popular on GitHub?

khoj has more GitHub stars (36,512 vs 373). Stars measure visibility, not whether either tool fits your constraints.

### Are TrueMemory and khoj open source?

Yes - both are open-source projects on GitHub (TrueMemory: AGPL-3.0, khoj: AGPL-3.0).

### Where can I find alternatives to TrueMemory or khoj?

GraphCanon lists graph-backed alternatives at [TrueMemory alternatives](/tools/buildingjoshbetter-truememory/alternatives) and [khoj alternatives](/tools/khoj-ai-khoj/alternatives) ([TrueMemory markdown twin](/tools/buildingjoshbetter-truememory/alternatives.md), [khoj markdown twin](/tools/khoj-ai-khoj/alternatives.md)), ranked by typed relationship edges rather than popularity votes.

### Is there a machine-readable version of this comparison?

Yes. The markdown twin at [this comparison](/compare/buildingjoshbetter-truememory-vs-khoj-ai-khoj.md) mirrors this page for agents and LLM crawlers, with the same stats table and FAQ answers.

### Which is better maintained, TrueMemory or khoj?

TrueMemory: Active. khoj: Active. Compare maintenance labels, days since push, and release cadence in the trust section below - stars alone do not measure maintenance.

### Where are the full trust reports for TrueMemory and khoj?

GraphCanon publishes per-repo trust reports with dated maintenance, provenance, and scan summaries: [TrueMemory trust report](/tools/buildingjoshbetter-truememory/trust); [khoj trust report](/tools/khoj-ai-khoj/trust).

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/graph?tool=buildingjoshbetter-truememory`](/api/graphcanon/graph?tool=buildingjoshbetter-truememory)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
