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

๐Ÿ—๏ธ 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

# 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

๐Ÿค 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.3.tar.gz (82.1 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.3-py3-none-any.whl (90.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bonza_mragent-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2ff4f61fbcec6497874042832bb28483b34faab89653c449c1166be1f2d83581
MD5 7e12df45327f3f53042a4d39ae0ce822
BLAKE2b-256 6845f912a5c021444d986c7cc91cd3ae42095cdb1d61cf5bdff6ebd2f1a5a7b2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bonza_mragent-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fe2f9cd160fa400741043daadac4cd885b3f55f8967fd6b01dbe3ae2959fcf4e
MD5 c4b86c127edf43c75dadc88e4e3df631
BLAKE2b-256 8203c92a22cca18386e48464eccc70e36a73df75fe689b802a603bd73c697cc7

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