// agents · khoj-ai/khoj

khoj

Your self-hostable AI second brain for answers, agents, and automations.

★ 37.6k stars⑂ 2.5k forksAGPL-3.0updated 2026-08
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

khoj is an open-source ai agents project by khoj-ai (khoj-ai/khoj on GitHub). It has 37,598 GitHub stars and 2,499 forks, is released under the AGPL-3.0 license, and was last updated on GitHub on 2 August 2026.

Repository
khoj-ai/khoj
GitHub stars
37,598
Forks
2,499
License
AGPL-3.0
Last updated on GitHub
2 August 2026
Category
AI Agents
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Clarify your goal

    Decide what you want the project to do before installing anything.

  2. Clone the repo

    Grab the source and skim the README for setup requirements.

  3. Install and configure

    Install dependencies and add any API keys or settings it needs.

  4. Run your first task

    Launch it and follow the example workflow from the docs.

// features

Why people love it

Second brain

Answers from your docs and notes.

Self-hostable

Run it on your own machine.

Any LLM

Online or local models, your choice.

Custom agents

Build agents on top of your knowledge.

Automations

Schedule recurring agent work.

Deep research

Web-grounded research workflows.

Advertisement
// run it

Run it yourself

  1. Step 1 - Clone the repo

    Download the source and move into the project folder.

    git clone https://github.com/khoj-ai/khoj.git
    cd khoj
  2. Step 2 - Install dependencies

    Create a virtual environment and install the requirements.

    python -m venv .venv && source .venv/bin/activate
    pip install -r requirements.txt
  3. Step 3 - Run an example

    Treat these as starting points - the README documents the exact commands.

    python examples/quickstart.py
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains khoj?

It is an open-source project at khoj-ai/khoj with 2499 forks. Check the repo's contributors and recent commits to judge how active maintenance is.

Is khoj free to use?

It is AGPL-3.0 licensed: free to use, but if you run a modified version as a service you must share the source.

Do I need a paid API to use it?

The framework itself is free - but you will need a model to drive it, which usually means your own API key or a local model.

Khoj vs a plain chatbot?

Khoj is a self-hosted personal AI with your documents, agents, and automations - closer to a private assistant OS than a single chatbot. Choose it when ownership and extensibility matter.

How do I get started?

Clone the repo, read the README's quickstart, and run the provided example - most projects get you to a first result in minutes.

// keep exploring

Similar tools

AI Agents

multica

Make humans and AI agents work as one team — open-source and self-hostable.

★ 51.9k starsUnknown
View guide →
AI Agents

dash

Agno's self-learning data agent: grounded text-to-SQL answers over your database that improve with use.

★ 2.3k starsApache-2.0
View guide →
AI Agents

evolver

A GEP-powered self-evolving engine for AI agents — auditable evolution with Genes, Capsules and Events.

★ 9.1k starsGPL-3.0
View guide →
AI Agents

reef

Reef — infrastructure for continually self-improving agents: weight-training and harness-evolving deployments.

★ 7.5k starsApache-2.0
View guide →
AI Agents

EvoAgentX

EvoAgentX — a framework for building self-evolving ecosystems of AI agents.

★ 3.4k starsMIT
View guide →
AI Agents

webcmd

Self-learning browser infrastructure for AI agents — sites remembered, so agents stop rediscovering the web

★ 2.7k starsApache-2.0
View guide →
// alternatives

Alternatives in AI Agents

The most-starred other AI Agents projects in the LibreAI catalogue — the realistic shortlist if khoj is not the right fit.

Get khoj

Free and open — grab the source, star the repo, and start creating.