Skip to content

Hjarni vs Khoj

Khoj is open-source and self-hosted. Hjarni is hosted and ready to go.

Free to start. No credit card required.

Quick answer

Khoj is an open-source AI assistant you can self-host with a local or online model. Its hosted Cloud service closed on April 15, 2026. Hjarni is a managed Markdown knowledge base with an official hosted MCP server for external assistants. Choose Khoj for control of the assistant, infrastructure, and indexed sources; choose Hjarni for hosted notes, folder instructions, and shared team knowledge.

Facts checked October 20, 2026 against Khoj’s Cloud closure notice, official repository, self-hosting documentation, MCP client implementation. Connection availability also depends on your AI client and permissions.

Swipe the table sideways to compare →

Hjarni and Khoj feature comparison
Feature Hjarni Khoj
Product
Knowledge base for connected assistants Configurable AI assistant
Hosting
Managed hosted service Self-hosted open-source project
Open source
✕ ✓
Official MCP server
Official, hosted (OAuth) No server setup documented in reviewed guides
Knowledge workflow
Write and update Markdown notes Index files and connected sources
Custom instructions
Per-folder AI guidance Custom agent persona and knowledge
Shared team knowledge
Shared folders and roles Deployment-dependent
Voice and image generation
✕ ✓
Free access
25 personal notes; full MCP Free to self-host
Portability
Markdown ZIP and REST API Original files plus self-hosted code
Details behind the comparison
Product
Khoj can run with local or online models. It is not limited to a single bundled AI model.
Hosting
Khoj’s hosted Cloud service shut down on April 15, 2026. The self-hostable project remains available.
Open source
Khoj publishes its server code under AGPL-3.0. Hjarni is a managed proprietary service.
Official MCP server
Khoj’s MCP client capability lets its assistant use other tools. That does not establish a supported MCP server for external assistants to query Khoj.
Knowledge workflow
Khoj can use Markdown, PDFs, documents, and Notion content. Hjarni maintains its own notes in folders and tags.
Custom instructions
Both can guide AI behavior, through different structures. Instructions do not guarantee tool use or correct output.
Shared team knowledge
Hjarni provides a managed team model. Check the capabilities and access controls of the Khoj version you deploy rather than assuming it is personal-only.
Voice and image generation
Khoj documents voice interaction and image generation. Hjarni does not bundle a model for these tasks.
Free access
Khoj’s source is free, but infrastructure and any paid model provider can cost money. Hjarni’s AI client costs are separate too.
Portability
Khoj indexes files you provide; retaining those source files is a portability strength. Hjarni exports active notes and attachments, not every application setting or revision.

Hjarni has its own native apps. Free on every plan for iPhone, iPad and Mac and Android. Same account, same notes as the web. An internet connection is required.

Different things to operate

Khoj’s Cloud closure is confirmed by its current hosted endpoint. Some older docs and repository text still link to a cloud trial, so use the closure notice when deciding whether a hosted signup is available.

The open-source project remains self-hostable. You choose the server, model, and data sources. Hjarni runs the knowledge base for you, while your connected assistant supplies the model and reasoning.

Model choice is available in both approaches

Khoj supports configurable local and online models rather than one fixed AI. It can search files and connected sources, provide web research, and use custom agents. Running a local model can keep more processing under your control; online providers introduce their own terms and costs.

Hjarni connects the assistant you already use through an official MCP endpoint. That is different from operating an assistant server, but model choice alone is not exclusive to Hjarni.

MCP client and MCP server are different roles

Khoj can connect its assistant to external MCP tools. The documentation reviewed for this comparison does not provide a supported server connection for outside assistants to search Khoj itself. Do not infer server support from a feature named MCP.

Hjarni documents a hosted server that clients can call to search, read, create, and update notes. OAuth uses your account's permissions by default; at sign-in or in Settings > Connections, you can limit access to selected folders, make it read-only, or both. See the folder-access walkthrough. Manually created agent tokens provide folder and read/write controls for compatible clients.

Keep the sources and check an export

Khoj’s local files and open-source code give you options for operating and migrating it yourself. Hjarni offers Markdown export for active notes and attachments. Neither choice guarantees that another app will recreate every setting, permission, relationship, or previous revision.

When each fits

Choose Khoj if self-hosting, local models, custom agents, and indexing existing files are the priorities. Choose Hjarni if you want a managed note library with nested folders, shared team roles, and instructions for connected assistants. Both still require setup and permission decisions; Hjarni removes server administration rather than all setup.

When to use Khoj

  • You want to run an open-source assistant on your own infrastructure
  • You want configurable local or online models
  • You want to index existing files and supported connected sources

When to use Hjarni

  • You want a managed knowledge base and hosted MCP endpoint
  • You want Markdown folders with AI instructions
  • You want shared team folders and roles

Khoj gives you the stack. Hjarni gives you the shortcut.

Give your AI a memory

Common questions

Common questions

What is Khoj?

An open-source AI assistant and retrieval system. Its documented configuration supports local or online model providers; it is not limited to one fixed bundled model. See official documentation.

Is Khoj Cloud still available?

Khoj’s hosted Cloud closed in April 2026. Its open-source self-hosted project remains a different option. Check the project’s current setup guidance before planning a deployment.

Can I self-host Hjarni?

No. Hjarni is a hosted service with official MCP and REST access. Khoj’s self-hosted setup is appropriate when you want to operate the stack yourself.

How can I avoid lock-in?

Keep source files and backups, and verify exports. Hjarni exports active notes and attachments as Markdown, while revision history and folder instructions are not part of its standard ZIP. No hosted product can promise permanent availability.

Start here

Write once. You both remember.

25 notes free, forever. No credit card required.

5 out of 5 from 14 reviews 14,700+ notes a day read or updated by AI

Works with Claude, ChatGPT, Cursor and any MCP client.