smolagents
Hugging Face's minimal open-source Python library for building agents, with first-class code agents that write their actions as code.
About smolagents
Heavy agent frameworks hide what the agent actually does.
Who it’s for
- Developers who want a small, readable agent library
- Researchers experimenting with agents and open models
When to consider it
Consider smolagents when you want simple agents in a few lines of code that work with any model.
Tradeoffs & limitations
- Apache-2.0 licensed; code agents should run in a sandbox, which the library supports.
SOTA overview · Documentation-based assessment · Sources & review method
Updates
No updates shared yet.
Discussion
Newest firstAsk a question or share how you use smolagents.
Keep it helpful. Community rules
Loading discussion…
Sources & review method
Documentation-based assessment · Oct 3, 2026 · Prepared with AI assistance; not a hands-on benchmark.
Checked by SOTA · AI-assisted documentation review. Selection advice is our assessment; verify current requirements for your deployment.
Import history & original evidence
smolagents official website
Hugging Face's minimal open-source Python library for building agents, with first-class code agents that write their actions as code.
Based on official pages and announcements checked on 2026-10-03. No hands-on test, performance benchmark or popularity ranking is claimed.