Smolagents is Hugging Face's minimalist framework for building AI agents in Python. It focuses on simplicity — agents write and execute Python code directly rather than using complex tool-calling schemas, making them more flexible and debuggable.
Developers who prefer simplicity over heavy frameworks use Smolagents as an alternative to LangChain or CrewAI for agent workflows.
pip install smolagentsfrom smolagents import CodeAgent, HfApiModel
agent = CodeAgent(model=HfApiModel())
agent.run('What is the weather in Paris?')Free and open-source. Uses Hugging Face Inference API by default (free tier available) or any local model.
Be the first to share a Smolagents case study and get discovered by clients.
Submit a case studySubmit a brief and we'll match you with vetted specialists who have proven Smolagents experience.