Pairforge
Fork of Aider: AI pair programming in your terminal
- active
- ai-pair-programming
- aider
- cli
- coding-assistant
- developer-tools
- git
- llm
- python
pairforge
AI pair programming in your terminal. Edit code in your local git repository through a conversation with an LLM.
Features · Quick start · Architecture · Contributing · Attribution
NOTE
pairforge is a fork of Aider-AI/aider (Apache-2.0). It is an independent project and is not affiliated with or endorsed by the Aider maintainers. The command-line entry point is still aider. See Attribution.
Features
| Any LLM | Cloud or local models: Claude, GPT, DeepSeek, Gemini, Ollama and more via LiteLLM. |
| Repo map | Builds a map of your whole codebase so the model works well in larger projects. |
| Git-native | Auto-commits every change with a sensible message. Diff, review and undo AI edits with the git tools you already use. |
| Multiple edit formats | Edit-block, unified diff, whole-file and patch formats, selected per model. |
| 100+ languages | Syntax-aware repo mapping through tree-sitter. |
| Lint and test loop | Runs your linters and tests after each change and can fix what they report. |
| IDE friendly | Ask for changes by adding comments to your code from any editor. |
| Images and web pages | Add screenshots and URLs to the chat as context. |
| Voice-to-code | Dictate requests and let the model implement them. |
Quick start
pairforge requires Python 3.10 or newer.
# 1. Get the code
git clone https://github.com/imardagokce/pairforge.git
cd pairforge
# 2. Install in a virtual environment
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e .
# 3. Run it inside the project you want to edit
cd /path/to/your/project
export ANTHROPIC_API_KEY=<key> # or OPENAI_API_KEY, DEEPSEEK_API_KEY, ...
aider --model sonnetRun aider --help for every option. Model, provider and configuration details are covered in the upstream documentation, which still applies to this codebase.
Architecture
flowchart LR
main["main.py<br/>startup and args"] --> Commands["Commands<br/>/slash commands"]
main --> Coder["Coder<br/>chat loop"]
Commands --> Coder
Coder --> Model["Model<br/>settings and metadata"]
Coder --> IO["InputOutput<br/>terminal I/O"]
Coder --> Repo["GitRepo<br/>commits and diffs"]
Coder --> Edit["Edit-format coders<br/>editblock, udiff, wholefile, patch"]| Path | Role |
|---|---|
aider/main.py | Argument parsing and startup |
aider/coders/ | Coder base class and the edit-format implementations |
aider/commands.py | In-chat / commands |
aider/models.py | Model definitions and settings |
aider/repo.py | Git integration |
aider/io.py | Terminal input and output |
tests/ | Test suite |
benchmark/ | Benchmark harness |
Development
pip install -r requirements/requirements-dev.txt
pytestUsing with OmniRoute (optional)
OmniRoute is a separate local gateway that exposes an OpenAI-compatible endpoint and routes requests to many providers, with fallback.
npm install -g omniroute && omniroute
aider --omniroute --model openai/<model-id>Inside aider, /omniroute lists the models the gateway currently serves. Pick one with /model openai/<model-id>.
- Use your own API keys with the providers behind the gateway.
- Keep the gateway listening on localhost only, and protect it with a key, because it holds all of your provider keys.
- Using a gateway to share consumer-subscription logins or to disguise requests may violate provider terms and put your accounts at risk. pairforge does not support or recommend this.
Contributing
Issues and pull requests are welcome. See the roadmap for planned work. Please read CONTRIBUTING.md first.
Attribution
pairforge is a modified version of Aider, copyright Aider-AI contributors, used under the Apache License 2.0. Modifications are recorded in the git history, and the required notice is in NOTICE. "Aider" is the name of the original project and is not claimed by pairforge. The original README is kept in docs/UPSTREAM_README.md.
License
Licensed under the Apache License 2.0.
Releases
No releases found.
Recent Commits
Add optional OmniRoute integration
Tolerate litellm versions that lack some exception classes
Add permission modes and folder trust
ROADMAP: auto permission mode covers shell; add plan-first workflow
ROADMAP: mark effort auto done, add trusted folders and fewer prompts
Add --reasoning-effort auto
ROADMAP: add long-term idea for a compiled-language core
Add /compact, /autocompact and /ollama commands
Add ROADMAP.md
Rewrite README: badges, feature table, quick start, architecture