Skip to content
A

smolagents

Runtime & OrchestrationOpen source · Apache-2.0★ 29,667(2026-10-04)Self-hosted

Hugging Face's minimal agent library built around CodeAgent.

smolagents is Hugging Face's Apache-2.0 agent library whose core logic is roughly 1,000 lines; its defining feature is the CodeAgent, which writes its actions as executable code rather than JSON tool calls, and it can execute them in E2B, Modal or Docker sandboxes.

Key facts

CategoryRuntime & Orchestration
LicenseApache-2.0
LanguagePython
Self-hostedYes
GitHub stars29,667 (2026-10-04)
Last push2026-09-30
Last verified2026-10-04
Repositoryhttps://github.com/huggingface/smolagents

Markdown version (for LLMs)

Tools in this category