Skip to main content
npm GitHub

Install

Works in Node.js ≥ 18, Bun, Deno, Cloudflare Workers, and modern browsers.

Authenticate

1

Sign up

Create an account at app.knowledgestack.ai.
2

Issue an API key

From the dashboard, create an API key scoped to your user. It looks like sk-user-....
3

Add it to .env

First call

Read a document

Per-request auth (multi-tenant proxies)

Building an agent?

For agent / RAG workflows, use the MCP server instead. It plugs into every major agent framework without writing glue code.

Reference

The full auto-generated API reference lives in the ks-sdk-ts repo. It’s also mirrored under sdks/_generated-ts/ in this docs repo, refreshed nightly.