Smolagents

Open-source Python library for building and running model-agnostic agents with little code.

Visit site

Overview

smolagents is an open-source Python library for building and running agents with a small amount of code. It supports code agents and tool-calling agents, model providers and local models, multimodal inputs, MCP and other tools, Hub integrations, and sandboxed execution options for code agents.

Key features

  • CodeAgent and ToolCallingAgent abstractions
  • Sandboxed code execution options
  • Model-provider and local-model support
  • Vision, video, and audio inputs
  • MCP and external tool support
  • Hugging Face Hub integrations
  • Command-line utilities

Use cases

Show all 7Show fewer

Alternatives

  • Magic LoopsNo-code platform for building AI-powered apps and workflow automationsai agentFreemium
  • Mini AGIMinimal general-purpose AI agent that uses the OpenAI API to pursue tasks.ai agent
  • YourgoalSwift implementation of BabyAGI for autonomous goal-driven task execution.ai agent
  • AgentForgeOpen-source low-code Python framework for agents and YAML cognitive architectures.ai agent frameworkFree
  • AideAI-native developer tool that autonomously works through software engineering tasksAI tool
  • AIliceOpen-source autonomous general-purpose agent for research, coding, system administration, and multi-step tasks.ai agent

Last updated 2026-09-16