Khoj logoKhojOpen sourcePerplexity logoPerplexityProprietary

Khoj vs Perplexity

Khoj is a free, self-hostable alternative to Perplexity. Here's how running it yourself compares with paying for the managed product.

Switching from Perplexity

We haven't checked whether Khoj can import from Perplexity yet

If you've moved from Perplexity to Khoj, tell us how it went below.

FeatureKhojPerplexity
Source codeOpen source (AGPL-3.0)Proprietary
HostingSelf-hostedManaged by the vendor
CostFree software; you pay for your own serversSee perplexity.ai pricing
Your data livesOn your infrastructureOn the vendor's servers
Bring your Perplexity dataNot checked yet—
Lock-inLow: fork it or move hosts any timeTied to the vendor
Setup & maintenanceYou install, update and back it upHandled for you
Community38,325 stars · 2,574 forks—
Last code change Active—
Written inPython—

Choose Khoj if

  • You want your data on servers you control
  • You'd rather not pay per seat or per usage as you grow
  • You want to read, audit or modify the code

Stick with Perplexity if

  • You don't want to run or update servers
  • You need vendor support and SLAs out of the box
  • Your team is already deeply integrated with it

Frequently asked questions

Is Khoj a good alternative to Perplexity?

Khoj is an open-source your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI . It covers the same ground as Perplexity while letting you host it yourself and keep full control of your data. It has 38,325 stars on GitHub.

Is Khoj free?

Yes. Khoj is open source under the AGPL-3.0 license, so the software is free to use. Running it yourself costs whatever your server or cloud provider charges.

Can I self-host Khoj?

Yes. Khoj can be installed on your own server; see its repository for instructions.

Other open-source alternatives to Perplexity

See all
SurfSense logo

SurfSense

modsetter/surfsense

Air-gapped, private AI for confidential documents. Open-source NotebookLM alternative that runs on your computer. Join our Discord: https://discord.gg/ejRNvftDp9

17.3KPythonActive
SurfSense vs Perplexity
Scira logo

Scira

zaidmukaddam/scira

Scira (Formerly MiniPerplx) is a minimalistic AI-powered search engine that helps you find information on the internet and cites it too. Powered by Vercel AI SDK!

ReplacesPerplexity
12KTypeScriptActive
Scira vs Perplexity