smolagents

Extremely minimal open-source library (~1,000 lines) from Hugging Face

What smolagents does

  • Extremely minimal open-source library (~1,000 lines) from Hugging Face
  • CodeAgent paradigm: agents write actions as executable code, not JSON
  • Model-agnostic and modality-agnostic (text, vision, audio) with sandboxed execution via E2B/Docker/Modal

Models & architecture

AI models and engines smolagents uses or lets you pick, as documented by the vendor. Source: smolagents docs: Models reference

Hugging Face Inference models (InferenceClientModel)OpenAI models via LiteLLMAmazon Bedrock (nova-pro-v1)Azure OpenAIllama-3.3-70bgpt-4oAnthropic Claude via LiteLLM

Example workflows

Typical ways people put smolagents to work, based on its documented capabilities:

Data scientists replace rigid JSON-based agent frameworks with Hugging Face smolagents that write and execute pure Python code steps directly in memory.

ML engineers replace heavyweight orchestration pipelines with smolagents to perform automated model evaluation and dataset analysis using small open models.

Latest releases & milestones

v1.26.0

Maintenance release: test fixes for LiteLLM providers without keys, docstring and typo cleanups, and a reverted f-string escaping change.

Release notes (github.com)
v1.25.0

Adds an MLflow integration doc, replaces importlib deserialization with a registry pattern, and fixes a high-impact remote executor vulnerability.

Release notes (github.com)

Vendor sources

Pricing and feature details checked against these first-party sources on 2026-11-19.

smolagents: straight answers

What is smolagents?

smolagents is listed under Agent Frameworks (Developers), in the AI Agents & Automation category on Flocci AI Tools. Extremely minimal open-source library (~1,000 lines) from Hugging Face. It is free, with no paid plan attached, and it lives at huggingface.co.

Is smolagents free?

smolagents is listed as fully free: there is no paid tier attached to it in the catalog. That makes it one of the 396 entries on Flocci AI Tools with no upgrade path built in.

Which AI models does smolagents use?

smolagents uses or offers Hugging Face Inference models (InferenceClientModel), OpenAI models via LiteLLM, Amazon Bedrock (nova-pro-v1), Azure OpenAI, llama-3.3-70b, gpt-4o and Anthropic Claude via LiteLLM, according to smolagents docs: Models reference. Model availability can depend on plan and region, so check the vendor's model list before you rely on a specific one.

What's new in smolagents?

The most recent smolagents releases Flocci tracks are v1.26.0 (2026-05-29): Maintenance release: test fixes for LiteLLM providers without keys, docstring and typo cleanups, and a reverted f-string escaping change; v1.25.0 (2026-05-14): Adds an MLflow integration doc, replaces importlib deserialization with a registry pattern, and fixes a high-impact remote executor vulnerability. Each release links to the vendor's own release notes on the tool page.

What do people use smolagents for?

Typical uses for smolagents: Data scientists replace rigid JSON-based agent frameworks with Hugging Face smolagents that write and execute pure Python code steps directly in memory. ML engineers replace heavyweight orchestration pipelines with smolagents to perform automated model evaluation and dataset analysis using small open models.

Can I use smolagents in a browser or is there an app?

smolagents needs to be installed or self-hosted: it does not run in a browser tab. It is available on an API and self-hosting.

What can smolagents do?

smolagents does 3 things the catalog singles out: Extremely minimal open-source library (~1,000 lines) from hugging face; codeagent paradigm: agents write actions as executable code, not json; model-agnostic and modality-agnostic (text, vision, audio) with sandboxed execution via e2b/docker/modal.

What is the best free alternative to smolagents?

Agno is the closest free alternative: it sits in the same Agent Frameworks (Developers) sub-category and is free. AWS Strands Agents, CAMEL and Claude Agent SDK also start free. The full list is on the alternatives page.

See the full list →

smolagents alternatives

Compare all alternatives →

LangGraph

Agent Frameworks (Developers)
free
  • Build stateful, multi-agent apps as graphs
  • Human-in-the-loop and durable execution
  • Works with any LLM
  • Open-source with a hosted platform

CrewAI

Agent Frameworks (Developers)
freemium
  • Role-based multi-agent 'crews'
  • Simple Python API for collaboration
  • Tasks, tools and flows
  • Open-source core

OpenAI Agents SDK

Agent Frameworks (Developers)
free
  • OpenAI Agents SDK is a code-first toolkit for building agent loops, tools, handoffs and traces.
  • Use current OpenAI API models such as GPT-6.2 Astra for advanced reasoning and coding, or GPT-6.2 Sol for faster multi-step work.
  • Set the model explicitly in your agent configuration; API model access and pricing are separate from ChatGPT plans.
  • The SDK is open source; provider models and compute are billed under their respective terms.

Microsoft AutoGen

Agent Frameworks (Developers)
free
  • Multi-agent conversation framework
  • Event-driven, async agent design
  • Studio UI for prototyping
  • Fully open-source

LlamaIndex

Agent Frameworks (Developers)
freemium
  • Leading framework for RAG and data agents
  • Connect LLMs to your documents & APIs
  • Agentic document workflows
  • Open-source with a hosted cloud

Google Agent Development Kit (ADK)

Agent Frameworks (Developers)
free
  • Open-source Python/Java framework from Google for building multi-agent systems
  • Native integration with Vertex AI Agent Engine and Gemini models
  • Model-agnostic: works with non-Google LLMs via LiteLLM

Head-to-head comparisons