Both sit in the framework layer with similar commercial terms, so the practical split is language: Mastra targets TypeScript and CrewAI targets Python.
TypeScript agent framework with workflows, memory, evals and a local playground.
Role-based crews of agents with delegation between them.
| Mastra | CrewAI | |
|---|---|---|
| Licence | Open source | Open source |
| Pricing | open source | freemium |
| Self-hostable | Yes | Yes |
| Languages | TypeScript | Python |
| Install | npm install @mastra/core | pip install crewai |
| Keys required | None | None |
Both sit in the framework layer with similar commercial terms, so the practical split is language: Mastra targets TypeScript and CrewAI targets Python. Mastra: TypeScript agent framework with workflows, memory, evals and a local playground. CrewAI: Role-based crews of agents with delegation between them.
Mastra can run on your own infrastructure. CrewAI can run on your own infrastructure.
Mastra is open source (open source). CrewAI is open source (freemium).
Every page here answers to Accept: text/markdown and returns the same content at roughly a tenth the tokens. No separate site, no toggle — same URL.
curl -s -H "Accept: text/markdown" https://newagent.build/compare/mastra-vs-crewai