Hugging Face smolagents
Small Python library whose agents write their actions as code, with sandboxed execution and tools from MCP servers, LangChain or the Hub.
Harness by Hugging Face
Install
From the package registry. Read the repository before you give any tool access to your data.
pip install smolagents
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-orchestration, code-generation
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Fact sheet
- Languages
- PythonREADME
- Packages
- smolagents (pypi)README
- MCP support
- Built inREADME
- Streaming
- YesREADME
- Model providers
- huggingface, openai, anthropic, ollamahuggingface.co
- Maturity
- Stablegithub.com
Facts extracted by Claude Sonnet 5.5 from the linked sources on Oct 24, 2026; reviewed Oct 24, 2026. Wrong fact? Tell us.
Alternatives
Frameworks for the same language with a similar way of orchestrating agents.
- 0.853score
LlamaIndex
LlamaIndex
Open-source Python toolkit for RAG and agents over your own data, with event-driven workflows and 300+ integration packages.
HarnessAFreshness: A★ 52.6K↓ 1.4M/wk - 0.753score
LangChain
LangChain
Python framework of interoperable components and integrations for building agents and LLM apps, with LangGraph and Deep Agents layered above it.
HarnessAFreshness: A★ 148.4K↓ 37.3M/wk - 0.748score
LangGraph
LangChain
Low-level Python orchestration framework for long-running stateful agents, with durable execution, human review points and short- and long-term memory.
HarnessAFreshness: A★ 43.8K↓ 13.1M/wk - 0.732score
CrewAI
CrewAI
Open-source Python framework for multi-agent workflows, with role-based Crews and event-driven Flows.
HarnessAFreshness: A★ 60.1K↓ 644.6K/wk - 0.627score
AutoGen
Microsoft
Archived Microsoft Python framework for multi-agent apps; Microsoft directs new users to Microsoft Agent Framework.
HarnessAFreshness: A★ 61.5K↓ 89K/wk
Compare and alternatives
Signals
- Stars
- 30,029
- Forks
- 3,139
- Open issues
- 408
- Weekly downloads
- 138,942
- Last commit
- Oct 6, 2026 (21 days ago)
- Last release
- May 29, 2026 (5 months ago)
- Last package publish
- May 29, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026) and the package registry.
Details
- Packages
- pypi
smolagents - License
- Apache-2.0
- Repository
- github.com/huggingface/smolagents
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- READMEDocsgithub-graphql
More from Hugging Face
- 0.591score
Hugging Face Inference Providers
Hugging Face
Access to hundreds of open models from partner inference providers through one Hugging Face token and SDK.
InfrastructureAFreshness: Ainference - 0.584score
Hugging Face Spaces
Hugging Face
Hosting for ML demo apps built with Gradio, Docker or static HTML, with optional GPU upgrades.
InfrastructureAFreshness: Ahosting - 0.579score
Hugging Face Inference Endpoints
Hugging Face
Managed Hugging Face service for deploying your own AI models to production on dedicated endpoints.
InfrastructureAFreshness: Ainference
Cite this page
Hugging Face smolagents. Agent Mart. https://agentmart.dev/harnesses/hugging-face-smolagents (last updated 2026-10-24)