- Requires Docker to be installed.
- If using as-is, you will also need an OpenAI API key (but autogen can be configured to use other models).
- Optionally, build the docker image yourself:
- Run
docker build -t autogen-aider .. - Replace all instances of
danum/autogen-aiderindocker-compose.ymlwithautogen-aider.
- Run
- Create
.envand add OpenAI API key:echo OPENAI_API_KEY=my-api-key > .env. - Copy
my-projectand rename with your project name:cp -r my-project my-new-project. - Specify your new project folder as bind-mount source via env var:
export MOUNT_SOURCE=./my-new-project.- Alternatively, simply include
-e MOUNT_SOURCE=./my-new-projectafterdocker compose run, below.
- Alternatively, simply include
- Optionally, edit 'main.py' in
my-new-projectto describe the task that you want autogen to work on. - Run
docker compose run autogen-aider.- Alternatively, run
docker compose run --rm autogen-aider /bin/bashto prevent auto-run of autogen.- From within the container, execute autogen like this:
python main.py
- From within the container, execute autogen like this:
- Alternatively, run
- The code generated by autogen can be found in
generated-content, inmy-new-project. - Optionally, if you haven't exited the docker container yet, run
aider --model gpt-4-1106-preview main.py(or any other file) to continue coding, with aider as your pair programmer.
-
Notifications
You must be signed in to change notification settings - Fork 2
daniel-um/autogen-aider-docker
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
A minimal setup for using autogen in a docker container, with aider tool at the ready.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published