Skip to content
Agentmart
Submit a tool

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

IndexedApache-2.0★ 30,029
Write a review

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.

We use your email only for this newsletter. Privacy

About

smolagents is an open-source Python library whose agent logic fits in roughly a thousand lines. Its CodeAgent writes actions as code and can execute them in sandboxes such as Docker, E2B, Modal or Blaxel, while ToolCallingAgent uses JSON-style tool calls. Tools can come from MCP servers, LangChain or Hub Spaces, and agents can be shared through the Hugging Face Hub. Models can be local transformers or Ollama models, Hub inference providers, or OpenAI and Anthropic through LiteLLM.

Use cases: agent-orchestration, code-generation

No 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.

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
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Hugging Face

Cite this page

Hugging Face smolagents. Agent Mart. https://agentmart.dev/harnesses/hugging-face-smolagents (last updated 2026-10-24)