# microagents

> microagents is an open-source agent for ai models and llm tooling. Experimental framework that generates, validates and reuses small task agents. It is available on CLI, Web, Self-hosted and API.

- **Kind:** Agent
- **Pricing:** Open source
- **Platforms:** CLI, Web, Self-hosted, API
- **Repository:** https://github.com/aymenfurter/microagents
- **GitHub stars:** 820
- **License:** MIT
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [multi-agent frameworks](https://ai-powered.com/categories/multi-agent-frameworks)
- **Listing updated:** 2026-12-01

## About

Instead of shipping a fixed set of tools, Microagents writes a small Python agent on the fly when a task needs one. Each generated agent is run, checked by a separate validation step, and only kept in a local SQLite store if it actually works. Later chats can reuse those stored agents, so the system accumulates capabilities over time.

The project runs on OpenAI GPT-4 Turbo with text-embedding-ada-002, and it can also be pointed at Azure OpenAI using either an API key or Entra ID. When a new agent is needed, several candidates are spawned in parallel and the first one to complete its task is kept. The generated code executes directly on the host without a sandbox, so the README recommends running it in Codespaces or Docker.

It suits developers and researchers who want to experiment with self-extending agents, or who want to study how agent catalogues grow across sessions. A command-line interface and a Gradio web interface are both included.

## Features

- **Dynamic agent generation:** Creates a new Python agent in response to a task instead of relying on predefined tools.
- **Validation before reuse:** A judge phase checks that a generated agent works before it is added to the catalogue.
- **Persistent agent store:** Working agents are saved in SQLite so they can be reused across runs and chat sessions.
- **Parallel candidate agents:** Three agents are spawned for each new task and the first successful one is retained.
- **Azure and OpenAI support:** Works with the OpenAI API or Azure OpenAI using an API key or Entra ID authentication.
- **CLI and web interfaces:** Offers a console interface through textual-app.py and a Gradio-based web interface.

## Good for

- Experimenting with agents that write and reuse their own helper code
- Fetching weather forecasts or IP-based location data through generated scripts
- Studying how an agent catalogue grows and improves across chat sessions
- Prototyping task automation on top of OpenAI or Azure OpenAI models

## FAQ

### Do I need an OpenAI account to run microagents?

Yes. The setup requires access to gpt-4-turbo and text-embedding-ada-002 through either OpenAI or Azure OpenAI.

### Is the generated code run in a sandbox?

No. Microagents execute Python code directly, so the README recommends isolated environments such as Codespaces or Docker.

### How do I reset the stored agents?

Delete the agents.db file and all stored agents are removed.

### Which license does microagents use?

The project is distributed under the MIT License.

### Is microagents free?

Yes. microagents is open source, so you can use and self-host it for free.

### What are the best alternatives to microagents?

The closest alternatives to microagents are pydantic-deepagents, mini-agi, atomic-agents, DemoGPT and Agentlas-OS.

## Where this comes from

- Description: written from the project's README.

## Alternatives

- [pydantic-deepagents](https://ai-powered.com/agents/pydantic-deepagents): pydantic-deepagents is an open-source agent framework for ai models and llm tooling.
- [mini-agi](https://ai-powered.com/agents/mini-agi): mini-agi is an open-source agent for multi-agent frameworks.
- [atomic-agents](https://ai-powered.com/agents/atomic-agents): atomic-agents is an open-source agent framework for ai models and llm tooling.
- [DemoGPT](https://ai-powered.com/agents/demogpt): DemoGPT is an open-source agent framework for ai models and llm tooling.
- [Agentlas-OS](https://ai-powered.com/agents/agentlas-os): Agentlas-OS is an open-source agent for ai models and llm tooling.
- [OpenProgram](https://ai-powered.com/agents/openprogram): OpenProgram is an open-source agent framework for ai models and llm tooling.
- [AgentK](https://ai-powered.com/agents/agentk): AgentK is an open-source agent for multi-agent frameworks.
- [XAgent](https://ai-powered.com/agents/xagent): XAgent is an open-source agent for multi-agent frameworks.

---
Source: https://ai-powered.com/agents/microagents
