smolagents
Minimal agents that think in code.
A small Python library whose CodeAgent writes actions as Python snippets rather than JSON tool calls, runnable in sandboxes, with any model on the Hub or via API.
- Vendor
- Hugging Face
- Category
- Agent frameworks
- Pricing
- Open source
- Open source
- Yes
- License
- Apache 2.0
- Platforms
- Python
- Launched
- 2024
- Website
- huggingface.co/docs/smolagents
Features
- Code agents
- Any LLM
- Sandboxed execution
Best for
- Agents
- Coding
More agent frameworks
- Model Context Protocol — Anthropic (open standard). The open standard for connecting AI to tools and data.
- LangGraph — LangChain. Stateful, controllable agent orchestration.
- Claude Agent SDK — Anthropic. The agent harness behind Claude Code, as a library.
- OpenAI Agents SDK — OpenAI. Lightweight multi-agent workflows with handoffs.
- CrewAI — CrewAI. Role-based multi-agent crews.
- Agent Development Kit — Google. Google’s open-source framework for multi-agent systems.
- Pydantic AI — Pydantic. Type-safe agent framework for Python.
- Microsoft Agent Framework — Microsoft. Successor to AutoGen and Semantic Kernel.