smolagents
Hugging Face's small, simple library for AI agents
smolagents from Hugging Face is a compact open-source Python library for building agents that think in code. It works with open models from the Hugging Face Hub or local runtimes as well as hosted APIs, and supports sandboxed code execution for safer runs.
Available on
Python
Pricing
Free and open source (Apache-2.0)
Free tier availableFree pricing
Price checked Nov 4, 2026
Visit smolagents (opens in new tab)Compare with...