LibraryAI and agent development

smolagents

Build lightweight agents that act through Python code or tool calls.

Stars
28,276
Forks
2,753
License
Apache-2.0
Updated
Updated Jul 10, 2026

Checking live repository facts…

Project overview

smolagents offers a compact Python framework for code-writing agents, conventional tool-calling agents, and multi-agent hierarchies, with support for different model providers and Hub sharing. Its CodeAgent expresses actions as Python snippets. Since those snippets are executed, untrusted workloads should use a sandboxed backend; the local Python executor is explicitly not a security boundary.

Repository facts

Primary language
Python
License
Apache-2.0
Repository updated
Jul 10, 2026
Default branch
main

Resource types

Library

Use cases

AI and agent development

Runtime

LocalSandboxed

Capabilities

Code executionMemoryMulti-agent collaborationSecurity guardrailTool use

Related projects

Browse more similar projects