
smolagents is an open-source Python library for developers building AI agents that carry out tasks by writing and executing Python. Its CodeAgent can combine tool calls with loops, conditionals, and calculations in one action. This approach suits tasks that need several operations, rather than a single model response.
You can run models locally through Transformers or Ollama, or connect to Hugging Face inference providers, OpenAI, Anthropic, and other services through LiteLLM. Local model inference runs on your hardware; choosing a hosted provider sends model requests to that service. Code execution has a separate choice: Docker provides self-hosted container isolation, while E2B, Blaxel, and Modal provide managed cloud sandboxes. The local Python executor isn't a security boundary for untrusted code.
The library also includes ToolCallingAgent for conventional JSON or text tool calls, plus support for multi-agent hierarchies. Agents can accept images, video, and audio as well as text. They can use tools from MCP servers or LangChain, and call Hugging Face Spaces as tools. Hugging Face Hub integration lets developers share and load agents and tools as Gradio Spaces.
The framework keeps its abstractions close to Python, which makes it a fit for developers who want to inspect or adapt the agent logic. Command-line utilities support general agent tasks and web agents. The code is available under the Apache 2.0 license.
Claim this page and we'll verify you by hand. smolagents gets the verified badge, and you can upgrade the listing to be featured on localhosted. Proud to be listed? Put our badge on your site.
Want more people to find smolagents?Promote it
Something wrong or outdated on this page?
20.3KUpdated 1 hour agoMIT
#Human approval#LLM tracing#MCP
Pydantic AI is a Python SDK for developers building AI agents into their own applications. Its main draw is Pydantic validation across agent tools and results, so an agent can return structured data that application code can check and use. The SDK is MIT licensed.
42.5KUpdated 2 hours agoMIT
#Human approval#Multi-agent workflows#Persistent memory
24.8KUpdated 1 day ago
Docker · Web#Code execution#Human approval#MCP
5KUpdated 23 hours agoApache-2.0
#Code execution#Human approval#MCP
AG2 is an open-source Python framework for developers and researchers building systems where AI agents share work. The code uses the Apache 2.0 license.
12.4KUpdated 4 weeks agoApache-2.0
macOS · Windows · Linux#Code execution#Multimodal input#Tool calling
42.4KUpdated 1 day agoApache-2.0
Docker · Web#Guardrails#Human approval#LLM tracing
LangGraph is a free, MIT-licensed Python framework for developers building AI agents that need to keep state and handle complex tasks. It gives teams control over how an agent moves between steps, where people can intervene, and what happens when a long-running task is interrupted.
Activepieces brings AI agents and workflow automation into one workspace for teams that need to connect their apps and internal data. It runs on your own servers with Docker or Kubernetes, or as a managed cloud service. An isolated deployment can keep platform data on its own infrastructure; connected apps and model providers may still require external access. Its core and app integration pieces are MIT-licensed.
Agent S is an open-source AI agent framework that controls ordinary desktop and web applications through the screen, mouse and keyboard. It runs on macOS, Windows and Linux and is aimed at developers, computer-use researchers and people building automation for their own desktops. You describe the task in natural language; the agent clicks, types and scrolls without requiring an API integration or a separate script for each application.
Agno is a Python framework and runtime for developers building customer-facing or internal AI agents. You can run its agent platform locally with Docker, on your own servers or in your cloud. The open-source framework uses the Apache 2.0 license, and the platform keeps sessions, memory, knowledge and traces in your database.