Mastra is an open-source TypeScript framework for building AI agents, workflows and retrieval pipelines on top of any model provider. It ships primitives for agents, tools, memory, workflows, evals, voice and a local developer playground, plus adapters for OpenAI, Anthropic, Google, Mistral, Cohere and open-weights providers through the Vercel AI SDK. The project was open-sourced in 2024 by the team behind Gatsby.
The framework is used for conversational agents, back-office automations, RAG applications and multi-step workflows in Node and edge runtimes. It integrates with pgvector, Pinecone, Chroma and LibSQL for storage, and deploys cleanly to Vercel, Cloudflare, Netlify and plain Node servers. Observability hooks into OpenTelemetry out of the box.