# Best TypeScript agent frameworks

> The open-source agent frameworks written in TypeScript in this index, ranked by real maintained adoption (GitHub stars and recent commit activity), never by sponsorship. Every project here is TypeScript-first, self-hostable, and free to run; the trade-off is you host and maintain it yourself.

Right now it's led by ruflo (73k stars), with CopilotKit and Mastra close behind. Rankings shift as projects gain stars and ship commits.

10 open-source records, ranked by maintained GitHub adoption; sponsorship never affects the ranking. Browse on the web: https://agentsearchengine.app/best/typescript-agent-frameworks

## Ranked

1. [ruflo](https://agentsearchengine.app/agents/ruflo) — The leading agent meta-harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. · Open source · Framework · 73k★ · TypeScript · MIT · active 1 day ago · best for adding tools, memory, loops, and sandboxes on top of claude code or codex
2. [CopilotKit](https://agentsearchengine.app/agents/copilotkit) — The frontend stack for agents: generative UI, shared state and human-in-the-loop for web, mobile, Slack and Teams. · Open source · Framework · 37k★ · TypeScript · MIT · active today · best for putting an existing agent in front of users with rich, interactive ui rather than a plain chat box
3. [Mastra](https://agentsearchengine.app/agents/mastra) — A TypeScript framework for AI applications and agents, with model routing, workflows, RAG and evals. · Open source · Framework · 28k★ · TypeScript · Apache-2.0 · active today · best for typescript teams building production agents without switching to python
4. [AI SDK (Vercel)](https://agentsearchengine.app/agents/vercel-ai-sdk) — Vercel's provider-agnostic TypeScript toolkit for AI applications and agents in Next.js, React, Svelte, Vue and Node. · Open source · Framework · 27k★ · TypeScript · Apache-2.0 · active today · best for web developers adding streaming ai features and agents to typescript apps
5. [eliza](https://agentsearchengine.app/agents/eliza) — Open source agentic operating system · Open source · Framework · 19k★ · TypeScript · MIT · active today · best for a local-first agent os running on desktop, mobile, or as a system assistant
6. [VoltAgent](https://agentsearchengine.app/agents/voltagent) — An open-source TypeScript agent framework with a companion console for observability, evals and deployment. · Open source · Framework · 11k★ · TypeScript · MIT · active 26 days ago · best for typescript teams that want agent code and production tracing from one vendor
7. [open-multi-agent](https://agentsearchengine.app/agents/open-multi-agent) — TypeScript multi-agent orchestration framework. Describe a goal, a coordinator decomposes it into a task DAG that runs on any LLM: Claude, ChatGPT, Gemini, DeepSeek, or local models. · Open source · Framework · 7.0k★ · TypeScript · MIT · active today · best for node.js backends that need a task graph built at runtime rather than hand-wired up front
8. [OpenAI Agents SDK (TypeScript)](https://agentsearchengine.app/agents/openai-agents-sdk-js) — OpenAI's lightweight, provider-agnostic TypeScript framework for multi-agent workflows and voice agents. · Open source · Framework · 3.9k★ · TypeScript · MIT · active 1 day ago · best for typescript teams building agents or voice agents on openai's primitives
9. [opengap](https://agentsearchengine.app/agents/opengap) — A framework-agnostic, git-native standard for defining AI agents · Open source · Framework · 3.0k★ · TypeScript · MIT · active 2 months ago · best for defining an agent once as repository files and carrying it across frameworks
10. [Cybara](https://agentsearchengine.app/agents/cybara) — Self-hosted, open-source AI agent operating system with multi-agent orchestration and MCP. · Open source · Framework · 31★ · TypeScript · MIT · active today · best for developers wanting one self-hosted runtime for coding, browser automation, and messaging-bot agents

## FAQ

**What are the best TypeScript agent frameworks?**
The TypeScript projects listed below, ranked by maintained adoption — GitHub stars plus recent commit activity — so you see what's genuinely used and still maintained, not abandoned.

**Are these TypeScript agent frameworks open source and free?**
Yes — every project on this page is open source and written primarily in TypeScript. The software is free to run and self-host; you still pay for the infrastructure you run it on and any model or API usage it makes.

**Why choose TypeScript agent frameworks specifically?**
Staying in your team's primary language — TypeScript — makes self-hosting, extending, and debugging far easier, because you can read and modify the source directly instead of treating it as a black box.

---
Source: [Agent Search Engine](https://agentsearchengine.app) — https://agentsearchengine.app/best/typescript-agent-frameworks
