-
Notifications
You must be signed in to change notification settings - Fork 0
Setup Guide
GSD Bot edited this page May 24, 2026
·
1 revision
This guide is self-contained. Every step is copy-pasteable. No external references required.
- Python 3.10 or later (python.org)
- pip (included with Python 3.10+)
- Git
- A Gemini API key (aistudio.google.com)
Clone the repository and create a virtual environment:
git clone https://github.com/Coding-Autopilot-System/autogen.git
cd autogen
python -m venv .venvActivate the virtual environment:
# Windows PowerShell:
.\.venv\Scripts\Activate.ps1
# macOS / Linux:
source .venv/bin/activateInstall the required packages (no requirements.txt — install directly):
pip install agent-framework python-dotenv fastapi uvicornCopy the example environment file and set your API key:
cp .env.example .envOpen .env and set at minimum:
GEMINI_API_KEY=your_gemini_api_key_here
See the Configuration Reference for all available variables.
Verify your setup with the doctor command:
python main.py doctorRun a smoke test with a sample prompt:
python main.py smoke --message "List the files in this repo"After running python main.py doctor, a successful setup produces these observable results:
- Config printed without error — the doctor command prints your configuration values (MAF_MODEL, MAF_REPO_ROOT, etc.) without raising an exception. The API key value is not printed in full — only its presence is confirmed.
- No ModuleNotFoundError — all required packages (agent-framework, python-dotenv) are importable without errors.
-
Smoke test returns an agent response —
python main.py smokesends a prompt through the full MAF routing pipeline and returns a text response from the configured model.
If python main.py doctor fails with "command not found", ensure your virtual environment is activated and python main.py is run from the repo root.