# Aider | AI pair programming in your terminal

**URL:** <https://onehack.st/t/aider-ai-pair-programming-in-your-terminal/294087>\
**Category:** Tools & Scripts\
**Tags:** ai\
**Created:** [October 20, 2024, 7:15pm UTC](https://onehack.st/t/aider-ai-pair-programming-in-your-terminal/294087 "2024-10-20T19:15:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheStrength](https://onehack.st/user_avatar/onehack.st/thestrength/32/46753_2.png) [@TheStrength](https://onehack.st/u/TheStrength)\
**Post date:** [October 20, 2024, 7:15pm UTC](https://onehack.st/t/aider-ai-pair-programming-in-your-terminal/294087/1 "2024-10-20T19:15:29Z")

</div>

# Aider is AI pair programming in your terminal

Aider lets you pair program with LLMs, to edit code in your local git repository. Start a new project or work with an existing git repo. Aider works best with GPT-4o & Claude 3.5 Sonnet and can [connect to almost any LLM](https://aider.chat/docs/llms.html).

[![aider screencast](https://camo.githubusercontent.com/6d2d9a8d839bed3d9dc1bf62d47f0767e19906ce76d369a78ef9805dbfb34609/68747470733a2f2f61696465722e636861742f6173736574732f73637265656e636173742e737667)](https://camo.githubusercontent.com/6d2d9a8d839bed3d9dc1bf62d47f0767e19906ce76d369a78ef9805dbfb34609/68747470733a2f2f61696465722e636861742f6173736574732f73637265656e636173742e737667)

[![](https://camo.githubusercontent.com/4ab2f746f002096dc358c7ec3aa1b593214a80fcdb19a45c10fcafcd71374093/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4a6f696e2d446973636f72642d626c75652e737667) ](https://discord.gg/Tv2uQnR88V)[![](https://camo.githubusercontent.com/8d42157ba380841a473ad00ae657c6b1d10de3d294490b954786863b19320188/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f526561642d446f63732d677265656e2e737667)](https://aider.chat/docs/install.html)

## Getting started

You can get started quickly like this:

```auto
python -m pip install -U aider-chat

# Change directory into a git repo
cd /to/your/git/repo

# Work with Claude 3.5 Sonnet on your repo
export ANTHROPIC_API_KEY=your-key-goes-here
aider

# Work with GPT-4o on your repo
export OPENAI_API_KEY=your-key-goes-here
aider 

```

See the [installation instructions](https://aider.chat/docs/install.html) and other [documentation](https://aider.chat/docs/usage.html) for more details.

## Features

- Run aider with the files you want to edit: `aider <file1> <file2> ...`
- Ask for changes:
  - Add new features or test cases.
  - Describe a bug.
  - Paste in an error message or or GitHub issue URL.
  - Refactor code.
  - Update docs.

- Aider will edit your files to complete your request.
- Aider [automatically git commits](https://aider.chat/docs/git.html) changes with a sensible commit message.
- Aider works with [most popular languages](https://aider.chat/docs/languages.html): python, javascript, typescript, php, html, css, and more…
- Aider works best with GPT-4o & Claude 3.5 Sonnet and can [connect to almost any LLM](https://aider.chat/docs/llms.html).
- Aider can edit multiple files at once for complex requests.
- Aider uses a [map of your entire git repo](https://aider.chat/docs/repomap.html), which helps it work well in larger codebases.
- Edit files in your editor while chatting with aider, and it will always use the latest version. Pair program with AI.
- [Add images to the chat](https://aider.chat/docs/usage/images-urls.html) (GPT-4o, Claude 3.5 Sonnet, etc).
- [Add URLs to the chat](https://aider.chat/docs/usage/images-urls.html) and aider will read their content.
- [Code with your voice](https://aider.chat/docs/usage/voice.html).

## Top tier performance

[Aider has one of the top scores on SWE Bench](https://aider.chat/2024/06/02/main-swe-bench.html). SWE Bench is a challenging software engineering benchmark where aider solved _real_ GitHub issues from popular open source projects like django, scikitlearn, matplotlib, etc.

## More info

- [Documentation](https://aider.chat/)
- [Installation](https://aider.chat/docs/install.html)
- [Usage](https://aider.chat/docs/usage.html)
- [Tutorial videos](https://aider.chat/docs/usage/tutorials.html)
- [Connecting to LLMs](https://aider.chat/docs/llms.html)
- [Configuration](https://aider.chat/docs/config.html)
- [Troubleshooting](https://aider.chat/docs/troubleshooting.html)
- [LLM Leaderboards](https://aider.chat/docs/leaderboards/)
- [GitHub](https://github.com/Aider-AI/aider)
- [Discord](https://discord.gg/Tv2uQnR88V)
- [Blog](https://aider.chat/blog/)

## Kind words from users

- _The best free open source AI coding assistant._ – [IndyDevDan](https://youtu.be/YALpX8oOn78)
- _The best AI coding assistant so far._ – [Matthew Berman](https://www.youtube.com/watch?v=df8afeb1FY8)
- _Aider … has easily quadrupled my coding productivity._ – [SOLAR\_FIELDS](https://news.ycombinator.com/item?id=36212100)
- _It’s a cool workflow… Aider’s ergonomics are perfect for me._ – [qup](https://news.ycombinator.com/item?id=38185326)
- _It’s really like having your senior developer live right in your Git repo - truly amazing!_ – [rappster](https://github.com/Aider-AI/aider/issues/124)
- _What an amazing tool. It’s incredible._ – [valyagolev](https://github.com/Aider-AI/aider/issues/6#issue-1722897858)
- _Aider is such an astounding thing!_ – [cgrothaus](https://github.com/Aider-AI/aider/issues/82#issuecomment-1631876700)
- _It was WAY faster than I would be getting off the ground and making the first few working versions._ – [Daniel Feldman](https://twitter.com/d_feldman/status/1662295077387923456)
- _THANK YOU for Aider! It really feels like a glimpse into the future of coding._ – [derwiki](https://news.ycombinator.com/item?id=38205643)
- _It’s just amazing. It is freeing me to do things I felt were out my comfort zone before._ – [Dougie](https://discord.com/channels/1131200896827654144/1174002618058678323/1174084556257775656)
- _This project is stellar._ – [funkytaco](https://github.com/Aider-AI/aider/issues/112#issuecomment-1637429008)
- _Amazing project, definitely the best AI coding assistant I’ve used._ – [joshuavial](https://github.com/Aider-AI/aider/issues/84)
- _I absolutely love using Aider … It makes software development feel so much lighter as an experience._ – [principalideal0](https://discord.com/channels/1131200896827654144/1133421607499595858/1229689636012691468)
- _I have been recovering from multiple shoulder surgeries … and have used aider extensively. It has allowed me to continue productivity._ – [codeninja](https://www.reddit.com/r/OpenAI/s/nmNwkHy1zG)
- _I am an aider addict. I’m getting so much more work done, but in less time._ – [dandandan](https://discord.com/channels/1131200896827654144/1131200896827654149/1135913253483069470)
- _After wasting $100 on tokens trying to find something better, I’m back to Aider. It blows everything else out of the water hands down, there’s no competition whatsoever._ – [SystemSculpt](https://discord.com/channels/1131200896827654144/1131200896827654149/1178736602797846548)
- _Aider is amazing, coupled with Sonnet 3.5 it’s quite mind blowing._ – [Josh Dingus](https://discord.com/channels/1131200896827654144/1133060684540813372/1262374225298198548)
- _Hands down, this is the best AI coding assistant tool so far._ – [IndyDevDan](https://www.youtube.com/watch?v=MPYFPvxfGZs)
- _[Aider] changed my daily coding workflows. It’s mind-blowing how a single Python application can change your life._ – [maledorak](https://discord.com/channels/1131200896827654144/1131200896827654149/1258453375620747264)
- _Best agent for actual dev work in existing codebases._ – [Nick Dobos](https://twitter.com/NickADobos/status/1690408967963652097?s=20)

## GitHub:

[https://github.com/Aider-AI/aider](https://github.com/Aider-AI/aider)
