How do you work with Xontext?

Some topics have both versions. Prefer the twin that matches how you work, and cross-link when you need the other depth.

npm

Install for agents & tooling

Knowledge SDK — install as a devDependency only (not a production runtime).

npm i -D @x12i/xontext-docs

Agents / SDK details → · agent-manifest.json

developers

I embed the library

You call createXontext in-process, write fragments, and wire CLI/MCP/pipeline.

Overview → Library API → Extract → Query
Start with the Overview
builders

I run and discover the worker

You start the HTTP worker, register status UI, migrate graphs, and query via CLI.

Overview → CLI/MCP/Worker → Integration & Ops
Start with the Overview