{"slug":"aider","name":"Aider","kind":"runbook","what":"AI pair programming in your terminal that edits your git repo, and it works with local models.","page":"https://insidethemachine.ai/setups/aider","status":"docs-checked","status_label":"Not run: commands checked against the official docs only","status_note":"The listing's pip line is replaced by the uv line from the coding recipe (macOS has no bare python/pip).","wrapper":"The wrapper scripts are generated from the site data. Every .sh passed bash -n and shellcheck and ran in plan mode on Linux (Debian 13). Every .ps1 passed the PowerShell parser and chat.ps1 ran in plan, verify and rollback mode under PowerShell 7 on Linux with Windows calls mocked. Not run on macOS or real Windows.","wrapper_tested":null,"sh":"https://insidethemachine.ai/install/aider.sh","ps1":"https://insidethemachine.ai/install/aider.ps1","md":"https://insidethemachine.ai/install/aider.md","json":"https://insidethemachine.ai/install/aider.json","one_liner":"curl -fsSL https://insidethemachine.ai/install/aider.sh | bash","one_liner_windows":"irm https://insidethemachine.ai/install/aider.ps1 | iex","actions":{"install":"curl -fsSL https://insidethemachine.ai/install/aider.sh | bash","plan":"curl -fsSL https://insidethemachine.ai/install/aider.sh | bash -s -- plan","verify":"curl -fsSL https://insidethemachine.ai/install/aider.sh | bash -s -- verify","rollback":"curl -fsSL https://insidethemachine.ai/install/aider.sh | bash -s -- rollback --yes"},"env":{"ITM_RAM":"memory in GB instead of detecting it"},"model_by_memory_gb":null,"low_memory":null,"platforms":{"macos":{"install":[{"title":"Install Aider","lines":[{"k":"mac","c":"brew install uv"},{"k":"run","c":"uv tool install --force --python python3.12 --with pip aider-chat@latest"}]},{"title":"Configure (your choices)","lines":[{"k":"you","c":"export OLLAMA_API_BASE=http://127.0.0.1:11434","why":"a setting you choose"},{"k":"you","c":"OLLAMA_CONTEXT_LENGTH=8192 ollama serve","why":"per Aider's Ollama docs; raises context to 8k"},{"k":"you","c":"cd /path/to/your/project && aider --model ollama_chat/<model>","why":"docs recommend ollama_chat/ over ollama/"}]}],"verify":[{"run":"aider --version","expect":"prints a version"},{"run":"aider --model ollama_chat/<model> --message 'list the files in this repo' ","expect":"completes one turn against the local model and exits","you":true}],"rollback":[{"k":"run","c":"uv tool uninstall aider-chat"}]},"linux":{"install":[{"title":"Install Aider","lines":[{"k":"run","c":"uv tool install --force --python python3.12 --with pip aider-chat@latest"}]},{"title":"Configure (your choices)","lines":[{"k":"you","c":"export OLLAMA_API_BASE=http://127.0.0.1:11434","why":"a setting you choose"},{"k":"you","c":"OLLAMA_CONTEXT_LENGTH=8192 ollama serve","why":"per Aider's Ollama docs; raises context to 8k"},{"k":"you","c":"cd /path/to/your/project && aider --model ollama_chat/<model>","why":"docs recommend ollama_chat/ over ollama/"}]}],"verify":[{"run":"aider --version","expect":"prints a version"},{"run":"aider --model ollama_chat/<model> --message 'list the files in this repo' ","expect":"completes one turn against the local model and exits","you":true}],"rollback":[{"k":"run","c":"uv tool uninstall aider-chat"}]},"windows":{"install":[{"title":"Install Aider","lines":[{"k":"run","c":"uv tool install --force --python python3.12 --with pip aider-chat@latest"}]}],"verify":[{"run":"aider --version","expect":"prints a version"},{"run":"aider --model ollama_chat/<model> --message 'list the files in this repo' ","expect":"completes one turn against the local model and exits","you":true}],"rollback":[{"k":"run","c":"uv tool uninstall aider-chat"}]}}}