smolagents
Small Python library for agents that act by writing and running code.
- Maker
- Hugging Face
- Kind
- framework
- Interface
- SDK
- Open source
- Open source · Licence: Apache-2.0 · GitHub
- GitHub stars
- 29,894 (GitHub API, 2026-10-17)
- Models
- —
- Pricing
- —
- MCP support
- Yes
- Subagents
- Yes Multi-agent systems with managed agents.
- Headless / scripted mode
- —
- Sandboxing
- Yes Remote execution via E2B or Docker, among others.
- Official site
- https://huggingface.co/docs/smolagents
- Sources
- api.github.com/repos/huggingface/smolagents · huggingface.co/docs/smolagents/tutorials/tools · huggingface.co/docs/smolagents/examples/multiagents · huggingface.co/docs/smolagents/tutorials/secure_code_executi (docs checked 2026-10-17)
- Other frameworks
- Claude Agent SDK, OpenAI Agents SDK, Mastra, LangGraph
Every value comes from the official site or docs, or from the GitHub API, on the date shown. A blank (—) means the value isn't stated or wasn't verified. It never means 'no'. Pricing is copied from official pages and changes often. No affiliate links.