Skip to main content

MADAgent

MADAgent is a lightweight Python launcher for Aider that:

  • sets GEMINI_API_KEY
  • checks whether aider is available
  • installs aider-chat automatically if needed
  • launches Aider with:
aider --model gemini/gemini-2.5-flash

It is designed to work from a regular terminal as well as the Android Studio integrated terminal on Windows, Linux, and macOS.

Warning

This tool is intended for temporary educational use only.

Project Structure

madagent/
├── setup.py
├── README.md
├── requirements.txt
├── madagent/
│   ├── __init__.py
│   └── cli.py

Installation

From PyPI:

pip install madagent

From the project root:

pip install .

If your environment uses python -m pip, this also works:

python -m pip install .

Usage

After installation, start the launcher with:

madagent

On startup, the launcher will:

  1. print a startup banner
  2. export GEMINI_API_KEY
  3. verify internet connectivity and confirm the configured Gemini key can generate with the target model
  4. check whether aider is installed
  5. install aider-chat automatically if aider is missing
  6. launch Aider with Gemini Flash

Replace the API Key

Edit the API_KEY constant in madagent/cli.py:

API_KEY = "your-new-gemini-api-key"

Then reinstall the package:

pip install .

If you want to force a reinstall:

pip install --force-reinstall .

If startup says the project is denied access, the current key is not usable for Gemini generation and must be replaced with a working Google AI Studio Gemini API key.

Uninstall

To remove the launcher:

pip uninstall madagent

If you also want to remove Aider installed by the launcher:

pip uninstall aider-chat

Notes

  • Authentication uses only the GEMINI_API_KEY environment variable.
  • No browser OAuth flow is implemented.
  • The launcher uses the current Python interpreter to install aider-chat, which is more reliable than shelling out to a bare pip executable across platforms.
  • Before publishing to PyPI, update the placeholder metadata in setup.py, especially author_email and the project_urls values.

Metadata

Release files for madagent 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for madagent 0.1.0
File Size Uploaded Provenance
madagent-0.1.0.tar.gz 5.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for madagent 0.1.0
File Interpreter ABI Platform
madagent-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / madagent-0.1.0.tar.gz

Download URL madagent-0.1.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a7ce95d6a280c9b1410b0e8e06edeefcf64b1d07967d5d0f925e2d4e88fb8c1d
BLAKE2b-256 checksum
How to use checksums
ef227a2fa71de2e54136ceb161f548e4a0d7b9200e90b3af07d60553f4d9b716
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.7

Release files / madagent-0.1.0-py3-none-any.whl

Download URL madagent-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfc79c1e1a49cdfeac4e9c8cbf744ef7de7f6e3cd251ebfb0bba1683dd93895f
BLAKE2b-256 checksum
How to use checksums
23cdacb5bc66ff284da80893402163aa88c89647cae8c58ebb851fc5b574cd85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.7

Security for madagent 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page