fast-crewai vs CrewAI: 34× faster agent serialization, drop-in
fast-crewai is a Rust+PyO3 acceleration layer for CrewAI, the role-based multi-agent framework. Same Python API; Rust-backed serialization, tool dispatch, and knowledge store.
$ pip install fast-crewai fast-crewai is a Rust-backed drop-in for
CrewAI. Same API, faster hot paths.
Install: pip install fast-crewai.
34× faster agent serialization (10ms vs 340ms, typical 5-agent crew).
fast-crewai vs CrewAI: the facts
34× faster agent serialization (10ms vs 340ms, typical 5-agent crew).
Pure-Python pydantic-based serializer; allocates a Python object for every agent field.
Zero code changes: `import fast_crewai` before `import crewai`.
Direct Python import.
MIT licensed, prebuilt wheels, Python 3.9+.
MIT licensed.
Benchmarks
Reproduction instructions in the project README. Numbers measured on AMD Ryzen 9 7950X, 64GB DDR5, NVMe SSD, Python 3.12.
| Metric | fast-crewai | CrewAI |
|---|---|---|
| 5-agent crew serialization | 10ms | 340ms |
When to use fast-crewai
- You run CrewAI crews with 5+ agents and serialization is in the hot path.
- You want a 10-30× win with zero code changes.
When NOT to use fast-crewai
- You only run 1-2 agent crews and serialization is negligible.
Frequently asked questions
Does fast-crewai work with all CrewAI features?
Yes. The acceleration applies to the serialization layer (the bottleneck) and the tool dispatch path. Role-based orchestration, task delegation, and the knowledge store all work as normal.
Will my custom tools and agents work with fast-crewai?
Yes. fast-crewai is a drop-in; it does not change the API for defining agents, tasks, tools, or crews.