TypeScript SDK
Use the TypeScript SDK when your Node.js or TypeScript services need authorization and evidence for supported model calls through provider-shaped wrappers, with full type safety.
Install
npm install keel-sdkQuick example
import { OpenAI } from "keel-sdk/providers/openai";
const client = new OpenAI();
const response = await client.chat.completions.create({
model: "gpt-4o",
messages: [{ role: "user", content: "Hello!" }],
max_tokens: 128,
});
console.log(response.choices[0].message.content);The SDK evaluates governance before the provider call. If the request is denied, a KeelError is thrown before any provider call is made.
For provider wrappers, streaming, error handling, configuration, and the direct client reference, see SDKs.
Last updated on Edit this page on GitHub