← All frameworks
25k ★Code-agentGentle learning curve

Smolagents

Hugging Face · Python · Apache-2.0

Smolagents keeps the core to a few hundred readable lines and has agents act by writing and running code, which is a clean fit for small, tool-heavy automations.

Best for

Builders who want a tiny, hackable agent that writes and runs code to act.

Strengths

  • +Tiny, readable core you can fully understand
  • +Code-agent approach is powerful for tool use
  • +Tight Hugging Face Hub integration

Watch out for

Running model-written code needs sandboxing; not aimed at heavy multi-agent orchestration.

Spec sheet

Vendor
Hugging Face
Languages
Python
License
Apache-2.0
Architecture
Code-agent
Model support
Any provider
Multi-agent
Limited
State persistence
No
Human-in-the-loop
No
Streaming
Yes
Observability
OpenTelemetry hooks
Memory
Plugin
First released
2024

Compare with

This page reflects Smolagents's public documentation as of May 2026 and is maintained by Choppy Toast, which is not affiliated with Hugging Face. GitHub star counts are approximate. Always confirm details in the official docs before you commit.