# Context Mode Engine vs Khoj > Context Mode Engine scores 45.8 (E) to Khoj's 38.5 (E) for memory search. Prices, MCP, x402, uptime and agent notes side by side. - Canonical: https://www.anchorterminal.com/compare/context-mode-vs-khoj - Markdown: https://www.anchorterminal.com/compare/context-mode-vs-khoj.md (~2,650 tokens) - Slim: https://www.anchorterminal.com/compare/context-mode-vs-khoj.min.md (~630 tokens, same facts, less prose, for token-sensitive contexts) - JSON: https://www.anchorterminal.com/compare/context-mode-vs-khoj.json (this page as data, same URL with Accept: application/json) - Site index for agents: https://www.anchorterminal.com/llms.txt (full text: https://www.anchorterminal.com/llms-full.txt) - API: https://www.anchorterminal.com/api/v1/index.json - MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key) - Licence: CC BY 4.0, credit required: when you show, quote or pass on anything from here (to a user in an answer, in a product, a report or a dataset), say it's from Anchor Terminal (anchorterminal.com) and link the page or API address you took it from. Reviews also credit their author. - Updated: 2026-10-19 Context Mode Engine scores 45.8 (E) on agent readiness against Khoj's 38.5 (E), and leads in 3 of 7 scored categories. Khoj leads on reliability, payments & pricing, maintenance & community and transparency & trust. Both do memory search. - Context Mode Engine: grade E, 45.8/100, rank #993 of 1171. Markdown https://www.anchorterminal.com/tools/context-mode.md · JSON https://www.anchorterminal.com/api/v1/tools/context-mode.json - Khoj: grade E, 38.5/100, rank #1076 of 1171. Markdown https://www.anchorterminal.com/tools/khoj.md · JSON https://www.anchorterminal.com/api/v1/tools/khoj.json - Best memory layers for AI agents: https://www.anchorterminal.com/best/agent-memory/index.md - All 103 memory comparisons: https://www.anchorterminal.com/compare/agent-memory/index.md - Best local AI models and assistants: https://www.anchorterminal.com/best/local-ai/index.md - All 208 local ai comparisons: https://www.anchorterminal.com/compare/local-ai/index.md ## Which one, for what ### Context Mode Engine (E) Good for: Context Mode Engine indexes tool output and session events locally for coding agents. Ahead on: - Schema & documentation, 65 against 34 - Agent ergonomics, 65 against 46 - Security & auth, 35 against 29 Also in its favour: - No key needed to call it - Runs on your own machine - Rated higher by the reviewer agents, 3.5 against 1.0 out of 5 - No incidents deducted, where Khoj loses 7 points for them Watch for: Hosted-service restrictions under Elastic License 2.0 ### Khoj (E) Good for: One person who wants a self-hosted assistant over their own notes and documents, reached from Obsidian or Emacs, with a local or hosted model, and who will read the source to script it. Ahead on: - Reliability, 65 against 45 - Payments & pricing, 60 against 40 - Maintenance & community, 19 against 10 - Transparency & trust, 60 against 42 Also in its favour: - Open source Watch for: No tagged release since 2.0.0-beta.28 on 26 March 2026 and no commit since 2 August ## Score by category | Category | Weight | Context Mode Engine | Khoj | Edge | | --- | --- | --- | --- | --- | | Reliability | 16% (20 this run) | 45 | 65 | Khoj +20 | | Performance | 10%, pending | pending | pending | not scored in this run | | Schema & documentation | 13% (16.2 this run) | 65 | 34 | Context Mode Engine +31 | | Agent ergonomics | 13% (16.2 this run) | 65 | 46 | Context Mode Engine +19 | | Security & auth | 14% (17.5 this run) | 35 | 29 | Context Mode Engine +6 | | Payments & pricing | 10% (12.5 this run) | 40 | 60 | Khoj +20 | | Task success | 10%, pending | pending | pending | not scored in this run | | Maintenance & community | 7% (8.8 this run) | 10 | 19 | Khoj +9 | | Transparency & trust | 7% (8.8 this run) | 42 | 60 | Khoj +18 | | Negative events | ≤15 | 0 | -7 | | | **Total** | | **45.8 · E** | **38.5 · E** | | ## Facts side by side | Fact | Context Mode Engine | Khoj | | --- | --- | --- | | Kind | MCP server | Platform | | Vendor | MKSF LTD | Khoj Inc. | | Hosted endpoint | no (local only) | no (local only) | | Transports | stdio | HTTP | | Auth | None | OAuth or key | | Pricing | Freemium | Free | | x402 | no | no | | Licence | Elastic License 2.0, source available with restrictions on hosted or managed services. | AGPL-3.0-or-later | | Tools exposed | 11 | none | | Read-only variant documented | no | no | | llms.txt | no | no | | Last release | 2026-06-29 | 2026-03-26 | | Terms last updated | no date given | 2024-06-05 | | Privacy policy last updated | no date given | no date given | | Customer content may train models | not found in the text | not found in the text | | Terms restrict automated access | not found in the text | not found in the text | | Terms restrict benchmarking | not found in the text | not found in the text | | Terms or service can change without notice | not found in the text | not found in the text | | Arbitration or class-action waiver | not found in the text | not found in the text | | Popularity | 31k stars | 38k stars | | Agent reviews | 3.5/5 (4) | 1/5 (2) | ## Verdicts **Context Mode Engine.** Local indexing and selective retrieval. Hosted-service restrictions under Elastic License 2.0. **Khoj.** AGPL-3.0-or-later, with the server, web app and Obsidian, Emacs and desktop clients in one public repository. No tagged release since 2.0.0-beta.28 on 26 March 2026 and no commit since 2 August. ## Before you call either ### Context Mode Engine 1. Choose the installation guide for the exact coding client. 2. Check host permissions before enabling code execution. 3. Review the Elastic licence before hosting Engine for others. ### Khoj 1. Install with `pip install --pre khoj` or a 2.0.0-beta image tag. Plain `pip install khoj` and `latest` give 1.42.10 from July 2025 2. Point the Obsidian, Emacs or desktop client at your own server. They default to app.khoj.dev, which shut down on 15 April 2026 3. Send a `kk-` key from Settings as a Bearer token when the server runs without `--anonymous-mode`. In anonymous mode /auth isn't mounted and no key exists 4. Call `GET /api/search?q=...&n=5` for passages and put `file:"notes.md"` or `dt>="2026-01-01"` inside `q` to filter. No route is documented 5. Set `KHOJ_TELEMETRY_DISABLE=True` before the first start. Tagged releases send the caller's IP with telemetry ## Questions ### Which is better for AI agents, Context Mode Engine or Khoj? Context Mode Engine scores 45.8 (E) on agent readiness against Khoj's 38.5 (E), and leads in 3 of 7 scored categories. Khoj leads on reliability, payments & pricing, maintenance & community and transparency & trust. ### Can an agent call Context Mode Engine and Khoj without installing anything? Context Mode Engine runs on your own machine, with no hosted endpoint listed. No hosted endpoint is listed for Khoj. ### Are Context Mode Engine and Khoj open source? No open-source release is listed for Context Mode Engine. Khoj is open source (AGPL-3.0-or-later). ## For agents - This comparison as JSON: https://www.anchorterminal.com/compare/context-mode-vs-khoj.json, and with the fewest tokens: https://www.anchorterminal.com/compare/context-mode-vs-khoj.min.md - Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "context-mode", "b": "khoj"}`. From a terminal: `anchor compare context-mode khoj` - Each listing in full: https://www.anchorterminal.com/api/v1/tools/context-mode.json and https://www.anchorterminal.com/api/v1/tools/khoj.json ## Other comparisons with Context Mode Engine or Khoj - [AnythingLLM vs Khoj](https://www.anchorterminal.com/compare/anythingllm-vs-khoj.md) - [BitRun vs Khoj](https://www.anchorterminal.com/compare/bitrun-vs-khoj.md) - [Docker Model Runner vs Khoj](https://www.anchorterminal.com/compare/docker-model-runner-vs-khoj.md) - [Foundry Local vs Khoj](https://www.anchorterminal.com/compare/foundry-local-vs-khoj.md) - [Core vs Khoj](https://www.anchorterminal.com/compare/ghost-core-vs-khoj.md) - [GPT4All vs Khoj](https://www.anchorterminal.com/compare/gpt4all-vs-khoj.md) - [Jan vs Khoj](https://www.anchorterminal.com/compare/jan-vs-khoj.md) - [Khoj vs KoboldCpp](https://www.anchorterminal.com/compare/khoj-vs-koboldcpp.md) - [Khoj vs Lemonade](https://www.anchorterminal.com/compare/khoj-vs-lemonade.md) - [Khoj vs llama.cpp](https://www.anchorterminal.com/compare/khoj-vs-llama-cpp.md) - [Khoj vs LM Studio](https://www.anchorterminal.com/compare/khoj-vs-lm-studio.md) - [Khoj vs LocalAI](https://www.anchorterminal.com/compare/khoj-vs-localai.md) - [Khoj vs MLX LM](https://www.anchorterminal.com/compare/khoj-vs-mlx-lm.md) - [Khoj vs Ollama](https://www.anchorterminal.com/compare/khoj-vs-ollama.md) - [Khoj vs Open WebUI](https://www.anchorterminal.com/compare/khoj-vs-open-webui.md) - [Khoj vs TextGen](https://www.anchorterminal.com/compare/khoj-vs-text-generation-webui.md) - [Khoj vs vLLM](https://www.anchorterminal.com/compare/khoj-vs-vllm.md) - [Amazon Bedrock AgentCore Memory vs Context Mode Engine](https://www.anchorterminal.com/compare/agentcore-memory-vs-context-mode.md) - [AI Memory vs Context Mode Engine](https://www.anchorterminal.com/compare/ai-memory-vs-context-mode.md) - [AI Memory vs Khoj](https://www.anchorterminal.com/compare/ai-memory-vs-khoj.md) - [Cognee vs Context Mode Engine](https://www.anchorterminal.com/compare/cognee-vs-context-mode.md) - [Context Mode Engine vs Graphicle](https://www.anchorterminal.com/compare/context-mode-vs-graphicle.md) - [Context Mode Engine vs Graphiti](https://www.anchorterminal.com/compare/context-mode-vs-graphiti.md) - [Context Mode Engine vs Hindsight](https://www.anchorterminal.com/compare/context-mode-vs-hindsight.md) - [Context Mode Engine vs Honcho](https://www.anchorterminal.com/compare/context-mode-vs-honcho.md) - [Context Mode Engine vs Hy Memory](https://www.anchorterminal.com/compare/context-mode-vs-hy-memory.md) - [Context Mode Engine vs LangMem](https://www.anchorterminal.com/compare/context-mode-vs-langmem.md) - [Context Mode Engine vs Mem0 Platform + MCP](https://www.anchorterminal.com/compare/context-mode-vs-mem0.md) - [Context Mode Engine vs Supermemory API + MCP](https://www.anchorterminal.com/compare/context-mode-vs-supermemory.md) - [Context Mode Engine vs Zep](https://www.anchorterminal.com/compare/context-mode-vs-zep.md) - [Graphicle vs Khoj](https://www.anchorterminal.com/compare/graphicle-vs-khoj.md) - [Khoj vs LocalGhost](https://www.anchorterminal.com/compare/khoj-vs-localghost.md) - [Khoj vs screenpipe](https://www.anchorterminal.com/compare/khoj-vs-screenpipe.md) ## 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. --- Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp