A
khoj
81.2
38,157 stars · AGPL-3.0
Self-Hosted
new-api leads by 10.0 · clear
A
81.2
38,157 stars · AGPL-3.0
B · leads
91.2
52,087 stars · AGPL-3.0
khoj versus new-api 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; new-api is written mainly in Go. The composite score is 81.2 for khoj and 91.2 for new-api.
new-api has 52,087 GitHub stars to khoj's 38,157, a gap of 13,930 (1.37×). Forks are 2,555 for khoj and 12,719 for new-api. On the log scale used inside this pair, adoption is 97 versus 100, and the fork community is 83 versus 100.
Push history: khoj was last pushed on 02 August 2026 (107 days ago), and new-api was last pushed on 17 November 2026 (0 days ago). Open issues stand at 173 for khoj (0.005 per star) and 1,474 for new-api (0.028 per star). Issue-health scores are 96 and 70; activity scores are 58 and 100.
Both khoj and new-api 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 new-api (52,087 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, new-api is open source.
The lead is split. khoj is furthest ahead on issue health (96 to 70), while new-api is furthest ahead on recent activity (100 to 58). Choose the dimension a rollout cannot compromise on.
new-api finishes ahead at 91.2 against khoj at 81.2, a 10.0 point clear margin under the published weights.
Scores are computed inside this pair only. Method and weights.
Bars are scaled within the row. Higher is stronger. Open issues are a raw count, so that row has no bar.
| Signal | khoj | new-api |
|---|---|---|
| GitHub stars | 38,157 | 52,087 |
| Forks | 2,555 | 12,719 |
| Open issues | 173 | 1,474 |
| Adoption | 97 | 100 |
| Activity | 58 | 100 |
| Community | 83 | 100 |
| Issue health | 96 | 70 |
| License | 52 | 52 |
| Self-hosting | 100 | 100 |
| Composite | 81.2 | 91.2 |
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.
Open-source AI gateway. Self-hosted LLM gateway with OpenAI-, Claude- and Gemini-compatible APIs, model routing, access control, usage tracking and cost accounting.
new-api has more GitHub stars: 52,087 versus 38,157 for khoj. The gap is 13,930 stars.
new-api was pushed more recently: 17 November 2026 versus 02 August 2026 for khoj. That is 107 days apart.
Yes. This catalog marks both khoj and new-api as self-hostable. Confirm each project's deploy docs before you plan a migration.
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. new-api 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.
new-api scores 91.2 and khoj scores 81.2. This page calls that a clear lead for new-api.