Smolagents
Open-source Python library for building and running model-agnostic agents with little code.
- ai agent framework
- Coding agents
- Automate a workflow
- Write code
Overview
smolagents is an open-source Python library for building and running agents with a small amount of code. It supports code agents and tool-calling agents, model providers and local models, multimodal inputs, MCP and other tools, Hub integrations, and sandboxed execution options for code agents.
Key features
- CodeAgent and ToolCallingAgent abstractions
- Sandboxed code execution options
- Model-provider and local-model support
- Vision, video, and audio inputs
- MCP and external tool support
- Hugging Face Hub integrations
- Command-line utilities
Use cases
Show all 7Show fewer
Alternatives
Last updated 2026-09-16