#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.

Stars
30.6k
License
Apache-2.0
Last commit
Nov 2026
Last release
May 2026
Language
Python
Stars, last 35 weeks+4,625
24 Mar 2026: 25,960 stars31 Mar 2026: 26,083 stars7 Apr 2026: 26,212 stars14 Apr 2026: 26,355 stars21 Apr 2026: 26,546 stars28 Apr 2026: 26,719 stars5 May 2026: 26,858 stars12 May 2026: 27,041 stars19 May 2026: 27,183 stars26 May 2026: 27,325 stars2 Jun 2026: 27,478 stars9 Jun 2026: 27,597 stars16 Jun 2026: 27,715 stars23 Jun 2026: 27,828 stars30 Jun 2026: 27,965 stars7 Jul 2026: 28,095 stars14 Jul 2026: 28,219 stars21 Jul 2026: 28,352 stars28 Jul 2026: 28,460 stars4 Aug 2026: 28,570 stars11 Aug 2026: 28,672 stars18 Aug 2026: 28,797 stars25 Aug 2026: 28,933 stars1 Sept 2026: 29,061 stars8 Sept 2026: 29,203 stars15 Sept 2026: 29,310 stars22 Sept 2026: 29,433 stars29 Sept 2026: 29,582 stars6 Oct 2026: 29,710 stars13 Oct 2026: 29,838 stars20 Oct 2026: 29,969 stars27 Oct 2026: 30,134 stars3 Nov 2026: 30,239 stars10 Nov 2026: 30,351 stars17 Nov 2026: 30,481 stars24 Nov 2026: 30,585 stars

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

  1. 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
Also in Agent frameworks and SDKs
RankProjectScore
#88beeai-frameworkPython and TypeScript library for building multi-agent systems3.5k starsApache-2.072 out of 100
#89macpaw/openaiSwift client library for the OpenAI API and compatible providers3k starsMIT72 out of 100
#91gepaPython library that evolves prompts and other text artifacts using LLM reflection7.6k stars+429 (+6.0%) in 30 daysMIT71 out of 100
#92marvinPython framework for structured LLM outputs and task-based agent workflows6.2k starsApache-2.071 out of 100
#93rust-sdkOfficial Rust SDK for building MCP servers and clients on tokio4.2k stars+100 (+2.5%) in 30 dayscustom license71 out of 100