τ tau

A browser-based AI coding agent framework. Core library for AI-powered conversations, tool calling, streaming, and thread persistence — all client-side with no server.

Read the Docs View Examples
import { Agent } from "tau";

const agent = await Agent.create({ apiKey: "sk-or-..." });

// Simple — just await it
const result = await agent.prompt("Write hello world in Python");
console.log(result.text);

// Streaming — iterate for live updates
const stream = agent.prompt("Create a React component");
for await (const event of stream) {
  if (event.type === "text_delta") updateUI(event.delta);
}

Documentation

Learn how to build with tau

API Reference

Full API docs for Agent, VirtualFS, Extensions, Skills, Prompt Templates, and more.

Quick Start

Get up and running in minutes with simple and streaming examples.

Extensions

Add custom tools, listen to events, and request user input.

Skills

On-demand instruction documents loaded by the model when needed.

Examples

Live demos you can try right now

Chat

Minimal chat interface with file browser and tool use.

Lit · Vite

Tutor

AI tutor with lessons, code editor, and prompt templates.

Lit · Vite

SvelteKit Chat

Chat app built with SvelteKit and Svelte 5.

SvelteKit · Svelte 5

Do I Suck at Math?

The simplest possible tau integration — a minimal SvelteKit example.

SvelteKit · Minimal