smolagents
Installation
SKILL.md
smolagents
smolagents is a leading agent framework in the 2026 AI agent engineering landscape (28.1k★).
When to use this skill
- ~1k-line core: CodeAgent writes actions as Python code instead of JSON tool calls
- ToolCallingAgent for classic JSON tool calling when preferred
- Sandboxed execution: local, Docker, E2B, WebAssembly executors
- Model-agnostic: InferenceClientModel, LiteLLM, Transformers, OpenAI/Azure, Bedrock
- Tool sharing/loading via HF Hub; MCP tool import
- Multi-agent via managed_agents; CLI entrypoints smolagent/webagent
- Ecosystem overlap: agent-tool-routing covers registry concepts; smolagents' code-as-action is a distinct execution paradigm not covered anywhere
Installation
pip install "smolagents[toolkit]"