smolagents

OfficialLightweight

Hugging Face's minimal agent library focused on code-first agent design. Agents write and execute Python code to accomplish tasks rather than using JSON tool calls.

by Hugging Face14.2k starsApache-2.0Updated Apr 2026

Installation

Install
pip install smolagents

Language support

Python

Supported LLMs

Any model on Hugging Face HubOpenAIAnthropic

Features (8)

code_agents
tool_calling_agents
multi_agent
tool_use
managed_agents
hub_tools
gradio_ui
vision

Details

Author
Hugging Face
Category
Lightweight
Languages
1
Features
8
Stars
14.2k
License
Apache-2.0
Status
Official