Launcher for Aider with a preconfigured Gemini API key.
Project description
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.
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 madagent-0.1.0.tar.gz.
File metadata
- Download URL: madagent-0.1.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7ce95d6a280c9b1410b0e8e06edeefcf64b1d07967d5d0f925e2d4e88fb8c1d
|
|
| MD5 |
f9995f34bdb508a3a4ffa938276e268c
|
|
| BLAKE2b-256 |
ef227a2fa71de2e54136ceb161f548e4a0d7b9200e90b3af07d60553f4d9b716
|
File details
Details for the file madagent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: madagent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfc79c1e1a49cdfeac4e9c8cbf744ef7de7f6e3cd251ebfb0bba1683dd93895f
|
|
| MD5 |
a30bfe819e870faa1b09f44a9a710e10
|
|
| BLAKE2b-256 |
23cdacb5bc66ff284da80893402163aa88c89647cae8c58ebb851fc5b574cd85
|