LangChain Integration (@heossihq/qnsi/langchain)

QNSI provides a LangChain toolkit that wraps tenant-scoped vault, KMS, and audit operations behind billing-backed SDK activation.

LangChain Integration (@heossihq/qnsi/langchain)

QNSI provides a LangChain toolkit that wraps tenant-scoped vault, KMS, and audit operations behind billing-backed SDK activation.

Install

pnpm add @heossihq/qnsi @langchain/core

Usage

import { QnsiToolkit } from "@heossihq/qnsi/langchain";

const toolkit = new QnsiToolkit({
	apiKey: process.env.QNSI_API_KEY!,
});

const tools = toolkit.getTools();

What it exposes

  • vault read/write/rotate tools
  • KMS sign and verify tools
  • audit logging helpers for agent actions

Authentication

The toolkit uses the activation client bundled in @heossihq/qnsi, resolves tenant context from the API key, and respects billing entitlements before tools are used.