A lightweight, open-source AI Agent powered by free APIs
Project description
๐ค MRAgent
A lightweight, open-source AI Agent powered by free APIs
Features โข Architecture โข Getting Started โข API Providers โข Roadmap
โจ Overview
MRAgent is a lightweight AI agent that connects to free-tier LLM and multimodal APIs to deliver a powerful, personal assistant experience โ without expensive subscriptions. It combines text generation, image generation, text-to-speech, speech-to-text, screen monitoring, web browsing, code execution, terminal access, and file management into a single, extensible agent.
Philosophy: Leverage the best free APIs available (primarily from NVIDIA and other open-source providers) to build an agent that rivals commercial solutions.
๐ Features
| Capability | Description | Status |
|---|---|---|
| ๐ฌ LLM Chat | Multi-model text generation (GPT-OSS, Kimi, GLM-5, Llama 3.3) | โ Implemented |
| ๐จ Image Generation | Text-to-image via Stable Diffusion 3.5 Large & FLUX Dev | โ Implemented |
| ๐ฃ๏ธ Text-to-Speech | Natural voice synthesis via Edge TTS (Free, Neutral) | โ Implemented |
| ๐ Speech-to-Text | Audio transcription via Groq Whisper v3 (Ultra-fast) | โ Implemented |
| ๐ง Email Skill | Send & receive emails via AgentMail (Interactive /email command) |
โ Implemented |
| ๐ฑ Telegram Bot | Chat, Voice, & Image interaction | โ Implemented |
| ๐ VivreCard | Background Scheduler & Heartbeat System | โ Implemented |
| ๐ก๏ธ Poneglyph | System Guardian & Doctor (Auto-diagnostics) | โ Implemented |
| ๐ Web Browsing | Autonomous internet surfing and information gathering | โ Implemented |
| ๐ฅ๏ธ Screen Monitoring | Capture and analyze screen content in real-time | โ Implemented |
| ๐ป Code Execution | Write, run, and debug code in multiple languages | โ Implemented |
| ๐ง Terminal Access | Execute shell commands and system operations | โ Implemented |
| ๐ File Management | Navigate, create, move, and organize files | โ Implemented |
| ๐ Web Search | Search the internet via Brave Search API | โ Implemented |
| ๐ Identity Setup | Interactive wizard to customize User and Agent persona | โ Implemented |
| ๐ก๏ธ HitL Security | Human-in-the-Loop required for Terminal and Code execution | โ Implemented |
๐๏ธ Architecture
MRAgent/
โโโ README.md
โโโ .env.example # Template for API keys
โโโ .gitignore
โโโ requirements.txt # Python dependencies
โโโ main.py # Entry point
โโโ config/
โ โโโ settings.py # Configuration & API key management
โโโ data/
โ โโโ mragent.json # ๐ Poneglyph Configuration
โ โโโ vivrecard_jobs.json # Scheduled jobs
โโโ core/
โ โโโ poneglyph.py # ๐ System Guardian & Doctor
โโโ agents/
โ โโโ core.py # Core agent orchestration loop
โ โโโ vivrecard.py # ๐ Scheduler system
โ โโโ planner.py # Task planning & decomposition
โ โโโ executor.py # Action execution engine
โโโ skills/ # Modular Skills System
โ โโโ base.py # Base skill interface
โ โโโ agentmail.py # Email skill
โ โโโ telegram.py # Telegram skill
โโโ providers/
โ โโโ base.py # Base API provider interface
โ โโโ nvidia_llm.py # NVIDIA LLM provider (GPT-OSS, Kimi, GLM)
โ โโโ nvidia_image.py # NVIDIA image generation (SD 3.5, FLUX)
โ โโโ tts.py # Edge TTS provider
โ โโโ nvidia_stt.py # Groq STT provider
โ โโโ brave_search.py # Brave Search API
โโโ tools/
โ โโโ browser.py # Web browsing automation
โ โโโ terminal.py # Shell command execution
โ โโโ ...
โโโ ui/
โ โโโ cli.py # Command-line interface
โ โโโ telegram_bot.py # Telegram bot interface
โ โโโ web.py # Flask Web Interface
โโโ utils/
โโโ logger.py # Logging utilities
โโโ helpers.py # Shared helper functions
๐ ๏ธ Getting Started
Prerequisites
- Python 3.10+
- Free API keys (see API Providers)
Installation
Installation
One-Line Installer (Recommended)
Mac/Linux:
curl -fsSL https://raw.githubusercontent.com/bonzainsights/MrAgent/main/install.sh | bash
Windows (PowerShell):
iwr https://raw.githubusercontent.com/bonzainsights/MrAgent/main/install.bat | iex
Pip (Python Package)
If you have Python 3.10+ installed:
pip install bonza-mragent
mragent
Homebrew (macOS)
brew install --HEAD https://raw.githubusercontent.com/bonzainsights/MRAgent/main/Formula/mragent.rb
Manual Setup (Advanced)
# Clone the repository
git clone https://github.com/bonzainsights/MrAgent.git
cd MRAgent
# Create a virtual environment
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Set up your environment variables
cp .env.example .env
# Edit .env with your API keys
Quick Start
If you boot the system without API keys or an identity configured, an Interactive Setup Wizard will safely guide you through copying your free NVIDIA NIM key and naming your Assistant before booting automatically!
# Run the agent (CLI mode + Web UI)
python main.py
# Run as Telegram bot
python main.py --mode telegram
# Run System Diagnostic
python main.py doctor
๐ API Providers
MRAgent is built around free-tier APIs to keep costs at zero. Here are the current providers:
NVIDIA NIM (Primary)
| Model | Purpose | API |
|---|---|---|
| GPT-OSS-120B | Reasoning (Primary) | NVIDIA NIM |
| Kimi K2.5 | General-purpose LLM | NVIDIA NIM |
| GLM-5 | Reasoning & code | NVIDIA NIM |
| Llama 3.3 70B | Reliable fallback | NVIDIA NIM |
| Qwen2.5 Coder | Code generation | NVIDIA NIM |
| Stable Diffusion 3.5 Large | Image generation | NVIDIA NIM |
| FLUX.1 Dev | Image generation | NVIDIA NIM |
Other Free Providers
| Provider | Purpose | Service |
|---|---|---|
| Groq | Speech-to-Text | Whisper Large v3 (Free) |
| Edge TTS | Text-to-Speech | Microsoft Edge Neural (Free) |
| AgentMail | AgentMail.to (Free) | |
| Brave Search | Web search | Brave Search API (Free) |
| Telegram | Messaging Interface | Telegram Bot API (Free) |
๐ก Adding new providers? Implement the base interface in
providers/base.pyand register your provider in the config.
๐บ๏ธ Roadmap
- Project setup & repository initialization
- Core agent loop with task planning
- NVIDIA LLM integration (multi-model)
- Image generation pipeline
- Text-to-speech (Edge TTS)
- Speech-to-text (Groq Whisper)
- Telegram bot interface (Voice & Image support)
- Web Interface (Chat & Voice)
- Email Integration (AgentMail)
- VivreCard Scheduler
- Poneglyph System (Guardian & Doctor)
- Brave Search integration
- Terminal & code execution tools
- File management system
- Screen monitoring & analysis
- Web browsing automation
- Security: Terminal/Code Execution Approvals (HitL)
- Security: Web UI & Telegram Authentication
- Interactive Startup Wizards (API Keys & Identity)
- NVIDIA API Key Consolidation (Global Defaulting)
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
๐ License
This project is open source. See the LICENSE file for details.
โ ๏ธ Disclaimer
MRAgent uses free-tier API keys which may have rate limits and usage quotas. The agent is designed to work within these constraints. Never commit your .env file or expose API keys publicly.
Built with โค๏ธ by Bonza Insights & achbj
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 bonza_mragent-0.1.5.tar.gz.
File metadata
- Download URL: bonza_mragent-0.1.5.tar.gz
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26702e281bd49c3ae60ab8604c71ec33aa4b67f0939f7f2fab0d1640b14c66a8
|
|
| MD5 |
32ec102f417ef716f401474d74540449
|
|
| BLAKE2b-256 |
9e77875f24b93c8af17ec6a41c9853a99f38457069707800db595ea70f8ad483
|
File details
Details for the file bonza_mragent-0.1.5-py3-none-any.whl.
File metadata
- Download URL: bonza_mragent-0.1.5-py3-none-any.whl
- Upload date:
- Size: 102.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea75be745c727f7442eb119483c626332a1b0261d9752278a922da080ca012e3
|
|
| MD5 |
96c5cb9deb5d43328208ab6bef04151c
|
|
| BLAKE2b-256 |
378245c5ecc61195327c84daca0cf50e9b14beda08cf17ffcab739626855fb88
|