container-based autonomous agent framework
Project description
🤖 Microbots
MicroBots is a lightweight, extensible AI agent for code comprehension and controlled file edits. It integrates cleanly into automation pipelines, mounting a target directory with explicit read-only or read/write modes so LLMs can safely inspect, refactor, or generate files with least-privilege access.
🚀 Quick Start
Pre-requisites
- Docker
- AI LLM Provider and API Key
Install
pip install microbots
Example
from microbots import WritingBot
myWritingBot = WritingBot(
model="azure-openai/my-gpt5",
folder_to_mount=str("myReactApp"),
)
data = myWritingBot.run(
"Fix the build error and make sure the build is successful.",
timeout_in_seconds=600,
)
print(data.results)
🤖 Available Bots
| Bot | Description |
|---|---|
| ReadingBot | Reads files and extracts information based on instructions (read-only) |
| WritingBot | Reads and writes files based on instructions (read/write) |
| BrowsingBot | Browses the web to gather information |
| LogAnalysisBot | Analyzes logs for debugging |
| AgentBoss | Orchestrates multiple bots for complex tasks |
⚙️ How it works
MicroBots creates a containerized environment and mounts the specified directory, restricting permissions to read-only or read/write based on the Bot used. This ensures AI agents operate within defined boundaries, enhancing security and control over code modifications while protecting the local environment.
✨ LLM Support
Microbots supports multiple LLM providers — pick whichever fits your stack:
| Provider string | Description |
|---|---|
openai |
OpenAI or Azure OpenAI via the OpenAI SDK (API key) |
azure-openai |
Azure OpenAI via the Azure SDK (API key or Azure AD token) |
anthropic |
Anthropic models, direct or via Azure AI Foundry |
ollama-local |
Local models via Ollama |
Each provider has its own set of environment variables (endpoint, API key, deployment name, etc.). See the Authentication guide for the exact .env variables required for each provider and for Azure AD / managed identity setup.
Azure Pipelines Log Analyzer
Microbots includes a published Azure DevOps Marketplace task, MicrobotsLogAnalyzer@0, for analyzing logs with Azure OpenAI models through an Azure Resource Manager Service Connection. See docs/advanced/azure-pipelines-log-analyzer.md to install and use the task in Azure Pipelines.
🎯 Getting Started
Ready to build your first Microbot project? Follow the step-by-step onboarding guide:
🛠️ Developer Contribution Guidance
Want to contribute to Microbots? Follow the step-by-step guide to set up your environment and meet the project's code and documentation standards:
➡️ Developer Contribution Guidance
📚 Links
Legal Notice
Trademarks: this project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file microbots-0.0.20.tar.gz.
File metadata
- Download URL: microbots-0.0.20.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1da1b7e83086befefcc79645f237d764a607afff338e2006499e0881bf0a3e3
|
|
| MD5 |
11e3b170a5073af0b0ed7b81bd1db857
|
|
| BLAKE2b-256 |
ee02447acfc77d1162bf9bbc4c5ee7114b160686d1d85c288803ac9a8156c243
|
File details
Details for the file microbots-0.0.20-py3-none-any.whl.
File metadata
- Download URL: microbots-0.0.20-py3-none-any.whl
- Upload date:
- Size: 79.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b809e58b007c77583e09c6b20394a2cc20946c1d5ed92866671af2e31da7553
|
|
| MD5 |
78280c7cfee8dea23f4fb3541abce5c7
|
|
| BLAKE2b-256 |
777d7f9b9d466cbf8a6c7e47c10f3334d8b6f99b34fcebc748cad5103dae6f46
|