The Best DX
server.ts
12345678910111213
client.ts
123456789101112
Features
01Composable Agents
Build larger agent systems from smaller agents, tools, and shared runtime parts.
02Multi-Provider
Swap models with one line. Same API across supported providers.
+more
03Plugins
Add app-level guards, hooks, middleware, endpoints, and shared behavior with plugins.
rateLimitloggingsandboxipAllowlistguardshooksendpointsmiddlewarerateLimitloggingsandboxipAllowlistguardshooksendpointsmiddleware
04Framework Agnostic
Use Better Agent with your stack instead of building around a fixed app framework.
Astro
Next.js
Nuxt
Preact
Remix
Solid
Svelte
05AG-UI Events
Stream standard AG-UI events for messages, tools, approvals, interrupts, and final results.
06Durable Runs
Resume interrupted runs, replay streams, and continue threads across requests.
07Human in the Loop
Pause before sensitive tools run, then approve, reject, or resume from the client.
08First-Class Auth
Resolve request identity once, then use it across access rules, memory, plugins, and tools.
09Tools Everywhere
Call server tools, pause for client tools, connect MCP, or pass through hosted provider tools.
Works with
Node.js
Bun
Deno
Cloudflare
Primitives
Build on the primitives you need
agents.ts
Try it out
npm create better-agentTerminal
