Skip to main content

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 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.

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

madagent-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

madagent-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

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

Hashes for madagent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a7ce95d6a280c9b1410b0e8e06edeefcf64b1d07967d5d0f925e2d4e88fb8c1d
MD5 f9995f34bdb508a3a4ffa938276e268c
BLAKE2b-256 ef227a2fa71de2e54136ceb161f548e4a0d7b9200e90b3af07d60553f4d9b716

See more details on using hashes here.

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

Hashes for madagent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfc79c1e1a49cdfeac4e9c8cbf744ef7de7f6e3cd251ebfb0bba1683dd93895f
MD5 a30bfe819e870faa1b09f44a9a710e10
BLAKE2b-256 23cdacb5bc66ff284da80893402163aa88c89647cae8c58ebb851fc5b574cd85

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