Mastra vs Pi Agent Core
Mastra and Pi Agent Core are both agent frameworks for TypeScript. Mastra is published by Mastra and Pi Agent Core by Earendil. On GitHub, Pi Agent Core has 117,586 stars and Mastra has 29,050. Both were last active in Oct 2026. The table lines up where they differ (publisher, weekly downloads and category) and has the install commands for both. Everything here comes from the listings' public sources and is refreshed daily. Mastra describes itself as: TypeScript framework for AI agents and apps with graph-based workflows, memory, suspend-and-resume approvals, MCP servers and model routing. Pi Agent Core: Minimal TypeScript agent harness with an agent runtime, multi-provider LLM API, terminal UI and coding agent CLI that users extend themselves. Licenses: Mastra unknown, Pi Agent Core MIT.
Updated Oct 26, 2026 · Built from catalog data; how we rank and grade
Mastra
Mastra
TypeScript framework for AI agents and apps with graph-based workflows, memory, suspend-and-resume approvals, MCP servers and model routing.
Pi Agent Core
Earendil
Minimal TypeScript agent harness with an agent runtime, multi-provider LLM API, terminal UI and coding agent CLI that users extend themselves.
Who should pick which
- Pick Mastra if you want MCP support built in.
- Pi Agent Core has the larger community: 117,586 GitHub stars against 29,050.
From listing data only. We don't pick a winner on security beyond the grades; read how grades work.
Side by side
| Fact | Mastra | Pi Agent Core |
|---|---|---|
| Type | Harness | Harness |
| Publisher | Mastra | Earendil |
| License | License unknown | MIT |
| Pricing | Not stated | Not stated |
| Runs | Not stated | Not stated |
| Auth | Not stated | Not stated |
| Hosts supported | Not stated | Not stated |
| Tools | Not listed yet | Not listed yet |
| Security grade | –Security: not graded yet | –Security: not graded yet |
| Freshness grade | AFreshness: A | AFreshness: A |
| GitHub stars | 29,050 | 117,586 |
| Weekly downloads | 1,442,185 | 5,107,393 |
| Last release | Oct 21, 2026 | Oct 21, 2026 |
| Last activity | Oct 24, 2026 | Oct 24, 2026 |
Facts from each listing's public sources, checked daily. Tool lists arrive with tool scans.
Install
Mastra
npm install @mastra/core
Pi Agent Core
npm install @earendil-works/pi-agent-core
Also consider
- 0.831score
CopilotKit
CopilotKit
Open-source SDK that connects AI agents to app front ends with chat UI, generative UI, shared state and human approvals; creator of the AG-UI protocol.
HarnessAFreshness: A★ 38.2K↓ 286.2K/wk - 0.799score
Letta
Letta
Open-source agent harness for stateful agents whose memory persists and improves with use, with a terminal UI, app server and TypeScript SDK.
HarnessAFreshness: A★ 25.2K↓ 40.7K/wk - 0.787score
trueforge
truefoundry
Open-source agent harness that runs the model loop for you, with MCP tools, skills, sandboxing, approvals and a chat UI.
HarnessAFreshness: A★ 6.4K
Questions
- Is Mastra or Pi Agent Core more popular?
- Pi Agent Core has more GitHub stars (117,586 against 29,050). Stars measure attention, not quality, so check freshness and docs too.
- Are Mastra and Pi Agent Core open source?
- Pi Agent Core is open source (MIT); the other is unknown.
Related
Cite this page
Mastra vs Pi Agent Core. Agent Mart. https://agentmart.dev/compare/mastra-vs-pi-agent-core (last updated 2026-10-26)