Skip to content

This is a repo to document the building of a docker image for aider & alias it. Recommend to use official Dockerfile and docs.

Notifications You must be signed in to change notification settings

sistemica/aider-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Aider in Docker

This is a Dockerfile and an example how to alias aider, to avoid python lib conflicts. Original @ https://github.com/paul-gauthier/aider, please check there for all usage docs.

See the installation instructions and other documentation for more details.

Installation

Option 1: Pip Install

$ pip install aider-chat

Option 2: Docker

Build local image

First build local image

./build.sh

Docker run command

Now you can use the command to run. Please either use ANTHROPIC_API_KEY or OPENAI_API_KEY. You need to set one of them with 'export ANTHROPIC_API_KEY=' before.

docker run -it --rm \
  -v $(PWD):/app \
  -e ANTHROPIC_API_KEY \
  -e OPENAI_API_KEY \
  aider-image

Alias for .zshrc

alias aider='docker run -it --rm -v $(PWD):/app -e ANTHROPIC_API_KEY -e OPENAI_API_KEY aider-image'

Usage

  1. Change directory into a git repo:
$ cd /to/your/git/repo
  1. Work with Claude 3.5 Sonnet on your repo:
$ export ANTHROPIC_API_KEY=your-key-goes-here
$ aider
  1. Work with GPT-4 on your repo:
$ export OPENAI_API_KEY=your-key-goes-here
$ aider

See the installation instructions and other documentation for more details.

  • Add images to the chat (GPT-4, Claude 3.5 Sonnet, etc)
  • Add URLs to the chat and aider will read their content
  • Code with your voice

About

This is a repo to document the building of a docker image for aider & alias it. Recommend to use official Dockerfile and docs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published