ModelFarebeta
Back to AI Toolkit

smolagents

Build compact agents that can use tools and code.

Toolkit

Agents & tools · Documentation reviewed 2026-11-10. Not independently tested.

When it helps

Experimenting with a small agent loop and custom tools.

What to consider

Generated code can execute actions; choose an appropriate isolated execution environment.

Getting started

Use the documented small example and read the execution security guidance first.

Repository evidence

Stars: 30,489 · License: Apache-2.0

Last code push: 2026-11-20

Statistics retrieved: 2026-11-23T00:42:59+00:00

Counts are snapshots, not live rankings. Review the repository license and any hosted-service terms before adopting it.

Adding model calls?

Plan the tokens, retries, and fallback costs before connecting your tools.

Open the planner