# smolagents

> Apache-2.0 minimal code-agent framework from Hugging Face

**Category:** AI Agents  
**Pricing:** open-source  
**URL:** https://huggingface.co/docs/smolagents  
**GitHub:** https://github.com/huggingface/smolagents  
**Added:** 2026-09-04

---

## The Hook

smolagents is the few-thousand-line agent kit when LangGraph is the heavy graph runtime and you want agents that write Python to call tools.

## What's Good

Apache-2.0. CodeAgent (executable Python) + ToolCallingAgent (JSON). Hub-native tools, multi-agent orchestration, optional E2B sandbox. First-class HF model routing. Tiny core you can read.

## The Catch

Minimalist — not Temporal durable workflows or production multi-tenant agent platform. Code execution needs sandbox discipline. Vs CrewAI/PydanticAI: HF Hub gravity, less enterprise packaging. You own evals, memory, and deploy.

## Verdict

Apache-2.0 code-first agents. Free library; sandbox/ops are yours.
