Skip to main content

A lightweight, open-source AI Agent powered by free APIs

Project description

๐Ÿค– MRAgent

PyPI version GitHub release
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

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 Email 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.py and 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.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bonza_mragent-0.1.7.tar.gz (225.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bonza_mragent-0.1.7-py3-none-any.whl (102.4 kB view details)

Uploaded Python 3

File details

Details for the file bonza_mragent-0.1.7.tar.gz.

File metadata

  • Download URL: bonza_mragent-0.1.7.tar.gz
  • Upload date:
  • Size: 225.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for bonza_mragent-0.1.7.tar.gz
Algorithm Hash digest
SHA256 ae5cae4f5b410713d0665f16f1eec27f94a4861a8e87c60cb31b4201f5804375
MD5 31ea34d81bb35afe44329738fb85dcc0
BLAKE2b-256 ac1ee8b667f45d90e9e7aa96407eee9938696ab028f72b714e366ba843c34bcd

See more details on using hashes here.

File details

Details for the file bonza_mragent-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: bonza_mragent-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 102.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for bonza_mragent-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e13a7f0c4d1edf541427eee7b6139bceadfb004e72f272867991f3a8fcd015f0
MD5 d62add581a8d89d6ea71fb0a704a2eae
BLAKE2b-256 15f6f0dd8cfca5f142e3c1892e6d17c1bf6bdfce956cb423189d9e1af947436a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page