Skip to content

uclaw-dev/uclaw-sdk

Repository files navigation

UClaw SDK

The official TypeScript SDK monorepo for UClaw, a managed runtime for durable AI agents.

Packages

  • @uclaw/sdk: production SDK for server-side AppClient usage and browser-safe React hooks.

Quick Start

npm install @uclaw/sdk
import { AppClient } from "@uclaw/sdk";

const app = new AppClient({
  apiKey: process.env.UCLAW_API_KEY,
});

const agent = await app.agents.create({
  config: {
    instructions: "You are a helpful assistant.",
    modelTier: "fast",
  },
});

const run = await agent.run("Draft a launch checklist.");

for await (const event of run.stream()) {
  if (event.type === "text-delta") {
    process.stdout.write(event.delta);
  }
}

Development

bun install
bun run build
bun run tc

Links