Smolagents

 »  AI Agents  »  Framework  »  Smolagents  URL Share on

 Repository   26,258  2,395
Minimalist agents that think and act in code — CodeAgent writes Python as actions
minimalist code-agent hugging-face open-source-models multi-agent mcp multimodal
TypeFramework
MaturityStable
Status Maintained

Key Features

Multi-Agent Single Agent Streaming Async Support Short-Term Memory Plugin System Custom Tools MCP Protocol Code Execution Sandboxing Self-Hosted

Community Feedback

  Strengths

  • Extremely minimal (~1000 lines core)
  • Code-based agent paradigm
  • Hugging Face ecosystem integration
  • Great for open-source models
  • Multimodal support

  Weaknesses

  • Less mature for enterprise
  • Fewer built-in integrations than heavier frameworks
  • Limited memory capabilities

Smolagents Details

OrganizationHugging Face
Organization TypeCompany
FundingSeries b+
CategoryFramework
SubcategorySingle agent
DeploymentSDK/Framework
Primary LanguagePython
RuntimePython 3.10+
LicenseApache-2.0
Commercial UsePermissive
Install Commandpip install smolagents
GitHub Stars26,258
GitHub Forks2,395
Release CadenceBiweekly
MaturityStable
Pricing ModelFree
Free TierFully open-source Apache-2.0
Self-Hosted FreeYes
Cost Modelfree + LLM costs
Community SizeLarge (26k stars)
Community ActivityVery active
Sentiment Positive
GPU RequiredNo
Research Date2026-03-24
LLM ProvidersAny via LiteLLM, Hugging Face Hub, OpenAI, Anthropic, Ollama, local transformers
API Keys RequiredLLM provider API key (optional for local models)

Use Cases

When to Use

Best for: Teams wanting minimal, code-first agents with open-source models

Avoid when: Enterprise production with complex memory/state management needed

  Back to Agent Directory
Our Social Media →  
Original data from HuggingFace, OpenCompass and various public git repos.
Check out Ag3ntum — our secure, self-hosted AI agent for server management.
Release v20260328a