smolagents
Apache-2.0 minimal code-agent framework from Hugging Face
AI Agents / Orchestration · Apache-2.0 · 29.2k
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.
Embed
[](https://stackgems.com/gems/smolagents)