Khoj
Open-source, self-hosted personal AI over your own documents, with custom agents, scheduled research automations and local model support. Hosted cloud sunset April 2026.
Khoj is an open-source personal AI, often described as a self-hostable second brain. It lets a person chat with any local or online LLM, get grounded answers from the web and from their own documents (PDFs, Markdown, Notion, Word, org-mode, and more), and reach it from the browser, desktop, phone, Obsidian, Emacs, or WhatsApp.
Beyond retrieval and semantic search, Khoj is genuinely agentic: users can build custom agents with their own knowledge, persona, chat model, and tools, schedule automations for recurring research and notifications, run an autonomous deep-research mode, and execute code in a sandbox. It is model-agnostic across providers such as GPT, Claude, Gemini, Llama, Qwen, and Mistral.
Importantly, the product's footprint has changed. Khoj Cloud, the hosted service at app.khoj.dev, was sunset on April 15, 2026. The project itself remains fully open-source under the AGPL-3.0 license and self-hostable, with active development continuing on GitHub. The team behind it, Khoj AI (a Y Combinator company), has shifted its focus to two newer products: Pipali, an open-source AI coworker that runs locally and can read and write files, use the browser, run code in a sandbox, and integrate with tools like Jira, Linear, and Slack over MCP; and Open Paper, a research assistant for literature review.
For teams evaluating it today, Khoj is best understood as a mature, self-hostable open-source personal-AI project rather than a managed cloud service, with the company's newest energy going into Pipali and Open Paper.
Vendor details
Canonical URL
https://khoj.dev
Category
Agent builder
Subcategory
Self-hosted personal AI over your own documents, with custom agents and scheduled research
Funding status
Independent. Khoj AI is a Y Combinator company (W24). The khoj project is AGPL-3.0 open source at roughly 36,700 stars and 2,400 forks, with commits continuing into August 2026. Khoj Cloud, the hosted service, was sunset on 15 April 2026 and the company's active development has shifted to two newer products, Pipali and Open Paper.
Company status
independent
Use cases & customers
Primary use cases
Deployment options
Integrations
Khoj indexes the customer's own documents across PDF, Markdown, org-mode, Word, Notion files and images, with local files and folders kept continuously synced by the desktop, Obsidian and Emacs clients and a Notion workspace synced from the web app. Agents are given tools including web search and a Python code-execution sandbox. Chat models are configured per provider through an AI Model Api object covering OpenAI, Anthropic and Gemini, plus offline and local models through any OpenAI-compatible server including Ollama, vLLM, LMStudio and llama-cpp-server, with separate Default and Advanced model settings governing intermediate steps such as intent detection and web search. Client surfaces are the web app, desktop, Obsidian, Emacs, phone and WhatsApp, with delivery of scheduled research and notifications to email. There is no catalog of third-party application connectors for acting on external systems, and no API reference section appears in the documentation.
In practice
You want to ask questions across your own notes and documents without handing them to a cloud vendor. Khoj runs self-hosted and gives grounded answers from your PDFs, Markdown, and Notion alongside the web.
Your assistant only lives in one app. Khoj reaches you from the browser, desktop, phone, Obsidian, Emacs, or WhatsApp, and you can build custom agents with their own knowledge and tools.
You have recurring research you keep doing by hand. Khoj schedules automations for repeat research and notifications and can run an autonomous deep-research mode over your sources.
Sources & related URLs
Related / legacy domains
Agentic Index coverage score
7.5 / 14 capabilities · 54%
| Integrations & Tool Calling | Partial |
|---|---|
|
Agents are documented as configurable with tools including web search and a code execution sandbox. Document ingestion covers local files and folders synced through desktop, Obsidian and Emacs clients, a Notion workspace synced from the web app, and direct upload, across PDF, Markdown, org-mode, Word, Notion and image formats, with a dedicated Data Sources documentation section. No catalog of third party application connectors for CRM, ticketing, messaging, warehouse or calendar systems is documented, and neither is Model Context Protocol tool support. Sourcedocs.khoj.dev setup sync-your-knowledge, and clients documentation, github.com/khoj-ai/khoj READMEread 2026-08-31 |
|
| Workflow Orchestration | Partial |
|
Users can create agents with custom knowledge, persona, chat model and tools to take on any role, schedule automations for repetitive research, and run an autonomous deep research mode that plans, browses and synthesizes results. Intermediate steps including intent detection and web search are model-driven and separately configurable through ServerChatSettings Default and Advanced model fields. A code execution sandbox runs Python as part of a task. No multi-agent coordination, agent-to-agent delegation, conditional branching or subworkflow abstraction is documented. Sourcegithub.com/khoj-ai/khoj README, docs.khoj.dev setup and navigationread 2026-08-31 |
|
| Knowledge Grounding & RAG | Full |
|
Khoj indexes the customer's own documents including PDF, Markdown, org-mode, Word, Notion files and images, with semantic search over them and verifiable citations returned with answers. The desktop, Obsidian and Emacs clients keep local files and folders synced to the server, a Notion workspace syncs directly from the web app, and files can be uploaded directly in the web app. The index is held in the customer's own Postgres database on their self-hosted instance, and can be queried using local models via Ollama, vLLM or LMStudio so no data leaves the machine. Sourcedocs.khoj.dev setup sync-your-knowledge and documentation, github.com/khoj-ai/khoj READMEread 2026-08-31 |
|
| Human Oversight & Guardrails | Partial |
|
Agent code executes inside a sandboxed environment, answers return verifiable citations allowing a user to check sources before acting, and the assistant's search scope can be constrained to reduce fabrication. An administrative panel is gated behind credentials created at first run, and anonymous mode which bypasses login is documented as a deliberate opt-in for local single-user installs. No approval gate, checkpoint, pause for human review, per tool authorization or pending action queue is documented. Sourcedocs.khoj.dev setup and privacy documentation, github.com/khoj-ai/khoj READMEread 2026-08-31 |
|
| Security, Identity & Governance | Partial |
|
An admin panel is documented at the server admin path with an administrator account and password created during first run, alongside a separate authentication setup path and an explicit anonymous mode for local single-user installs that bypasses login. Deployment configuration covers allowed domains, HTTPS behavior and reverse-proxy trusted origins, and the documentation states Khoj is only accessible on the machine it runs on by default with remote access requiring deliberate configuration. A dedicated privacy page documents the data position, and the customer holds the database. No security certification, attestation, single sign-on or SCIM provisioning is documented, which is expected for a self-hosted open-source deployment where the operator owns the perimeter. Sourcedocs.khoj.dev setup, privacy and advanced authentication and remote documentationread 2026-08-31 |
|
| Observability & Auditability | Partial |
|
Answers return verifiable citations to the source documents they were grounded in. An administrative panel at the server admin path provides configuration review over the customer's own database, and server log output is described in the setup documentation with the customer holding the Postgres database directly. No agent execution trace, tool call record, run history view, audit log of user actions or analytics capability is documented. Sourcedocs.khoj.dev setup and privacy documentation, github.com/khoj-ai/khoj READMEread 2026-08-31 |
|
| Memory & State Persistence | Partial |
|
Agents are created with their own knowledge, and the document index plus conversation history persist in the customer's own Postgres database on their self-hosted instance, with desktop, Obsidian and Emacs clients keeping files and folders continuously synced. State therefore survives sessions, restarts and upgrades and is owned by the customer. No documented capability describes the agent updating its own knowledge or instructions from experience, carrying conclusions between conversations, or accumulating learned context over time. A pull request title in the project changelog references disabling memories for users, but the documentation describes no memories feature. Sourcegithub.com/khoj-ai/khoj README and changelog, docs.khoj.dev setup sync-your-knowledge documentationread 2026-08-31 |
|
| Deployment & Data Residency | Full |
|
Khoj is AGPL-3.0 open source and self-hosted, with documented installation via Docker, Docker Compose or pip on macOS, Windows through WSL2, and Linux, backed by the customer's own Postgres database or an embedded database option. Configuration covers domain, HTTPS, allowed hosts and reverse-proxy settings through environment variables, with separate remote access documentation and auto-start guidance via cron or Task Scheduler. The vendor states data never has to leave the customer's private network and that Khoj can be used without an internet connection when deployed on a personal computer. Khoj Cloud was sunset on 15 April 2026, leaving self-hosting as the only deployment route. Sourcedocs.khoj.dev setup, privacy and advanced remote documentation, app.khoj.dev sunset noticeread 2026-08-31 |
|
| Prebuilt Agents, Templates & Packs | Not documented |
|
Each agent is one the user creates, with custom knowledge, persona, chat model and tools, and the vendor links a blog post with a step by step guide to building custom agents. No template library, preset or prebuilt agent set, shareable agent format, community gallery or starter pack is published. Khoj Cloud, which hosted any shared agent surface, was sunset on 15 April 2026, so a new user begins from an empty self-hosted installation. Sourcegithub.com/khoj-ai/khoj README, docs.khoj.dev navigation, app.khoj.dev sunset noticeread 2026-08-31 |
|
| Triggers & Channel Coverage | Full |
|
The vendor documents Automations that schedule repeated jobs for Khoj to run a query automatically at a set time and frequency in the user's local time zone and email the research to the user, configurable, shareable and deletable from an automations page, with self-hosted installs needing Resend and authentication for the email. Clients are documented for web, desktop, Obsidian, Emacs and WhatsApp. No inbound webhook or external event trigger is documented. Sourcedocs.khoj.dev features/automations and clientsread 2026-09-29 |
|
| Model Flexibility & Routing | Full |
|
Chat models are configured per provider through an AI Model Api object holding the credential, with OpenAI, Anthropic and Gemini documented alongside offline and local models via any OpenAI-compatible server including Ollama, vLLM, LMStudio and llama-cpp-server by setting the API base URL. Individual chat models are registered with optional tokenizer and max-prompt-size fields and a per-model vision-enabled flag, and users select their preferred model in their own settings. ServerChatSettings holds separate Default and Advanced model choices used for intermediate steps such as intent detection and web search. Agents can be created with their own chat model. Sourcedocs.khoj.dev setup add-chat-models and advanced ollama and lmstudio documentation, github.com/khoj-ai/khoj READMEread 2026-08-31 |
|
| APIs, SDKs & MCP Extensibility | Partial |
|
The server, clients and docs are open source under AGPL-3.0 in one public repository, and the desktop, Obsidian, Emacs and WhatsApp clients talk to a self-hosted server over HTTP at a configurable URL, so the product can be read, modified and self-run. The documentation has no API reference, SDK or MCP server page, so no documented interface exists for a customer's own code to invoke Khoj agents or automations. Open source lets a customer change the product rather than call it. Sourcedocs.khoj.dev sitemap and github.com/khoj-ai/khojread 2026-09-29 |
|
| Testing, Debugging & Optimization | Not documented |
|
No testing, evaluation, scoring, benchmarking or regression capability is described in the documentation or the project README. No self-checking or verification gate on agent output is documented either. Verifiable citations let a human reader check an answer's sources after the fact. Sourcegithub.com/khoj-ai/khoj README, docs.khoj.dev navigation and setup documentationread 2026-08-31 |
|
| Browser & Computer Use | Not documented |
|
Khoj provides a code execution sandbox in which agents run Python, and web access through retrieval and semantic search over fetched content. No browser control, navigation, form filling or screen interaction is documented. Clients are documented for web, desktop, Obsidian, Emacs and WhatsApp, all of which are interfaces to Khoj rather than interfaces Khoj operates. Sourcedocs.khoj.dev setup and clients documentation, github.com/khoj-ai/khoj READMEread 2026-08-31 |
|
The Agentic Index coverage score grades every vendor Full, Partial or Not documented against the same 14 buyer facing capabilities, from public evidence only. Each capability links to how all vendors in the index score on it. How this evidence is graded
Pricing
Free and open source (self-host)
Related vendors
- Lindy — AI teammate that lives in Slack, answers from your tools and…
- Activepieces — Open source, MIT licensed automation platform where every one of 700…
- AgentX — No code platform to build, evaluate, and deploy multi agent…
- AI Library — No-code platform for building and running AI agents, with a…
- Aigensei — Enterprise agentic workflow platform that runs business processes…
- Airia — Enterprise platform that unifies agent orchestration, security, and…
Alternatives to Khoj
The closest documented capability profiles to Khoj among agent builders tracked by Agentic Index, ordered by similarity on the same 14 point evidence the rankings use. No vendor pays for placement.
- Aigensei8.0 / 14Adds documented Prebuilt Agents, Templates & Packs
- Imbue10.0 / 14Adds documented Prebuilt Agents, Templates & Packs and Testing, Debugging & OptimizationKhoj vs Imbue →
- Play9.0 / 14Adds documented Prebuilt Agents, Templates & Packs
- ReN36.0 / 14Fuller documented coverage on Human Oversight & Guardrails and Observability & Auditability
- StackBlitz Bolt10.0 / 14Adds documented Prebuilt Agents, Templates & Packs and Testing, Debugging & Optimization
- Activepieces11.5 / 14Adds documented Prebuilt Agents, Templates & Packs and Testing, Debugging & Optimization
Similarity is computed from each vendor's Agentic Index coverage score evidence, axis by axis, not from the totals. How this evidence is graded