Installation

Khoji installs the same way on every platform: paste one script tag before the closing </body> tag of your site.

<script src="https://khoji.aiskillhub.info/widget/khoji.js"
  data-khoji async></script>

Reload your site. You will see a floating Search button in the bottom-right corner, and pressing Ctrl+K (or ⌘K on a Mac) opens the search palette anywhere on the page.

Requirements

  • A sitemap. Khoji looks for /sitemap.xml by default. WordPress, Shopify, Wix, Next.js, Hugo, Jekyll, Astro and virtually every modern platform generates one automatically. If yours lives elsewhere, point to it with data-sitemap="/custom-sitemap.xml".
  • Same-origin pages. The widget indexes pages on the same domain it is installed on. Subdomains are treated as separate sites.
  • A modern browser. Semantic search uses WebAssembly and Web Workers, available in every browser since roughly 2021. On older browsers, Khoji gracefully serves keyword-only search.

No sitemap? No problem

If no sitemap is found, Khoji falls back to collecting same-origin links from the current page. This works well for small sites with good internal navigation, but a sitemap always gives more complete coverage.

Verifying the install

  1. Open your site and press Ctrl+K / ⌘K.
  2. The footer of the palette shows indexing progress: "Indexing 34/120 pages…".
  3. Keyword results appear immediately; when the footer shows "Semantic search ready", meaning-based matching is active.
  4. Type a question a customer would ask — not the exact words on the page — and watch the right page surface.

Free tier limits

The free tier indexes up to 200 pages per site and shows a small "Search by Khoji" badge in the palette footer. Paid plans raise the limit to 2,000 pages and remove the badge — see pricing.