
Hugging Face’s Python library for agents that use tools and execute code to complete developer-defined tasks.
smolagents provides CodeAgent for Python-based actions and ToolCallingAgent for conventional tool calls. Developers connect a model and tools, then let the agent choose steps toward a supplied task. It supports model-provider APIs, local models, MCP tools and sharing through Hugging Face Hub.
Generated code can run in supported sandbox environments such as Docker, E2B, Modal or Blaxel. Developers remain responsible for tool permissions, credentials, execution limits and reviewing results. A model-and-tool configuration suitable for a prototype still needs evaluation for its intended production use. The screenshot and introductory video show an earlier library version.
Product overview
Hugging Face’s Python library for agents that use tools and execute code to complete developer-defined tasks.
Information as of October 16, 2026
smolagents provides CodeAgent for Python-based actions and ToolCallingAgent for conventional tool calls. Developers connect a model and tools, then let the agent choose steps toward a supplied task. It supports model-provider APIs, local models, MCP tools and sharing through Hugging Face Hub.[1], [2]
79/100
Our subjective rating of how independently the product carries out its documented tasks, considering the human setup, input, approval and review it needs. This is not a measured success rate.
Loading Community Opinions...
Show prospects that smolagents has a public place where they can check product details, pricing, ratings, and reviews.
Build confidence
Give buyers a third-party profile to explore.
Reduce hesitation
Put validation beside your strongest CTA.
Earn discovery
Every badge links prospects to your listing.
Choose your style
Preview it, then copy the complete embed code.
Shows buyers where to validate your product, pricing, and reputation.
Plain HTML. No signup, script, or maintenance required.
For custom ai agent development consultancies
Exploring smolagents? For custom AI agent development consultancies, your own AI agent can scope client outcomes, build and evaluate agents, and deliver and maintain client releases. Start with a setup tailored to this work.
Tailored starting setup. Chat on our site. See the workflow and monthly plan.