Find tools › Open-source projects › Build websites & apps

smolagents

Open-source project · by huggingface

A small Python code library for building AI helpers that solve tasks by writing and running code.

For developersPopular

What it costs

Free and open source; you may pay for the AI model it uses.

Use it to

  • Build an AI helper that searches the web and summarizes
  • Let AI crunch numbers by writing its own small programs
  • Experiment with AI agents using very little code

How to start

  1. Have Python installed on your computer.

  2. In a terminal, run pip install "smolagents[toolkit]".

  3. Follow the README example, and run generated code in a sandbox to stay safe.

Good to know. Executing model-generated code can be dangerous unless run inside a sandboxed environment.

Before you install

  • Checked by a personWe read what it does before listing it.
  • License: Apache-2.0You are allowed to use it under these terms.
  • Last updated 2026-11-17

More detail

A minimalist library for building code-writing agents with minimal abstractions.

Use this when you want to build custom agents that execute actions by writing Python code rather than structured JSON outputs, keeping your agent logic transparent and easy to debug.

Similar tools

Descriptions are written in plain English from each project's own documentation and refreshed by our agent; this one was last checked 2026-09-29. Spotted a mistake? · Open in Find tools · © 2026 Which AI Map