Introduction

Better Agent is a TypeScript framework for building typed, composable and durable agent apps.

It gives you a composable runtime for tools, memory, storage, auth context, interrupts, resumable runs, plugins, and a typed client across frameworks.

Why It Exists

How It Fits

Better Agent sits inside your existing application stack.

Use it with your framework, database, auth system, provider SDKs, and UI.

The Stack

Your server
Next.js Hono Express Remix SvelteKit
Your auth
Better Auth Agent Auth Clerk Custom
Better Agent
Agent Typed APIs AG-UI Events Tools Human Loop MCP Structured Output State Memory Plugins
Providers
OpenAI Anthropic Gemini xAI Ollama OpenRouter Workers AI Vercel AI SDK
Storage
Drizzle Prisma Kysely Redis
Client SDK
React Vue Svelte Solid

Docs MCP

Add to MCP

Clients with install-link support:

Endpoint

https://better-agent.com/api/docs/mcp

MCP config

{
  "mcpServers": {
    "better-agent-docs": {
      "url": "https://better-agent.com/api/docs/mcp"
    }
  }
}

Next