#9090th of 242 in Agent frameworks and SDKs
smolagents
Python library for agents that write their actions as code
Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts smolagents on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.smolagents is on your watch list. Its new releases and problems show there.
- Stars
- 30.6k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Last release
- May 2026
- Language
- Python
25,960 on 24 Mar 202630,585 on 24 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
smolagents is a Python library from Hugging Face for building agents. Its CodeAgent writes tool calls as Python snippets inside a ReAct loop, and a ToolCallingAgent using JSON actions is also included. Core logic in agents.py is under 1,000 lines. Models can be local (transformers, Ollama, llama.cpp), Hub providers, LiteLLM or OpenAI-compatible APIs.
Who it is for: Python developers building tool-using agents with any LLM backend
Strengths
- Core agent logic is under 1,000 lines, so it is easy to read and modify
- Works with transformers, llama.cpp, LiteLLM, OpenAI-compatible, Azure and Bedrock models
- Imports tools from MCP servers, LangChain and Hub Spaces; agents can be pushed to the Hub
- Sandboxed code execution via E2B, Blaxel, Modal or Docker
Weaknesses
- Built-in LocalPythonExecutor is not a security boundary; a sandbox is needed for untrusted code
- Managed sandbox options (E2B, Blaxel, Modal) are third-party cloud services
- Code-action advantage over JSON tool calls rests on the project's own cited papers
- Python only; no bundled web UI or server for deployment
What it needs
- GPU optional
- Needs E2B, Blaxel, Modal or Docker (sandboxed execution), LLM provider or local model
- Models: transformers, Ollama, llama.cpp, Hugging Face Inference Providers, LiteLLM
What changed
- v1.25.0 ↗ (opens in a new tab)Security fix
“Fix High impact vulnerability on remote executors by @nnfrog in https://github.com/huggingface/smolagents/pull/1637”
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in Agent frameworks and SDKs
See all 242| Rank | Project | Score |
|---|---|---|
| #88 | beeai-frameworkPython and TypeScript library for building multi-agent systems | 72 out of 100 |
| #89 | macpaw/openaiSwift client library for the OpenAI API and compatible providers | 72 out of 100 |
| #91 | gepaPython library that evolves prompts and other text artifacts using LLM reflection | 71 out of 100 |
| #92 | marvinPython framework for structured LLM outputs and task-based agent workflows | 71 out of 100 |
| #93 | rust-sdkOfficial Rust SDK for building MCP servers and clients on tokio | 71 out of 100 |