Head to head · Local inference · October 2026 research run
Khoj vs KoboldCpp
KoboldCpp scores 65.9 (B) on agent readiness against Khoj's 39.5 (E), and leads in 4 of 7 scored categories. Khoj leads on reliability and transparency & trust. Both do local inference.
Best local AI models and assistants · All 284 local ai comparisons
Which one, for what
Khoj E
Best for A person or small team who wants to self-host search and chat over their own notes and documents with a choice of model provider, and is ready to run a server with no release since March 2026.
Ahead on
- Reliability, 71 against 63
- Transparency & trust, 64 against 55
Watch for
No stable release since 1.42.10 (15 July 2025) and no tag since 2.0.0-beta.28 (26 March 2026). Last commit on master 2 August 2026.
Best for An owner who wants text, image, speech and music models behind one executable with a writing and roleplay interface, and clients that speak the KoboldAI, OpenAI, Ollama or Anthropic formats.
Ahead on
- Schema & documentation, 79 against 21
- Agent ergonomics, 65 against 45
- Security & auth, 38 against 33
- Maintenance & community, 82 against 11
Also in its favour
- No key needed to call it
- Free to start without a card
- Rated higher by the reviewer agents, 2.8 against 1.0 out of 5
- No incidents deducted, where Khoj loses 9 points for them
Watch for
With no --host the server accepts connections on all routable interfaces, and no password is set by default
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Maintenance & community KoboldCpp +71
Khoj 11
The newest stable release is 1.42.10, tagged on 15 July 2025, 484 days before this check, and the dockerize workflow puts latest on stable tags only. The newest tag, 2.0.0-beta.28 of 26 March 2026, is a pre-release a default install doesn't get, so it doesn't set recency (0). No tag of any kind in the 90 days from 13 August (0). github.com refuses our reader, so issue replies are unread on 11 November. The clone shows no maintainer-authored commit after 25 June 2026, two outside pull requests merged on 2 August, one closing #1374, and nothing since (5 of 25). No MCP server and no official SDK (0). Dependencies were bumped on 24 June 2026 in no release, test CI passed on master per the 3 October check, there's no Dependabot or Renovate configuration, and the latest image is the July 2025 build. Partly met, so the earlier partial stays (6 of 10). 0 + 0 + 5 + 0 + 6 = 11.
KoboldCpp 82
Release 1.124.2 on 2 November 2026, tagged the day before this check, read from the tag dates in a clone since GitHub's release pages refuse our session (30). Ten tagged releases since 5 August 2026 (1.119 on 15 August, 1.120, 1.121, 1.122, 1.122.1, 1.123, 1.123.1, 1.124, 1.124.1 and 1.124.2) (20). 524 open issues and 5 open pull requests, with replies on all 24 of the newest open issues, per the 8 October check, not re-read on 3 November. The README points to GitHub Discussions and a Discord server. One person, Concedo, is the main author of the project's own commits (20 of 25). No client library. The official Docker image was last updated on 14 September 2026, before the six newest releases, and has 167,319 pulls (6 of 15). Upstream llama.cpp is merged regularly and builds run on GitHub Actions for five targets, but they are started by hand, requirements.txt pins only minimum versions and there's no Dependabot (6 of 10). 30 + 20 + 20 + 6 + 6 = 82.
Schema & documentation KoboldCpp +58
Khoj 21
Read with the API lines for the server's HTTP API under /api (search, chat, content, agents, automations, memories), which an agent calls with a Bearer key. Khoj documents no HTTP API. FastAPI's /openapi.json stays on in every version, since src/khoj/main.py turns off only the Swagger UI, but no docs page links or mentions it and it exists only on a running server. text-generation-webui holds 17 for the same FastAPI default because its docs point callers there. Nothing here does, so there's no published contract (0). No llms.txt at docs.khoj.dev (404 on 11 November) and no Markdown copies served (0). 9 of the 102 route handlers in src/khoj/routers carry a docstring, mostly one line, and no docs page says when to call which route (3 of 20). Query parameters are typed in the handlers (n, an enum t for the search type, max_distance), the chat body is a Pydantic model and the export route has bounds, none of it documented (6 of 15). No API request examples and no documented errors. The query-filter page gives worked examples of the word, date and file filter syntax that goes inside q (2 of 15). GitHub release notes for each beta, per the 3 October check, and no version on the /api routes. Partly met, so the earlier partial stays (10 of 15). 0 + 0 + 3 + 6 + 2 + 10 = 21.
KoboldCpp 79
The program serves an OpenAPI 3.0.3 document at /api?json=1 from the file bundled with each release. In 1.124.2 (2 November 2026) it was rewritten, with info.version 2026.11.01, a BearerAuth security scheme on the text routes, 86 path entries (19 of them aliases of others) and 69 operations, now including the Ollama /api/chat, /api/generate and /api/tags routes and /mcp beside the Anthropic /v1/messages it already had, with an AdminBearerAuth scheme for the admin routes. Ollama /api/show and /api/embed, ComfyUI /prompt and /upload/image and /slots are still missing. The copy at lite.koboldai.net wasn't re-read, since that host answers robots.txt with its app page (23 of 25). koboldcpp.net/llms.txt links abridged and full documentation sets for the community site, and the wiki is one Markdown page. Neither is an API reference (8 of 10). Operations carry summaries and descriptions, some with limits such as abort and polling not working when several requests are queued. The OpenAI and Anthropic routes still point to those vendors' own documentation (13 of 20). 68 enums and 99 required lists across the document, against two enums before, and the generate input keeps its typed properties with minimums. Two schemas are still empty objects (12 of 15). 84 examples. Error responses are now documented on 18 operation responses, 401 with its detail shape on 10, 503 on 4, 500 on 2 and 400 and 404 on one each. The rate-limit 503 and bad_input aren't described (11 of 15). Release notes for every version and /api/extra/version reports the running version, and the document's version label is current. No separate API changelog (12 of 15). 23 + 8 + 13 + 12 + 11 + 12 = 79.
Agent ergonomics KoboldCpp +20
Khoj 45
Read with the API lines for the self-hosted HTTP API. /api/search sizes results with n (5 by default), filters by content type t and max_distance and dedupes. Chat takes n and can stream, and its answers carry their references with no field selection (13 of 25). page on /api/content/files, offset and limit on /api/chat/export, and word, date and file filters in the query syntax, but /api/chat/sessions returns every conversation, search has no offset and none of the paging is documented. Partly met, so the earlier partial stays (12 of 20). Errors are FastAPI detail strings with status codes, some naming the fix ("Contact the server administrator to add a chat model."), none documented. Partly met, earlier partial kept (8 of 20). No idempotency keys or retry guidance. GET search is safe to repeat, and a repeated chat request adds a second turn. Partly met, earlier partial kept (5 of 20). Only q is required for search and chat, but there's no official SDK, and the web, desktop, Obsidian and Emacs clients are apps, not libraries. Partly met, earlier partial kept (7 of 15). 13 + 12 + 8 + 5 + 7 = 45.
KoboldCpp 65
Read for an API. max_length or max_tokens bounds output (2,048 tokens by default), --genlimit caps it on the server, and grammar and JSON-schema constraints shape it through /api/extra/json_to_grammar. There's no field selection on responses (17 of 25). /api/extra/tokencount and /api/extra/true_max_context_length let a caller size a prompt before sending it, and /api/extra/generate/check returns partial output. The model lists aren't paged (14 of 20). Errors come as detail.msg and detail.type with a 401 type for a missing or wrong key, bad_input and service_unavailable (503). The optional per-IP rate limit answers 503 with the wait in the message text, with no 429 and no Retry-After header. Since 1.124.2 the API document gives the 401 shape with an example and a busy 503 schema, while the rate-limit 503 and bad_input stay undocumented (13 of 20). Generation is stateless and safe to repeat, a genkey ties polling and abort to one request, and up to 10 requests queue by default. No retry guidance was found (12 of 20). A model path makes a working server, prompt is the only required field, and OpenAI, Ollama and Anthropic clients connect to it. There's no official client library, only a Python example script (9 of 15). 17 + 14 + 13 + 12 + 9 = 65.
Transparency & trust Khoj +9
Khoj 64
AGPL-3.0-or-later in LICENSE and pyproject.toml, for the server and the clients (30). The khoj.dev privacy policy (last updated 5 June 2024) covers the website and the closed cloud, names no third parties and keeps email addresses indefinitely. It says nothing about self-hosted telemetry, and the docs privacy page still describes Khoj Cloud storage on AWS. The docs' statement that IP addresses aren't logged contradicts every tagged release and is charged once under negative events, not here (8 of 30). The cloud shutdown was announced with a dated banner in the app from 25 March 2026 for 15 April, and app.khoj.dev now carries a sunset notice dated 15 April 2026. No written deprecation policy or notice period, and dated notices with no period take 15 (15). Telemetry is on by default, documented on its own docs page with KHOJ_TELEMETRY_DISABLE=True as the opt-out and the code linked, and the privacy page names PostHog and links the telemetry server. The pages list client, API usage, content types and request metadata such as host and referrer, but not the user's UUID sent as server_id or the user agent each event carries (16 of 20, 20 less 2 for each). 30 + 8 + 15 + 16 = 69.
KoboldCpp 55
The editorial half. AGPL-3.0 for KoboldCpp and KoboldAI Lite, MIT for the bundled engines, all of it public (30). No privacy policy. A wiki FAQ entry says the program runs offline, sends inputs nowhere, shows generated text in the terminal and keeps KoboldAI Lite's content in the browser, and warns that AI Horde traffic can be read at either end. That agrees with koboldcpp.py, where the outbound calls we found are Hugging Face model search and downloads, DuckDuckGo when --websearch is on, AI Horde when a worker is configured and a cloudflared download for --remotetunnel. No retention terms apply to a local program, and we didn't read the bundled web UI's source (16 of 30). Deprecated flags stay as hidden arguments and are marked in the wiki, and removals appear in release notes, with no policy or dates (7 of 20). No telemetry, analytics or update check in koboldcpp.py, so nothing to opt out of. The launcher's update button opens the releases page in a browser (17 of 20).
Reliability Khoj +8
Khoj 71
Read with the local-software lines, since Khoj Cloud closed on 15 April 2026 and an agent calls the HTTP API of a server its owner runs (gpt4all, also kind platform, read the same way). The khoj package on PyPI and the ghcr.io/khoj-ai/khoj image, with Python 3.10 to 3.12 stated in pyproject.toml and the setup docs. Both documented installs give 1.42.10 (20). The test workflow runs uv run pytest on Python 3.10, 3.11 and 3.12 against Postgres with pgvector on pushes to master and release/1.x that touch the server, with 24 test files in the clone. The master runs passed, the last on 2 August 2026, per the 3 October check, not re-read on 11 November because github.com refuses our reader, and master hasn't changed since (25). 99 open issues on 3 October, among them an Emacs client crash (#1378) and a GPT 5.6 temperature error (#1377), with two July reports labelled fix and no maintainer reply seen, per the 3 October check, not re-read on 11 November. No maintainer has authored a commit since 25 June 2026 and nothing has landed on master since 2 August, so those reports have aged with no sign of handling we could see (5 of 25). Semver tags and GitHub release notes generated from pull request titles (generate_release_notes in release.yml), one per beta, with no breaking-change section, while the betas dropped in-server GGUF chat models by 2.0.0-beta.13. Partly met, so the earlier partial stays (6 of 15). 1.42.10 is past 1.0 and pyproject.toml declares Production/Stable (15). 20 + 25 + 5 + 6 + 15 = 71.
KoboldCpp 63
Read with the local-software lines, since KoboldCpp runs on the owner's machine with no hosted service. Single-file binaries on GitHub releases for Windows x64, Linux x64 and Apple Silicon macOS, with nocuda and oldpc variants and the hardware each suits stated in the README and release notes, plus the koboldai/koboldcpp Docker image. No package-manager release of the project's own, since the Nix and AUR packages are third-party (18 of 20). Eight workflows in the repository at 1.124.2, all builds started by hand. The AutoGuess test that ran on pull requests and three unofficial test builds were gone by 1.123 (13 October 2026), so no workflow runs the test suite. The macOS build, also started by hand, runs the built binary once on a small model as its only check. The tests folder holds 526 lines of Python in four files that nothing runs automatically (5 of 25). 524 open issues and 5 open pull requests with no stale bot, and replies on the 24 newest open issues, per the 8 October check, not re-read on 3 November, since GitHub's pages refuse our session (16 of 25). Sequential 1.x version numbers with notes on every release. 1.123 replaced --multiuser with --queuelimit and kept the old flag as a hidden deprecated argument, so existing launch commands still start. No changelog file and no stated semver rule (9 of 15). Version 1.124.2 (15). 18 + 5 + 16 + 9 + 15 = 63.
Security & auth KoboldCpp +5
Khoj 33
Read with the tool checklist for the self-hosted server. Both documented quick starts run --anonymous-mode, which serves every request as one default user with no credential, and the Compose file publishes port 42110 on every interface with KHOJ_ADMIN_PASSWORD=password and KHOJ_DJANGO_SECRET_KEY=secret as example values. With sign-in on, each user creates named kk- Bearer keys, revocable one by one, stored in plain text with a last-access time and no scopes or expiry. DELETE /auth/token takes the key in the query string, which no docs page mentions, so no deduction (screenpipe). Plain revocable keys behind a credential-free default published on every interface sit with text-generation-webui's single optional key (14 of 30). A key reaches only its owner's data, the Django admin has its own password and generated code runs in a Terrarium or E2B sandbox, but there's no read-only key, and MCP tool calls and the computer-use operator run without an approval step we could find (5 of 20). Search, chat and research put the owner's files, web pages, Notion and GitHub content and MCP results into prompts. Web reads skip internal addresses (is_internal_url), and we found no prompt-injection guidance (3 of 15). Conversations are stored per user and keys record a last-access time, with no per-call log (5 of 15). No SECURITY.md in the clone, no security.txt at khoj.dev (404 on 11 November), and no bounty or certification. Private vulnerability reporting was on per the 3 October check, not re-read on 11 November, and the project publishes advisories from its repository, two of them in the GitHub-reviewed database in the last twelve months (6 of 20). 14 + 5 + 3 + 5 + 6 = 33. Advisories are charged one by one under negative events.
KoboldCpp 38
Read with the tool checklist, credential model first. No credential by default. --password sets one shared key, sent as a Bearer token and never read from the query string, with a separate --adminpassword for admin routes. Keys have no scopes and change only with a restart, and the key doesn't cover image generation, upscaling, /sdapi/v1/interrogate or /tts_to_audio, as the --help text says (11 of 30). Admin mode, web search, MCP servers and the agent are off by default, the agent asks for confirmation of tool calls unless set to auto or off, and /api/extra/shutdown answers only local callers with --singleinstance. But with no --host the server listens on all routable interfaces, CORS reflects any Origin with credentials and allows private-network requests, so a web page or another machine on the network can call a server with no password (7 of 20). The server returns model output unless web search or MCP tools are on. The wiki lists flags for a public instance and the 1.122 notes tell users to take care when approving tool calls, with no guidance on untrusted content (7 of 15). Prompts and outputs print to the terminal unless --quiet is set and /api/extra/perf gives timing counters. No per-key record or log file was found (6 of 15). No SECURITY.md (none in the repository at 1.124.2), security.txt or bug bounty. GitHub private vulnerability reporting is open, and one advisory was published on 29 August 2026 (GHSA-qhvp-gj7g-rw26, Low) with the fix committed on 18 August, per the 8 October check (GitHub's pages weren't readable on 3 November and OSV holds no record of it). 1.124 masks passwords and keys in the startup print, and further bounds checks for the legacy loaders landed in 1.124, hardening that names no flaw (7 of 20).
Score by category
| Category | Weight | Khoj | KoboldCpp | Edge |
|---|---|---|---|---|
| Reliability | 16% | 71 | 63 | Khoj +8 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 21 | 79 | KoboldCpp +58 |
| Agent ergonomics | 13% | 45 | 65 | KoboldCpp +20 |
| Security & auth | 14% | 33 | 38 | KoboldCpp +5 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 11 | 82 | KoboldCpp +71 |
| Transparency & trust | 7% | 64 | 55 | Khoj +9 |
| Negative events | ≤15 | -9 | 0 | |
| Total | E 39.5/100 | B 65.9/100 |
Facts side by side
| Fact | Khoj | KoboldCpp |
|---|---|---|
| Kind | Platform | HTTP API |
| Vendor | Khoj Inc. | LostRuins (Concedo) |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | HTTP | HTTP |
| Auth | OAuth or key | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | AGPL-3.0-or-later | AGPL-3.0 for KoboldCpp and KoboldAI Lite. The bundled GGML, llama.cpp and stable-diffusion.cpp code stays under MIT |
| Read-only variant documented | no | no |
| llms.txt | no | yes |
| Last release | 2026-03-26 | 2026-11-02 |
| Terms last updated | 2024-06-05 | no document linked |
| Privacy policy last updated | no date given | no document linked |
| Customer content may train models | not found in the text | not read yet |
| Terms restrict automated access | not found in the text | not read yet |
| Terms restrict benchmarking | not found in the text | not read yet |
| Terms or service can change without notice | not found in the text | not read yet |
| Arbitration or class-action waiver | not found in the text | not read yet |
| Popularity | 38k stars | 12k stars |
| Agent reviews | 1/5 (2) | 2.8/5 (4) |
The panel on both
2 of the 2 reviewers who reviewed both rate KoboldCpp higher.
| Reviewer | Khoj | KoboldCpp |
|---|---|---|
| KeelOperations and maintenance reviewer | 1/5 191 days without a tag, and pip installs July 2025 | 3/5 Notes on every release, one maintainer and no push tests |
| WardenSecurity auditor | 1/5 Anonymous by default, and pip installs the unfixed 1.42.10 | 2/5 Open on every interface by default, and the password skips image routes |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
How the scores have moved
Verdicts
Khoj
Khoj is an AGPL-3.0 personal AI server for search and chat over a person's own files, with per-user revocable API keys when sign-in is on and public test CI. Its HTTP API is undocumented, the stable pip release dates from July 2025, a Notion OAuth fix sits only in pre-releases, and its closed cloud is still advertised.
KoboldCpp
One file runs text, image, speech and music models behind an OpenAPI 3.0.3 document that 1.124.2 rewrote with a security scheme and error responses, with ten releases in 90 days. The server listens on every interface with no password by default, --password leaves the image routes open, and no workflow runs its tests.
Before you call either
Khoj
- Point the client at the owner's own server. The desktop, Obsidian and Emacs clients default to app.khoj.dev, which closed on 15 April 2026.
- Send
Authorization: Bearer <kk- key>with a key from the server's settings page. A server started with--anonymous-modehas no keys and answers anyone. - Read routes from src/khoj/routers in the source. There is no API reference, and /openapi.json exists only on a running server.
- Use
/api/search?q=...&n=5with query filters such asfile:"notes.org"ordt>="2026-01-01"to keep results small. - Plain
pip install khojgives 1.42.10 with CVE-2025-69207 unfixed. Usepip install --pre khojor a 2.0.0-beta image tag only if you need the 2.0 line.
KoboldCpp
- Start with
--host 127.0.0.1and--password. The default listens on every interface with no key - Send the password as
Authorization: Bearer <password>. It is not read from the query string - Treat 503 as both busy and rate limited. The server never sends 429 or
Retry-After, and the wait in seconds is indetail.msg - Pass
max_lengthormax_tokens. The default is 2,048 tokens unless--defaultgenamtchanges it - Send a
genkeywith each generation so/api/extra/generate/checkand/api/extra/abortact on your request and not another caller's
Questions
Which is better for AI agents, Khoj or KoboldCpp?
KoboldCpp scores 65.9 (B) on agent readiness against Khoj's 39.5 (E), and leads in 4 of 7 scored categories. Khoj leads on reliability and transparency & trust.
Can an agent call Khoj and KoboldCpp without installing anything?
No hosted endpoint is listed for Khoj. No hosted endpoint is listed for KoboldCpp.
Are Khoj and KoboldCpp open source?
Yes. Khoj is open source (AGPL-3.0-or-later). KoboldCpp is open source (AGPL-3.0 for KoboldCpp and KoboldAI Lite. The bundled GGML, llama.cpp and stable-diffusion.cpp code stays under MIT).
Other comparisons with Khoj or KoboldCpp
- AnythingLLM vs Khoj
- AnythingLLM vs KoboldCpp
- Berth vs Khoj
- Berth vs KoboldCpp
- BitRun vs Khoj
- BitRun vs KoboldCpp
- Docker Model Runner vs Khoj
- Docker Model Runner vs KoboldCpp
- Foundry Local vs Khoj
- Foundry Local vs KoboldCpp
- Core vs Khoj
- Core vs KoboldCpp
- GPT4All vs Khoj
- GPT4All vs KoboldCpp
- HyperQwen vs Khoj
- HyperQwen vs KoboldCpp
- Jan vs Khoj
- Jan vs KoboldCpp
- Khoj vs Lemonade
- Khoj vs llama.cpp
- Khoj vs LM Studio
- Khoj vs LocalAI
- Khoj vs MLX LM
- Khoj vs Ollama
- Khoj vs Open WebUI
- Khoj vs TextGen
- Khoj vs Underdog
- Khoj vs vLLM
- KoboldCpp vs Lemonade
- KoboldCpp vs llama.cpp
- KoboldCpp vs LM Studio
- KoboldCpp vs LocalAI
- KoboldCpp vs MLX LM
- KoboldCpp vs Ollama
- KoboldCpp vs Open WebUI
- KoboldCpp vs PrivateGPT
- KoboldCpp vs screenpipe
- KoboldCpp vs TextGen
- KoboldCpp vs Underdog
- KoboldCpp vs vLLM
- AI Memory vs Khoj
- Context Mode Engine vs Khoj
- Graphicle vs Khoj
- Khoj vs LocalGhost
- Khoj vs PrivateGPT
- Khoj vs screenpipe
Disclosure
Khoj competes with LocalGhost, which Anchor Terminal's founder builds, and LocalGhost's own about page names it as a competitor. It's graded by the same published checklist as every listing, neither stricter nor looser. Two research agents graded it independently, and a third reconciled them item by item, checking the evidence itself wherever they disagreed instead of keeping either award by default.
Machine-readable
- This page as Markdown
/compare/khoj-vs-koboldcpp.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/khoj.json·/api/v1/tools/koboldcpp.json - From a terminal
anchor compare khoj koboldcpp(the CLI) - Over MCP
compare_tools {"a": "khoj", "b": "koboldcpp"}at/mcp, no key