smolagents
A minimal Python library from Hugging Face for building AI agents that write and run code to solve tasks. It lets you set up capable agents in a few lines.
Pick a small issue you can reproduce, then fix it with your AI coding agent.
Share on XLicense: Apache-2.0
Overview
smolagents is a small Python library from Hugging Face for building AI agents that think in code. Its CodeAgent writes its actions as code instead of structured tool calls. The agent logic fits in about 1,000 lines. It works with any model, including local transformers or Ollama models and providers reached through LiteLLM. Generated code can run in sandboxes such as Blaxel, E2B, Modal or Docker.
Key features
- CodeAgent that writes its actions as Python code
- Model-agnostic, from local models to hosted providers
- Tools from MCP servers, LangChain or Hub Spaces
- Sandboxed execution through Blaxel, E2B, Modal or Docker
- Share and pull tools or agents on the Hugging Face Hub
Best for
Developers who want a compact, readable agent framework and are happy to let the model write code. Running generated code safely calls for one of the supported sandboxes.
- Upstream
- huggingface/smolagents
- Fork on GitHub
- Guo-astro/smolagents
- Upstream stars
- 30k
- Category
- AI agents and LLM tools
- Language
- Python
- License
- Apache-2.0
- Forked
- 2026-09-28
- Sync status
- In syncLast synced 2026-10-19
More in AI agents and LLM tools
A collection of AI research skills and guides that helps researchers with idea evaluation, literature research, paper writing, and pre-submission review.
Forked 2026-10-18Last synced 2026-10-19Custom license (see repository)AI agents and LLM toolsGitHub
RLVE supports language model reinforcement learning with adaptive, verifiable environments for generating problems and evaluating model outputs.
Forked 2026-10-17Last synced 2026-10-19License: MITAI agents and LLM toolsGitHub
Provides modular Android development instructions for AI agents, helping them follow specialized workflows. Install individual skills or the full set with Android CLI.
Forked 2026-10-16Last synced 2026-10-19License: Apache-2.0AI agents and LLM toolsGitHub
Pi Agent is a local desktop app for using the Pi AI coding agent on macOS, Windows, and Linux. It helps you manage coding sessions, work with project files, and run saved prompts without setting up a terminal environment.
Forked 2026-10-15Last synced 2026-10-19License: MITAI agents and LLM toolsGitHub