# smolagents

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

Hugging Face's minimal agent library built around CodeAgent.

- **Category:** Runtime & Orchestration
- **License:** Apache-2.0
- **Language:** Python
- **Self-hosted:** Yes
- **GitHub stars:** 29667 (2026-10-04)
- **Repository:** https://github.com/huggingface/smolagents
- **Last verified:** 2026-10-04

Source: https://agent.c8.fit/tools/smolagents/
