i ideas / repo launcher
huggingface avatar

huggingface/smolagents

โ˜… 30,316PythonApache-2.086

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

What it is

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.

When to use it

Reach for smolagents when you want an LLM to plan, call tools, browse, or coordinate with other agents instead of answering a single prompt โ€” it's written in Python and fits stacks tagged .

Category
AI Agents
Also in
LLM & Inference
Stars
30,316
Forks
3,209
Last push
today
Created
2024-12-05
Open issues
1,073
Website
huggingface.co/docs/smolagents

Quick start

$ git clone https://github.com/huggingface/smolagents.git

Hand it to your AI

Read https://ideas.asveas.com/r/huggingface/smolagents.md and help me add huggingface/smolagents to my project. Explain the setup steps for my stack and show the minimal code to get it working.

Alternatives to smolagents

All AI Agents โ†’

Pairs well with

FAQ

What is smolagents?

huggingface/smolagents is an agent framework on GitHub: ๐Ÿค— smolagents: a barebones library for agents that think in code. smolagents is a library that enables you to run powerful agents in a few lines of code.

When should I use smolagents?

Reach for smolagents when you want an LLM to plan, call tools, browse, or coordinate with other agents instead of answering a single prompt โ€” it's written in Python and fits stacks tagged .

What are the best alternatives to smolagents?

Popular alternatives in AI Agents: Significant-Gravitas/AutoGPT (188kโ˜…), langchain-ai/langchain (149kโ˜…), browser-use/browser-use (121kโ˜…), heygen-com/hyperframes (82.8kโ˜…), crewAIInc/crewAI (60.8kโ˜…).

Is smolagents actively maintained?

huggingface/smolagents looks very actively maintained: the last push was today (2026-11-10), with 30,316 stars and 1,073 open issues.

What license does smolagents use?

huggingface/smolagents is published under the Apache-2.0 license. Check the repository's LICENSE file before commercial use.