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

Chalk Labs

Need help deploying Hugging Face smolagents?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

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 (25 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

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get Hugging Face smolagents running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying Hugging Face smolagents?

CallGet help
Cite this page

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