MADAgent
MADAgent is a lightweight Python launcher for Aider that:
- sets
GEMINI_API_KEY - checks whether
aideris available - installs
aider-chatautomatically 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:
- print a startup banner
- export
GEMINI_API_KEY - verify internet connectivity and confirm the configured Gemini key can generate with the target model
- check whether
aideris installed - install
aider-chatautomatically ifaideris missing - 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_KEYenvironment 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 barepipexecutable across platforms. - Before publishing to PyPI, update the placeholder metadata in
setup.py, especiallyauthor_emailand theproject_urlsvalues.
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| madagent-0.1.0.tar.gz | 5.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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.