smolagents

agent-frameworkStable

๐Ÿค— smolagents: a barebones library for agents that think in code.

Stars

27,863

ฮ” stars 7d

+96

ฮ” stars 30d

โ€”

Forks

2,688

Contributors

205

npm DL / wk

โ€”

PyPI DL / wk

116,964

Language

Python

Last push

2026-06-09

About smolagents

`smolagents` is a library that enables you to run powerful agents in a few lines of code. It offers: โœจ **Simplicity**: the logic for agents fits in ~1,000 lines of code (see agents.py). We kept abstractions to their minimal shape above raw code! ๐Ÿง‘โ€๐Ÿ’ป **First-class support for Code Agents**. Our `CodeAgent` writes its actions in code (as opposed to "agents being used to write code"). To make it secure, we support executing in sandboxed environments via Blaxel, E2B, Modal, or Docker.

Read the full README on GitHub โ†’

Install

pip install smolagents

smolagents growth signals this week

Growth score: 14/100 week of 2026-06-08

Acceleration (40%)0
Relative velocity (30%)7
Downloads (20%)0
Activity (10%)87

Signal history

WeekScoreฮ”โ˜…Signal
2026-06-0814+96Stable

smolagents alternatives

Projects in the same category, closest in size โ€” picked by data, not opinion.

ComposioStable28,769 โ˜…
LangGraph๐Ÿ”ฅ Trending34,774 โ˜…
DSPyStable35,035 โ˜…
PostHog MCP Server๐Ÿ”ฅ Trending35,035 โ˜…

See all agent-framework projects ranked by growth โ†’

Frequently asked questions

Is smolagents still maintained?
Yes โ€” actively maintained. The last push was on 2026-06-09, with 205 contributors.
Is smolagents growing?
It is stable this week, with a growth score of 14/100. See the weekly history above.
What are the best smolagents alternatives?
Closest by category and size in our data: Composio, LangGraph, DSPy โ€” full list with live signals above.

Embed this badge

Show your project's live signal in your README โ€” it updates weekly with the data.

[![smolagents on What's Trending in AI](https://whatstrendinginai.com/badges/huggingface-smolagents-agent-framework.svg)](https://whatstrendinginai.com/projects/huggingface-smolagents-agent-framework/)

smolagents badge

Tracked since 2026-06-10 ยท data as of 2026-06-15 ยท 599 open issues ยท 36 releases