Aider lets you pair program with large language models directly from your terminal. You can start a fresh project or work on an existing codebase, and it builds a map of your whole repository so it copes better with bigger projects.
It connects to many cloud models, including Claude, DeepSeek and OpenAI models, as well as local models running on your own machine. The tool is free and open source, with millions of installs.