Skip to content
DevUtils Online

Self-Hosted

khoj vs Trilium

Trilium leads by 8.1 · clear

A

khoj

84.5

38,157 stars · AGPL-3.0

B · leads

Trilium

92.6

38,974 stars · AGPL-3.0

khoj versus Trilium is a Self-Hosted comparison assembled from public repository metrics, the license on file, and whether each product can be self-hosted. khoj is written mainly in Python; Trilium is written mainly in TypeScript. The composite score is 84.5 for khoj and 92.6 for Trilium.

Trilium has 38,974 GitHub stars to khoj's 38,157, a gap of 817 (1.02×). Forks are 2,555 for khoj and 2,630 for Trilium. On the log scale used inside this pair, adoption is 100 versus 100, and the fork community is 100 versus 100.

Push history: khoj was last pushed on 02 August 2026 (107 days ago), and Trilium was last pushed on 17 November 2026 (0 days ago). Open issues stand at 173 for khoj (0.005 per star) and 574 for Trilium (0.015 per star). Issue-health scores are 96 and 84; activity scores are 58 and 100.

Both khoj and Trilium are listed as AGPL-3.0. A network copyleft grant. Letting users interact with a modified copy over a network can trigger a duty to offer them the corresponding source. The license score is therefore level at 52 versus 52, and the decision moves to adoption, activity, and hosting. This is a procurement signal, not legal advice.

In Self-Hosted, both khoj (38,157 stars) and Trilium (38,974 stars) are marked self-hostable. Deploy scores are 100 and 100. Running either one means you own upgrades, backups, and the license duties that follow a modified copy. Pricing labels on file: khoj is open source, Trilium is open source.

The lead is split. khoj is furthest ahead on issue health (96 to 84), while Trilium is furthest ahead on recent activity (100 to 58). Choose the dimension a rollout cannot compromise on.

Trilium finishes ahead at 92.6 against khoj at 84.5, a 8.1 point clear margin under the published weights.

Scores are computed inside this pair only. Method and weights.

Where they separate

The numbers

Bars are scaled within the row. Higher is stronger. Open issues are a raw count, so that row has no bar.

khoj versus Trilium metrics
Signal khoj Trilium
GitHub stars 38,157 38,974
Forks 2,555 2,630
Open issues 173 574
Adoption 100 100
Activity 58 100
Community 100 100
Issue health 96 84
License 52 52
Self-hosting 100 100
Composite 84.5 92.6

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.

Project site · GitHub · Full profile

Questions this page answers

Which has more GitHub stars, khoj or Trilium?

Trilium has more GitHub stars: 38,974 versus 38,157 for khoj. The gap is 817 stars.

Which was updated more recently, khoj or Trilium?

Trilium was pushed more recently: 17 November 2026 versus 02 August 2026 for khoj. That is 107 days apart.

Can I self-host both khoj and Trilium?

Yes. This catalog marks both khoj and Trilium as self-hostable. Confirm each project's deploy docs before you plan a migration.

Which license is easier to embed in a commercial product, khoj or Trilium?

khoj is listed as AGPL-3.0, which this catalog treats as a network copyleft grant. Letting users interact with a modified copy over a network can trigger a duty to offer them the corresponding source. Trilium is listed as AGPL-3.0, which this catalog treats as a network copyleft grant. Letting users interact with a modified copy over a network can trigger a duty to offer them the corresponding source. Read both grants before you embed either codebase in a hosted product. This is not legal advice.

Who wins the khoj vs Trilium score?

Trilium scores 92.6 and khoj scores 84.5. This page calls that a clear lead for Trilium.

Related comparisons