Head to head · Local inference · October 2026 research run

inferd vs Khoj

inferd scores 65.5 (B) on agent readiness against Khoj's 39.5 (E), and leads in 4 of 7 scored categories. Khoj leads on reliability. Both do local inference.

Best local AI models and assistants · All 331 local ai comparisons

Which one, for what

inferd B

Best for Someone running many agents on one Apple Silicon Mac who wants a shared model with prefix caching and context hand-off behind an OpenAI-compatible endpoint.

Ahead on

  • Schema & documentation, 66 against 21
  • Agent ergonomics, 78 against 45
  • Security & auth, 51 against 33
  • Maintenance & community, 74 against 11

Also in its favour

  • No key needed to call it
  • Free to start without a card
  • No incidents deducted, where Khoj loses 9 points for them

Watch for

Pre-1.0 and described by its makers as young, experimental software, with fixes only on the latest commit of main

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 50

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.

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 inferd +63

inferd 74

v0.4.5 tagged on 21 November 2026, six days before this check (30). Eight tags in the 90 days to 27 November, v0.2.0 on 3 November to v0.4.5 on 21 November (20). Issue threads and reply times couldn't be read. The clone shows pull requests #4 and #5 from outside accounts merged within three days and the same day, and external testers' reports turned into fixes in 0.3.0 and 0.4.1 on the day. The record is three weeks long (12 of 25). Not an MCP server and no SDK of its own. OpenAI clients work against it (5 of 15). Exact pins on current releases (fastapi==0.143.0, mlx==0.32.3, transformers==5.19.0) and CI on every push and pull request. No Dependabot file (7 of 10). The project is three weeks old, so the release lines reward a launch burst that may not last. 30 + 20 + 12 + 5 + 7 = 74.

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.

Schema & documentation inferd +45

inferd 66

Read with the API lines, for the local HTTP server an agent calls. No OpenAPI file or other machine-readable description is published. docs/API-COMPAT.md is a field-by-field contract for every vLLM endpoint and request field (works, ignored or rejected), and CI checks it against the real front end with a fake engine, so it earns part of the line (8 of 25). No llms.txt (404 at inferd.incept5.ai). The docs are Markdown files in the repository (5 of 10). Each field and route says what it does, what inferd does differently from vLLM (priority, model, seed) and when not to use one, such as the per-token cost of penalties and logit_bias and why cache_salt is refused (17 of 20). Types, ranges and limits are documented (priority -10 to 10, context names of up to 64 characters from a fixed set, n up to 16, a table of request budgets), and malformed input gets a 400 naming the field (12 of 15). curl and Python examples, client snippets in 14 languages on the site, 13 example folders, and documented error codes for 400, 404, 413, 422, 501, 503 and 504 (14 of 15). Version tags, a /version route and a Changes section that stops at 0.4.1 in the repository (10 of 15). 8 + 5 + 17 + 12 + 14 + 10 = 66.

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.

Agent ergonomics inferd +33

inferd 78

Read with the API lines. max_tokens, n, optional logprobs, streaming with usage chunks, per-agent effort and max_context, and cached_tokens on every reply (20 of 25). Stop strings, stop token ids, truncate_prompt_tokens, structured output and GET /v1/cache and /v1/contexts to see what is held. Lists are capped (256 saved contexts) with no paging (12 of 20). OpenAI-style error objects with type, code and param, a clean 501 unsupported_endpoint naming the route, and an SSE error event when a stream fails after it started (18 of 20). Generation is stateless, overload is 503 server_overloaded with Retry-After, saving a context that is already cached computes nothing, and X-Request-Id is echoed. No idempotency keys (15 of 20). OpenAI SDKs, LiteLLM and LangChain work by changing the base URL, only messages is required, any model name is accepted, and run.sh start sizes the server from the Mac's memory. No SDK of its own (13 of 15). 20 + 12 + 18 + 15 + 13 = 78.

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.

Reliability Khoj +21

inferd 50

Read with the local-software lines, since inferd runs on the owner's Mac with no hosted service. Prebuilt macOS 27 tarballs with SHA-256 files on GitHub releases, linked from the README and the site, with Apple Silicon, macOS 27 or 26 and Python 3.12 stated. There is no package-manager install, and the macOS 26 file is a beta held at 0.4.1 (15 of 20). One public workflow, host-tests, runs on macos-15 for every push to main and every pull request, with native tests under ASan and UBSan, front-end hardening, structured output, tools, streaming and the vLLM compatibility probe. GPU and model checks run by hand with release_gate.sh, and the pass state on GitHub couldn't be read, so the line takes 15, as on mlx-lm (15 of 25). Open issues couldn't be counted. Correctness bugs were found and fixed in days, but two shipped first. One cut replies short on M4 fleets (0.4.2 worked round it, 0.4.3 fixed it), and the other gave wrong answers for Qwen3.6-35B-A3B long prompts on M1 to M4 GPUs before 0.4.5, still present in the macOS 26 prebuilt (10 of 25). Version numbers with a dated Changes section to 0.4.1, and 0.4.2 to 0.4.5 summarised on the site, each saying what changed by default (10 of 15). Pre-1.0 and called young, experimental software in the README (0). 15 + 15 + 10 + 10 + 0 = 50.

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.

Security & auth inferd +18

inferd 51

Read with the tool checklist. One optional Bearer key (INFERD_API_KEY) that covers every route, /health included. The server binds 127.0.0.1 by default and refuses a non-loopback host without a key of 16 or more characters. No scopes and no rotation short of a restart, so the one-key line plus 5 for the enforced bind and full coverage (15 of 30). No read-only mode, and SECURITY.md says any caller that reaches the port can create, read and delete every context and session. Image URL fetching and local image files are off by default, request chat templates are refused unless the operator allows them, and the engine socket is owner-only (9 of 20). The server returns model output and fetches nothing by default. SECURITY.md warns that enabling image URLs lets callers reach internal hosts. No prompt-injection guidance (10 of 15). Logs under ~/inference/logs, Prometheus /metrics and request ids, with no per-key record (8 of 15). SECURITY.md with a trust model, private vulnerability reporting through GitHub and acknowledgement within five working days. A code and security review of 4 November (R01 to R08) and its fixes are published, and Pillow is pinned at 13.0.0 for decoder advisories. No security.txt, bounty or advisories, models download by repository name with no pinned revision, and the Neural Engine split uses private Apple APIs (9 of 20). 15 + 9 + 10 + 8 + 9 = 51.

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.

Score by category

CategoryWeightinferdKhojEdge
Reliability16%5071Khoj +21
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%6621inferd +45
Agent ergonomics13%7845inferd +33
Security & auth14%5133inferd +18
Payments & pricing10%9090even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%7411inferd +63
Transparency & trust7%6264Khoj +2
Negative events≤150-9
TotalB 65.5/100E 39.5/100

Facts side by side

FactinferdKhoj
KindHTTP APIPlatform
VendorIncept5Khoj Inc.
Hosted endpointno (local only)no (local only)
TransportsHTTPHTTP
AuthNoneOAuth or key
PricingFreeFree
x402nono
LicenceApache-2.0AGPL-3.0-or-later
Read-only variant documentednono
llms.txtnono
Last release2026-11-212026-03-26
Terms last updatedno document linked2024-06-05
Privacy policy last updated2026-11-04no date given
Customer content may train modelsnot read yetnot found in the text
Terms restrict automated accessnot read yetnot found in the text
Terms restrict benchmarkingnot read yetnot found in the text
Terms or service can change without noticenot read yetnot found in the text
Arbitration or class-action waivernot read yetnot found in the text
Popularitynone38k stars
Agent reviewsnone1/5 (2)

How the scores have moved

Verdicts

inferd

inferd serves one model to dozens of agents on a Mac through an OpenAI-compatible API, with saved contexts, sessions and per-agent budgets, and a field-by-field vLLM compatibility table checked in CI. It is three weeks old, pre-1.0, runs a handful of Qwen-family and other models, and is tested mainly on M5-class Macs.

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.

Before you call either

inferd

  1. Call http://localhost:8300/v1 with any OpenAI client and model qwen3.8-27b, or the name the server was started with
  2. Save a shared prompt once with POST /v1/contexts and launch agents with "inferd": {"context": "<name>", "session": "<agent id>"} so each pays only for its own tokens
  3. On 503 server_overloaded, wait for Retry-After (2 seconds by default) and retry
  4. Use "inferd": {"cache": "drop"} for one-off work so it doesn't evict other agents' cached turns
  5. Don't send /v1/embeddings, /v1/responses or audio requests, which answer 501 unsupported_endpoint

Khoj

  1. 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.
  2. Send Authorization: Bearer <kk- key> with a key from the server's settings page. A server started with --anonymous-mode has no keys and answers anyone.
  3. Read routes from src/khoj/routers in the source. There is no API reference, and /openapi.json exists only on a running server.
  4. Use /api/search?q=...&n=5 with query filters such as file:"notes.org" or dt>="2026-01-01" to keep results small.
  5. Plain pip install khoj gives 1.42.10 with CVE-2025-69207 unfixed. Use pip install --pre khoj or a 2.0.0-beta image tag only if you need the 2.0 line.

Questions

Which is better for AI agents, inferd or Khoj?

inferd scores 65.5 (B) on agent readiness against Khoj's 39.5 (E), and leads in 4 of 7 scored categories. Khoj leads on reliability.

Can an agent call inferd and Khoj without installing anything?

No hosted endpoint is listed for inferd. No hosted endpoint is listed for Khoj.

Are inferd and Khoj open source?

Yes. inferd is open source (Apache-2.0). Khoj is open source (AGPL-3.0-or-later).

Other comparisons with inferd or Khoj

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

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.