AI Agent Platforms / All platforms / smolagents

smolagents

Compact Python library for agents that act through code snippets or tool calls.

smolagents is a Python library for building agents whose core logic fits in about 1,000 lines of code. Its CodeAgent writes actions as Python code snippets instead of JSON tool calls, and it also offers a standard tool-calling agent. Developers use it with local or hosted models and optional sandboxed execution.

CategoryAgent builders and frameworks
LicenseApache-2.0
Hostinglibrary for self-managed applications
Repositorygithub.com/huggingface/smolagents
Websitehuggingface.co/docs/smolagents/index
Last verified2026-09-02

Documented features

Feature summaries come from the project's own repository and documentation and describe the software as documented on the verification date, not an evaluation.

More in agent builders and frameworks

AgnoCAMELCrewAIDifyFlowiseHaystackLangflowLangGraph