smolagents
smolagents: a barebones library for agents that think in code.
vendor-statedGitHub description
In the 7 days to smolagents gained +96 GitHub stars, to 30.7k. Maintainer health 83/100, last commit on .
- What it does
- smolagents is a Python library for running agents in a few lines of code, centered on CodeAgent, which writes its actions as Python code, alongside a conventional ToolCallingAgent. It works with local or hosted models, MCP and LangChain tools, and sharing through the Hugging Face Hub. huggingface/smolagents README
- Who it suits
- Developers who want a minimal agent framework they can read and modify, using whichever model, tools and input types suit the task. huggingface/smolagents README
- Watch for
- Because code agents execute generated code, the project says to run them in a sandbox, either a managed cloud service or Docker; its built-in local executor is not a security boundary. huggingface/smolagents README
- Repository
- huggingface/smolagents
- Licence
- Apache-2.0
- Language
- Python
- Contributors
- 218
- Forks
- 3,283
- Last commit
Star history
- earlier
- last 7 days
- latest reading
History starts 2026-10-08, so the 90-day view fills in on 2027-01-06.
How hard to run?
- Deploy
- Runs inside your app
- Server, our estimate
- no server of its own
OpenSSF Scorecard
Not scanned
No published scan for huggingface/smolagents when we checked on 2026-12-04.
Similar AI agent frameworks
- Google ADK22.5k ★ · Apache-2.0▲up 0.7% over 7 days
- LangGraph45.8k ★ · MIT▲up 0.7% over 7 days
- Pydantic AI21.5k ★ · MIT▲up 0.5% over 7 days
- Mastra30k ★ · Apache-2.0▲up 0.5% over 7 days
smolagents’s licence, in short
Is smolagents open source?
Yes. smolagents is published under Apache-2.0, a permissive open-source licence approved by the Open Source Initiative. Every tracked tool’s licence, with the same sources: Licences.
Is smolagents free?
smolagents is released under the Apache-2.0 licence, so it is free to use in your own application.
From the licence GitHub reports for huggingface/smolagents. Every tracked licence
Sources
- measured
- GitHub API, 6 times a day; as of 2026-12-05 00:37 UTC.
- security
- No OpenSSF scan published; checked 2026-12-04.
- editorial
- Self-host profile and “In short”: the project’s own docs.
Rankings are never paid for. Star counts measure attention, not installs. Methodology
README badge and star chart
[](https://toolstrends.com/tools/smolagents)<a href="https://toolstrends.com/tools/smolagents"><picture><source media="(prefers-color-scheme: dark)" srcset="https://toolstrends.com/badge/smolagents/history-dark.svg"><img alt="smolagents GitHub stars, tracked by Tools Trends" src="https://toolstrends.com/badge/smolagents/history.svg" width="440"></picture></a>Click a snippet to select it; it links back to this page.