Installing and Setting Up MADA
This guide will help you install and set up MADA for basic use or for development.
For basic installation and setup, follow the instructions at the following sections:
Developers, see above and also Installing Optional Dependencies
Basic Installation
-
First, create a virtual environment:
-
Activate the virtual environment:
-
Finally, install MADA with pip:
Developer Setup
-
First, clone the repository:
-
Next, move into the cloned repository:
-
Now, create a virtual environment:
-
Activate the virtual environment:
-
Finally, install an editable version of MADA with pip and all development dependencies:
Environment Variable Setup
MADA requires certain environment variables to be set for API authentication and configuration. These will be used by your Model Configuration.
| Variable | Required | Default Value | Purpose |
|---|---|---|---|
API_KEY |
Yes | None | API key for authentication |
API_BASE_URL |
No | https://api.openai.com/v1/responses | API endpoint |
You can set these variables from the command line with:
For developers, you can set these variables using a .env file in the project root. Put the following in your file:
Installing Optional Dependencies
There are two sets of optional dependencies that can be installed: one set for tests and the other for documentation.
These can be installed together:
Or separately: