SDK — TypeScript[ v2.x ]

[ 00 ]overview

First-class TypeScript support with full type inference, streaming, and tree-shakeable exports.

API Reference

[ 01 ]Install

terminal — install

$ npm install @myndlabs/sdk

[ 02 ]Quick start

quickstart.ts
import { MyndClient } from "@myndlabs/sdk";

const client = new MyndClient({
  apiKey: process.env.MYND_API_KEY,
});

const agent = await client.agents.create({
  name: "my-agent",
  model: "auto",
  instructions: "You are a helpful assistant.",
});

const run = await client.agents.run(agent.id, {
  input: "Explain quantum computing in one sentence.",
});

console.log(run.output);

[ 03 ]Features

Full type safety

Generated types for every API endpoint. IntelliSense out of the box.

Streaming support

Server-sent events with typed chunks. Real-time agent output as it generates.

Edge-compatible

Works in Node.js, Deno, Bun, Cloudflare Workers, and Vercel Edge Functions.

Everything else — auth, streaming, errors, pagination — lives in the documentation.

Full docs