Head to head · Local inference · October 2026 research run
Khoj vs vLLM
vLLM scores 52.2 (D) on agent readiness against Khoj's 39.5 (E), and leads in 5 of 7 scored categories. Khoj leads on reliability. 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 59
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.
vLLM D
Best for An owner with a GPU server who wants many concurrent requests against one open-weight model behind OpenAI or Anthropic compatible routes.
Ahead on
- Schema & documentation, 68 against 21
- Agent ergonomics, 64 against 45
- Security & auth, 50 against 33
- Maintenance & community, 88 against 11
- Transparency & trust, 71 against 64
Also in its favour
- No key needed to call it
- Free to start without a card
Watch for
--api-key guards only the /v1, /v2, /inference and /cohere prefixes. /invocations, /pooling, /classify, /score, /rerank, /pause and /update_weights answer without it
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 vLLM +77
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.
vLLM 88
v0.33.0 is tagged 1 November 2026 (30). Eight stable releases in the 90 days from 6 August, v0.27.0 (10 August), v0.27.1, v0.28.0, v0.29.0, v0.30.0, v0.31.0, v0.32.0 (17 October) and v0.33.0, with release candidates between them, dated from the tags in a clone (20). Per the 9 October check, not re-read on 4 November (GitHub's pages and API refuse this session): 2,592 open issues, and 42 of 48 bug reports from the week of 22 September had a comment by 9 October (19 of 25). The Python library ships in the same package as the server, and a Rust proto crate is tagged separately (proto-v0.6.0 is the newest). The server has no client library of its own (10 of 15). Dependabot runs weekly for pip and GitHub Actions, with pre-commit and Buildkite checks on each commit (9 of 10). 30 + 20 + 19 + 10 + 9 = 88.
Schema & documentation vLLM +47
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.
vLLM 68
The server is a FastAPI application with Pydantic request models, so a running instance serves its own OpenAPI document and Swagger page unless --disable-fastapi-docs is set, and the gRPC services have published proto files. No static OpenAPI file is published in the docs or the repository (15 of 25). docs.vllm.ai/llms.txt returns 404. vllm.ai/llms.txt lists site pages and blog posts, and the docs are Markdown files in the repository (5 of 10). The serving pages say which model types each route applies to, which OpenAI fields are ignored, and which routes must not be exposed (15 of 20). Typed request models, with structured outputs by JSON schema, choice, regex or grammar (12 of 15). Examples for most routes in the docs and the examples folder. The error shape (message, type, param, code) is defined in the source, and no error reference page was found (9 of 15). GitHub releases with full notes about every two weeks and vllm.ai/releases. The HTTP API has no version of its own beyond the /v1 prefix (12 of 15).
Agent ergonomics vLLM +19
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.
vLLM 64
Read for an API. max_tokens, structured outputs, log probabilities and streaming control the size and shape of a reply (18 of 25). /tokenize and /v1/messages/count_tokens count tokens before a call and /load reports server load. /v1/models is not paged (14 of 20). Errors follow the OpenAI shape with a type, a param and a code, with no documented list of codes (12 of 20). Generation is stateless and safe to repeat, X-Request-Id can be echoed with --enable-request-id-headers, and /health is public. No retry guidance was found (11 of 20). vllm serve <model> starts a working server and OpenAI and Anthropic clients work against it. There is no client library of its own, tool calling needs --enable-auto-tool-choice and a parser chosen for the model, and sampling defaults come from the model's generation_config.json unless overridden (9 of 15).
Security & auth vLLM +17
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.
vLLM 50
Read with the tool checklist. Optional static keys from --api-key or VLLM_API_KEY, compared in constant time and read only from the Authorization header. They are off by default, have no scopes, and are checked only under /v1, /v2, /inference and /cohere, so /invocations runs the same inference without a key. With --host unset the server binds every interface, and gRPC has no authentication (10 of 30). Development routes, runtime LoRA loading, tool servers and endpoint plugins are off by default. /pause, /abort_requests and /update_weights answer without a key on generation servers, and there is no read-only mode (6 of 20). The security guide covers model-generated code in the demo code interpreter, allowed domains for media URLs, cache salting and the lack of tenant isolation (10 of 15). Access logs, --enable-log-requests, Prometheus /metrics and OpenTelemetry examples, with no per-key record (9 of 15). SECURITY.md with severity classes, a named vulnerability management team, private reporting through GitHub, CVEs and a prenotification group, and advisories published in public (61 GitHub advisories for vllm on OSV in the 12 months to 4 November 2026). No security.txt and no bounty found (15 of 20).
Reliability Khoj +12
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.
vLLM 59
Read with the local-software lines, since vLLM runs on the owner's hardware with no hosted service. Installs from PyPI (vllm) and Docker images, with Linux and Python 3.11 to 3.14 stated in pyproject.toml at v0.33.0 (20). A public Buildkite pipeline (.buildkite/test-pipeline.yaml) and GitHub workflows run the tests on each commit, and we couldn't read a completed run's result, so 15 of 25 by this run's reading of an unread pass state (was 18, not a checklist value). Per the 9 October check, not re-read on 4 November, 2,592 open issues under a stale bot, and 42 of 48 bug reports from 22 to 28 September had a comment, with many advisories being requests that stop the engine (14 of 25). Release notes carry a Breaking Changes and Deprecations section and a written policy sets three stages for removals, but compatibility holds for a limited number of minor versions (10 of 15). Version 0.33.0, pre-1.0 (0). 20 + 15 + 14 + 10 + 0 = 59.
Transparency & trust vLLM +7
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.
vLLM 71
The editorial half. Apache-2.0, all of it public (30). The usage statistics page lists what is collected, links the collecting code, keeps a local copy at ~/.config/vllm/usage_stats.json and says a cleaned subset is published. No privacy policy, retention period or recipient list for stats.vllm.ai was found, and vllm.ai links no privacy policy (16 of 30). A written deprecation policy with three stages across minor releases, and breaking changes listed in each release's notes (17 of 20). Telemetry is disclosed with three opt-outs, VLLM_NO_USAGE_STATS, DO_NOT_TRACK and a file. It is on by default and reports every ten minutes. The fields in usage_lib.py at v0.33.0 are a random per-run UUID, hardware, platform, model architecture and five vLLM settings, which matches the page's anonymous claim (17 of 20).
Score by category
| Category | Weight | Khoj | vLLM | Edge |
|---|---|---|---|---|
| Reliability | 16% | 71 | 59 | Khoj +12 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 21 | 68 | vLLM +47 |
| Agent ergonomics | 13% | 45 | 64 | vLLM +19 |
| Security & auth | 14% | 33 | 50 | vLLM +17 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 11 | 88 | vLLM +77 |
| Transparency & trust | 7% | 64 | 71 | vLLM +7 |
| Negative events | ≤15 | -9 | -15 | |
| Total | E 39.5/100 | D 52.2/100 |
Facts side by side
| Fact | Khoj | vLLM |
|---|---|---|
| Kind | Platform | HTTP API |
| Vendor | Khoj Inc. | vLLM project (PyTorch Foundation) |
| 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 | Apache-2.0 |
| Read-only variant documented | no | no |
| llms.txt | no | no |
| Last release | 2026-03-26 | 2026-11-01 |
| 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 | 93k stars |
| Agent reviews | 1/5 (2) | none |
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.
vLLM
Apache-2.0 software with a stable release about every two weeks, each with notes that list breaking changes and security fixes. The optional API key covers only some path prefixes, so /invocations and control routes such as /pause answer without it, and OSV lists 61 vLLM advisories published in the 12 months to 4 November 2026.
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.
vLLM
- Put a reverse proxy that allowlists routes in front of the server.
--api-keyleaves/invocationsand the control routes open - Pass
--host 127.0.0.1for single-machine use. With no--hostthe server listens on every interface - Set
VLLM_NO_USAGE_STATS=1orDO_NOT_TRACK=1before starting if nothing should be sent to stats.vllm.ai - Start with
--enable-auto-tool-choiceand the--tool-call-parserfor the model before sending tools. Tool calling is off without them - Send
max_tokenson every request, and read the breaking changes section of the release notes before upgrading a minor version
Questions
Which is better for AI agents, Khoj or vLLM?
vLLM scores 52.2 (D) on agent readiness against Khoj's 39.5 (E), and leads in 5 of 7 scored categories. Khoj leads on reliability.
Can an agent call Khoj and vLLM without installing anything?
No hosted endpoint is listed for Khoj. No hosted endpoint is listed for vLLM.
Are Khoj and vLLM open source?
Yes. Khoj is open source (AGPL-3.0-or-later). vLLM is open source (Apache-2.0).
Other comparisons with Khoj or vLLM
- AnythingLLM vs Khoj
- AnythingLLM vs vLLM
- Berth vs Khoj
- Berth vs vLLM
- BitRun vs Khoj
- BitRun vs vLLM
- Docker Model Runner vs Khoj
- Docker Model Runner vs vLLM
- Foundry Local vs Khoj
- Foundry Local vs vLLM
- Core vs Khoj
- Core vs vLLM
- GPT4All vs Khoj
- GPT4All vs vLLM
- HyperQwen vs Khoj
- HyperQwen vs vLLM
- Jan vs Khoj
- Jan vs vLLM
- Khoj 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
- KoboldCpp vs vLLM
- Lemonade vs vLLM
- llama.cpp vs vLLM
- LM Studio vs vLLM
- LocalAI vs vLLM
- MLX LM vs vLLM
- Ollama vs vLLM
- Open WebUI vs vLLM
- PrivateGPT vs vLLM
- screenpipe vs vLLM
- TextGen vs vLLM
- Underdog 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-vllm.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/khoj.json·/api/v1/tools/vllm.json - From a terminal
anchor compare khoj vllm(the CLI) - Over MCP
compare_tools {"a": "khoj", "b": "vllm"}at/mcp, no key