@alexledger/tau
v0.0.5
Published
A browser automation library
Downloads
27
Readme
tau
A browser-based AI coding agent powered by OpenRouter. Includes a core agent library and several example applications. Tau is by the pi coding agent and co-do.
- Website:https://aled1027.github.com/tau
- Docs:https://aled1027.github.com/tau/docs
- Demos: https://aled1027.github.com/tau/examples
:warning: WARNING
This tool allows execution of arbitrary code in your browser tab.
Running untrusted code may be dangerous and could harm your system.
Use with caution!
TODO:
- Later: sync state or export. export would be download a zip and maybe could
Quick start
import { Agent } from "tau";
const openrouterApiKey = "sk-or-...."
const agent = await Agent.create({ apiKey: openrouterApiKey });
const res1 = await agent.prompt("Write hello world in Python");
console.log(res1.text);
const res2 = await agent.prompt("What time is it?");
console.log(res2.text);See docs/tau-core.md for the full API reference.
Setup
npm install # installs root + all examples via workspaces
npm run build # builds the core library to dist/Development
Run the library build in watch mode alongside an example:
npm run build:watch # rebuild library on changes
# If you want to test with an app, then do:
cd your/app/path/
npm run devExamples
- Chat (
npm run dev:chat) — Minimal chat interface (Lit + Vite) - Tutor (
npm run dev:tutor) — AI tutor with skills and prompt templates (Lit + Vite) - SvelteKit Chat (
npm run dev:sveltekit) — Chat app built with SvelteKit
Examples import the library as "tau" via file: references resolved through npm workspaces.
To run the examples:
npm run build
# In a separate terminal:
cd examples/chat
npm run dev