chatmcp-cli 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aider/__init__.py +20 -0
- aider/__main__.py +4 -0
- aider/_version.py +21 -0
- aider/analytics.py +250 -0
- aider/args.py +926 -0
- aider/args_formatter.py +228 -0
- aider/coders/__init__.py +34 -0
- aider/coders/architect_coder.py +48 -0
- aider/coders/architect_prompts.py +40 -0
- aider/coders/ask_coder.py +9 -0
- aider/coders/ask_prompts.py +35 -0
- aider/coders/base_coder.py +2483 -0
- aider/coders/base_prompts.py +60 -0
- aider/coders/chat_chunks.py +64 -0
- aider/coders/context_coder.py +53 -0
- aider/coders/context_prompts.py +75 -0
- aider/coders/editblock_coder.py +657 -0
- aider/coders/editblock_fenced_coder.py +10 -0
- aider/coders/editblock_fenced_prompts.py +143 -0
- aider/coders/editblock_func_coder.py +141 -0
- aider/coders/editblock_func_prompts.py +27 -0
- aider/coders/editblock_prompts.py +174 -0
- aider/coders/editor_diff_fenced_coder.py +9 -0
- aider/coders/editor_diff_fenced_prompts.py +11 -0
- aider/coders/editor_editblock_coder.py +8 -0
- aider/coders/editor_editblock_prompts.py +18 -0
- aider/coders/editor_whole_coder.py +8 -0
- aider/coders/editor_whole_prompts.py +10 -0
- aider/coders/help_coder.py +16 -0
- aider/coders/help_prompts.py +46 -0
- aider/coders/patch_coder.py +706 -0
- aider/coders/patch_prompts.py +161 -0
- aider/coders/search_replace.py +757 -0
- aider/coders/shell.py +37 -0
- aider/coders/single_wholefile_func_coder.py +102 -0
- aider/coders/single_wholefile_func_prompts.py +27 -0
- aider/coders/udiff_coder.py +429 -0
- aider/coders/udiff_prompts.py +115 -0
- aider/coders/udiff_simple.py +14 -0
- aider/coders/udiff_simple_prompts.py +25 -0
- aider/coders/wholefile_coder.py +144 -0
- aider/coders/wholefile_func_coder.py +134 -0
- aider/coders/wholefile_func_prompts.py +27 -0
- aider/coders/wholefile_prompts.py +67 -0
- aider/commands.py +1665 -0
- aider/copypaste.py +72 -0
- aider/deprecated.py +126 -0
- aider/diffs.py +128 -0
- aider/dump.py +29 -0
- aider/editor.py +147 -0
- aider/exceptions.py +107 -0
- aider/format_settings.py +26 -0
- aider/gui.py +545 -0
- aider/help.py +163 -0
- aider/help_pats.py +19 -0
- aider/history.py +143 -0
- aider/io.py +1175 -0
- aider/linter.py +304 -0
- aider/llm.py +47 -0
- aider/main.py +1267 -0
- aider/mdstream.py +243 -0
- aider/models.py +1286 -0
- aider/onboarding.py +428 -0
- aider/openrouter.py +128 -0
- aider/prompts.py +64 -0
- aider/queries/tree-sitter-language-pack/README.md +7 -0
- aider/queries/tree-sitter-language-pack/arduino-tags.scm +5 -0
- aider/queries/tree-sitter-language-pack/c-tags.scm +9 -0
- aider/queries/tree-sitter-language-pack/chatito-tags.scm +16 -0
- aider/queries/tree-sitter-language-pack/commonlisp-tags.scm +122 -0
- aider/queries/tree-sitter-language-pack/cpp-tags.scm +15 -0
- aider/queries/tree-sitter-language-pack/csharp-tags.scm +26 -0
- aider/queries/tree-sitter-language-pack/d-tags.scm +26 -0
- aider/queries/tree-sitter-language-pack/dart-tags.scm +92 -0
- aider/queries/tree-sitter-language-pack/elisp-tags.scm +5 -0
- aider/queries/tree-sitter-language-pack/elixir-tags.scm +54 -0
- aider/queries/tree-sitter-language-pack/elm-tags.scm +19 -0
- aider/queries/tree-sitter-language-pack/gleam-tags.scm +41 -0
- aider/queries/tree-sitter-language-pack/go-tags.scm +42 -0
- aider/queries/tree-sitter-language-pack/java-tags.scm +20 -0
- aider/queries/tree-sitter-language-pack/javascript-tags.scm +88 -0
- aider/queries/tree-sitter-language-pack/lua-tags.scm +34 -0
- aider/queries/tree-sitter-language-pack/ocaml-tags.scm +115 -0
- aider/queries/tree-sitter-language-pack/ocaml_interface-tags.scm +98 -0
- aider/queries/tree-sitter-language-pack/pony-tags.scm +39 -0
- aider/queries/tree-sitter-language-pack/properties-tags.scm +5 -0
- aider/queries/tree-sitter-language-pack/python-tags.scm +14 -0
- aider/queries/tree-sitter-language-pack/r-tags.scm +21 -0
- aider/queries/tree-sitter-language-pack/racket-tags.scm +12 -0
- aider/queries/tree-sitter-language-pack/ruby-tags.scm +64 -0
- aider/queries/tree-sitter-language-pack/rust-tags.scm +60 -0
- aider/queries/tree-sitter-language-pack/solidity-tags.scm +43 -0
- aider/queries/tree-sitter-language-pack/swift-tags.scm +51 -0
- aider/queries/tree-sitter-language-pack/udev-tags.scm +20 -0
- aider/queries/tree-sitter-languages/README.md +23 -0
- aider/queries/tree-sitter-languages/c-tags.scm +9 -0
- aider/queries/tree-sitter-languages/c_sharp-tags.scm +46 -0
- aider/queries/tree-sitter-languages/cpp-tags.scm +15 -0
- aider/queries/tree-sitter-languages/dart-tags.scm +91 -0
- aider/queries/tree-sitter-languages/elisp-tags.scm +8 -0
- aider/queries/tree-sitter-languages/elixir-tags.scm +54 -0
- aider/queries/tree-sitter-languages/elm-tags.scm +19 -0
- aider/queries/tree-sitter-languages/go-tags.scm +30 -0
- aider/queries/tree-sitter-languages/hcl-tags.scm +77 -0
- aider/queries/tree-sitter-languages/java-tags.scm +20 -0
- aider/queries/tree-sitter-languages/javascript-tags.scm +88 -0
- aider/queries/tree-sitter-languages/kotlin-tags.scm +27 -0
- aider/queries/tree-sitter-languages/ocaml-tags.scm +115 -0
- aider/queries/tree-sitter-languages/ocaml_interface-tags.scm +98 -0
- aider/queries/tree-sitter-languages/php-tags.scm +26 -0
- aider/queries/tree-sitter-languages/python-tags.scm +12 -0
- aider/queries/tree-sitter-languages/ql-tags.scm +26 -0
- aider/queries/tree-sitter-languages/ruby-tags.scm +64 -0
- aider/queries/tree-sitter-languages/rust-tags.scm +60 -0
- aider/queries/tree-sitter-languages/scala-tags.scm +65 -0
- aider/queries/tree-sitter-languages/typescript-tags.scm +41 -0
- aider/reasoning_tags.py +82 -0
- aider/repo.py +623 -0
- aider/repomap.py +847 -0
- aider/report.py +200 -0
- aider/resources/__init__.py +3 -0
- aider/resources/model-metadata.json +468 -0
- aider/resources/model-settings.yml +1767 -0
- aider/run_cmd.py +132 -0
- aider/scrape.py +284 -0
- aider/sendchat.py +61 -0
- aider/special.py +203 -0
- aider/urls.py +17 -0
- aider/utils.py +338 -0
- aider/versioncheck.py +113 -0
- aider/voice.py +187 -0
- aider/waiting.py +221 -0
- aider/watch.py +318 -0
- aider/watch_prompts.py +12 -0
- aider/website/Gemfile +8 -0
- aider/website/_includes/blame.md +162 -0
- aider/website/_includes/get-started.md +22 -0
- aider/website/_includes/help-tip.md +5 -0
- aider/website/_includes/help.md +24 -0
- aider/website/_includes/install.md +5 -0
- aider/website/_includes/keys.md +4 -0
- aider/website/_includes/model-warnings.md +67 -0
- aider/website/_includes/multi-line.md +22 -0
- aider/website/_includes/python-m-aider.md +5 -0
- aider/website/_includes/recording.css +228 -0
- aider/website/_includes/recording.md +34 -0
- aider/website/_includes/replit-pipx.md +9 -0
- aider/website/_includes/works-best.md +1 -0
- aider/website/_sass/custom/custom.scss +103 -0
- aider/website/docs/config/adv-model-settings.md +1881 -0
- aider/website/docs/config/aider_conf.md +527 -0
- aider/website/docs/config/api-keys.md +90 -0
- aider/website/docs/config/dotenv.md +478 -0
- aider/website/docs/config/editor.md +127 -0
- aider/website/docs/config/model-aliases.md +103 -0
- aider/website/docs/config/options.md +843 -0
- aider/website/docs/config/reasoning.md +209 -0
- aider/website/docs/config.md +44 -0
- aider/website/docs/faq.md +378 -0
- aider/website/docs/git.md +76 -0
- aider/website/docs/index.md +47 -0
- aider/website/docs/install/codespaces.md +39 -0
- aider/website/docs/install/docker.md +57 -0
- aider/website/docs/install/optional.md +100 -0
- aider/website/docs/install/replit.md +8 -0
- aider/website/docs/install.md +115 -0
- aider/website/docs/languages.md +264 -0
- aider/website/docs/legal/contributor-agreement.md +111 -0
- aider/website/docs/legal/privacy.md +104 -0
- aider/website/docs/llms/anthropic.md +77 -0
- aider/website/docs/llms/azure.md +48 -0
- aider/website/docs/llms/bedrock.md +132 -0
- aider/website/docs/llms/cohere.md +34 -0
- aider/website/docs/llms/deepseek.md +32 -0
- aider/website/docs/llms/gemini.md +49 -0
- aider/website/docs/llms/github.md +105 -0
- aider/website/docs/llms/groq.md +36 -0
- aider/website/docs/llms/lm-studio.md +39 -0
- aider/website/docs/llms/ollama.md +75 -0
- aider/website/docs/llms/openai-compat.md +39 -0
- aider/website/docs/llms/openai.md +58 -0
- aider/website/docs/llms/openrouter.md +78 -0
- aider/website/docs/llms/other.md +103 -0
- aider/website/docs/llms/vertex.md +50 -0
- aider/website/docs/llms/warnings.md +10 -0
- aider/website/docs/llms/xai.md +53 -0
- aider/website/docs/llms.md +54 -0
- aider/website/docs/more/analytics.md +122 -0
- aider/website/docs/more/edit-formats.md +116 -0
- aider/website/docs/more/infinite-output.md +137 -0
- aider/website/docs/more-info.md +8 -0
- aider/website/docs/recordings/auto-accept-architect.md +31 -0
- aider/website/docs/recordings/dont-drop-original-read-files.md +35 -0
- aider/website/docs/recordings/index.md +21 -0
- aider/website/docs/recordings/model-accepts-settings.md +69 -0
- aider/website/docs/recordings/tree-sitter-language-pack.md +80 -0
- aider/website/docs/repomap.md +112 -0
- aider/website/docs/scripting.md +100 -0
- aider/website/docs/troubleshooting/aider-not-found.md +24 -0
- aider/website/docs/troubleshooting/edit-errors.md +76 -0
- aider/website/docs/troubleshooting/imports.md +62 -0
- aider/website/docs/troubleshooting/models-and-keys.md +54 -0
- aider/website/docs/troubleshooting/support.md +79 -0
- aider/website/docs/troubleshooting/token-limits.md +96 -0
- aider/website/docs/troubleshooting/warnings.md +12 -0
- aider/website/docs/troubleshooting.md +11 -0
- aider/website/docs/usage/browser.md +57 -0
- aider/website/docs/usage/caching.md +49 -0
- aider/website/docs/usage/commands.md +132 -0
- aider/website/docs/usage/conventions.md +119 -0
- aider/website/docs/usage/copypaste.md +121 -0
- aider/website/docs/usage/images-urls.md +48 -0
- aider/website/docs/usage/lint-test.md +118 -0
- aider/website/docs/usage/modes.md +211 -0
- aider/website/docs/usage/not-code.md +179 -0
- aider/website/docs/usage/notifications.md +87 -0
- aider/website/docs/usage/tips.md +79 -0
- aider/website/docs/usage/tutorials.md +30 -0
- aider/website/docs/usage/voice.md +121 -0
- aider/website/docs/usage/watch.md +294 -0
- aider/website/docs/usage.md +92 -0
- aider/website/share/index.md +101 -0
- chatmcp_cli-0.1.0.dist-info/METADATA +502 -0
- chatmcp_cli-0.1.0.dist-info/RECORD +228 -0
- chatmcp_cli-0.1.0.dist-info/WHEEL +5 -0
- chatmcp_cli-0.1.0.dist-info/entry_points.txt +3 -0
- chatmcp_cli-0.1.0.dist-info/licenses/LICENSE.txt +202 -0
- chatmcp_cli-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,478 @@
|
|
1
|
+
---
|
2
|
+
parent: Configuration
|
3
|
+
nav_order: 20
|
4
|
+
description: Using a .env file to store LLM API keys for aider.
|
5
|
+
---
|
6
|
+
|
7
|
+
# Config with .env
|
8
|
+
|
9
|
+
You can use a `.env` file to store API keys and other settings for the
|
10
|
+
models you use with aider.
|
11
|
+
You can also set many general aider options
|
12
|
+
in the `.env` file.
|
13
|
+
|
14
|
+
Aider will look for a `.env` file in these locations:
|
15
|
+
|
16
|
+
- Your home directory.
|
17
|
+
- The root of your git repo.
|
18
|
+
- The current directory.
|
19
|
+
- As specified with the `--env-file <filename>` parameter.
|
20
|
+
|
21
|
+
If the files above exist, they will be loaded in that order. Files loaded last will take priority.
|
22
|
+
|
23
|
+
{% include keys.md %}
|
24
|
+
|
25
|
+
## Sample .env file
|
26
|
+
|
27
|
+
Below is a sample `.env` file, which you
|
28
|
+
can also
|
29
|
+
[download from GitHub](https://github.com/Aider-AI/aider/blob/main/aider/website/assets/sample.env).
|
30
|
+
|
31
|
+
<!--[[[cog
|
32
|
+
from aider.args import get_sample_dotenv
|
33
|
+
from pathlib import Path
|
34
|
+
text=get_sample_dotenv()
|
35
|
+
Path("aider/website/assets/sample.env").write_text(text)
|
36
|
+
cog.outl("```")
|
37
|
+
cog.out(text)
|
38
|
+
cog.outl("```")
|
39
|
+
]]]-->
|
40
|
+
```
|
41
|
+
##########################################################
|
42
|
+
# Sample aider .env file.
|
43
|
+
# Place at the root of your git repo.
|
44
|
+
# Or use `aider --env <fname>` to specify.
|
45
|
+
##########################################################
|
46
|
+
|
47
|
+
#################
|
48
|
+
# LLM parameters:
|
49
|
+
#
|
50
|
+
# Include xxx_API_KEY parameters and other params needed for your LLMs.
|
51
|
+
# See https://aider.chat/docs/llms.html for details.
|
52
|
+
|
53
|
+
## OpenAI
|
54
|
+
#OPENAI_API_KEY=
|
55
|
+
|
56
|
+
## Anthropic
|
57
|
+
#ANTHROPIC_API_KEY=
|
58
|
+
|
59
|
+
##...
|
60
|
+
|
61
|
+
#############
|
62
|
+
# Main model:
|
63
|
+
|
64
|
+
## Specify the model to use for the main chat
|
65
|
+
#AIDER_MODEL=
|
66
|
+
|
67
|
+
########################
|
68
|
+
# API Keys and settings:
|
69
|
+
|
70
|
+
## Specify the OpenAI API key
|
71
|
+
#AIDER_OPENAI_API_KEY=
|
72
|
+
|
73
|
+
## Specify the Anthropic API key
|
74
|
+
#AIDER_ANTHROPIC_API_KEY=
|
75
|
+
|
76
|
+
## Specify the api base url
|
77
|
+
#AIDER_OPENAI_API_BASE=
|
78
|
+
|
79
|
+
## (deprecated, use --set-env OPENAI_API_TYPE=<value>)
|
80
|
+
#AIDER_OPENAI_API_TYPE=
|
81
|
+
|
82
|
+
## (deprecated, use --set-env OPENAI_API_VERSION=<value>)
|
83
|
+
#AIDER_OPENAI_API_VERSION=
|
84
|
+
|
85
|
+
## (deprecated, use --set-env OPENAI_API_DEPLOYMENT_ID=<value>)
|
86
|
+
#AIDER_OPENAI_API_DEPLOYMENT_ID=
|
87
|
+
|
88
|
+
## (deprecated, use --set-env OPENAI_ORGANIZATION=<value>)
|
89
|
+
#AIDER_OPENAI_ORGANIZATION_ID=
|
90
|
+
|
91
|
+
## Set an environment variable (to control API settings, can be used multiple times)
|
92
|
+
#AIDER_SET_ENV=
|
93
|
+
|
94
|
+
## Set an API key for a provider (eg: --api-key provider=<key> sets PROVIDER_API_KEY=<key>)
|
95
|
+
#AIDER_API_KEY=
|
96
|
+
|
97
|
+
#################
|
98
|
+
# Model settings:
|
99
|
+
|
100
|
+
## List known models which match the (partial) MODEL name
|
101
|
+
#AIDER_LIST_MODELS=
|
102
|
+
|
103
|
+
## Specify a file with aider model settings for unknown models
|
104
|
+
#AIDER_MODEL_SETTINGS_FILE=.aider.model.settings.yml
|
105
|
+
|
106
|
+
## Specify a file with context window and costs for unknown models
|
107
|
+
#AIDER_MODEL_METADATA_FILE=.aider.model.metadata.json
|
108
|
+
|
109
|
+
## Add a model alias (can be used multiple times)
|
110
|
+
#AIDER_ALIAS=
|
111
|
+
|
112
|
+
## Set the reasoning_effort API parameter (default: not set)
|
113
|
+
#AIDER_REASONING_EFFORT=
|
114
|
+
|
115
|
+
## Set the thinking token budget for models that support it (default: not set)
|
116
|
+
#AIDER_THINKING_TOKENS=
|
117
|
+
|
118
|
+
## Verify the SSL cert when connecting to models (default: True)
|
119
|
+
#AIDER_VERIFY_SSL=true
|
120
|
+
|
121
|
+
## Timeout in seconds for API calls (default: None)
|
122
|
+
#AIDER_TIMEOUT=
|
123
|
+
|
124
|
+
## Specify what edit format the LLM should use (default depends on model)
|
125
|
+
#AIDER_EDIT_FORMAT=
|
126
|
+
|
127
|
+
## Use architect edit format for the main chat
|
128
|
+
#AIDER_ARCHITECT=
|
129
|
+
|
130
|
+
## Enable/disable automatic acceptance of architect changes (default: True)
|
131
|
+
#AIDER_AUTO_ACCEPT_ARCHITECT=true
|
132
|
+
|
133
|
+
## Specify the model to use for commit messages and chat history summarization (default depends on --model)
|
134
|
+
#AIDER_WEAK_MODEL=
|
135
|
+
|
136
|
+
## Specify the model to use for editor tasks (default depends on --model)
|
137
|
+
#AIDER_EDITOR_MODEL=
|
138
|
+
|
139
|
+
## Specify the edit format for the editor model (default: depends on editor model)
|
140
|
+
#AIDER_EDITOR_EDIT_FORMAT=
|
141
|
+
|
142
|
+
## Only work with models that have meta-data available (default: True)
|
143
|
+
#AIDER_SHOW_MODEL_WARNINGS=true
|
144
|
+
|
145
|
+
## Check if model accepts settings like reasoning_effort/thinking_tokens (default: True)
|
146
|
+
#AIDER_CHECK_MODEL_ACCEPTS_SETTINGS=true
|
147
|
+
|
148
|
+
## Soft limit on tokens for chat history, after which summarization begins. If unspecified, defaults to the model's max_chat_history_tokens.
|
149
|
+
#AIDER_MAX_CHAT_HISTORY_TOKENS=
|
150
|
+
|
151
|
+
#################
|
152
|
+
# Cache settings:
|
153
|
+
|
154
|
+
## Enable caching of prompts (default: False)
|
155
|
+
#AIDER_CACHE_PROMPTS=false
|
156
|
+
|
157
|
+
## Number of times to ping at 5min intervals to keep prompt cache warm (default: 0)
|
158
|
+
#AIDER_CACHE_KEEPALIVE_PINGS=false
|
159
|
+
|
160
|
+
###################
|
161
|
+
# Repomap settings:
|
162
|
+
|
163
|
+
## Suggested number of tokens to use for repo map, use 0 to disable
|
164
|
+
#AIDER_MAP_TOKENS=
|
165
|
+
|
166
|
+
## Control how often the repo map is refreshed. Options: auto, always, files, manual (default: auto)
|
167
|
+
#AIDER_MAP_REFRESH=auto
|
168
|
+
|
169
|
+
## Multiplier for map tokens when no files are specified (default: 2)
|
170
|
+
#AIDER_MAP_MULTIPLIER_NO_FILES=true
|
171
|
+
|
172
|
+
################
|
173
|
+
# History Files:
|
174
|
+
|
175
|
+
## Specify the chat input history file (default: .aider.input.history)
|
176
|
+
#AIDER_INPUT_HISTORY_FILE=.aider.input.history
|
177
|
+
|
178
|
+
## Specify the chat history file (default: .aider.chat.history.md)
|
179
|
+
#AIDER_CHAT_HISTORY_FILE=.aider.chat.history.md
|
180
|
+
|
181
|
+
## Restore the previous chat history messages (default: False)
|
182
|
+
#AIDER_RESTORE_CHAT_HISTORY=false
|
183
|
+
|
184
|
+
## Log the conversation with the LLM to this file (for example, .aider.llm.history)
|
185
|
+
#AIDER_LLM_HISTORY_FILE=
|
186
|
+
|
187
|
+
##################
|
188
|
+
# Output settings:
|
189
|
+
|
190
|
+
## Use colors suitable for a dark terminal background (default: False)
|
191
|
+
#AIDER_DARK_MODE=false
|
192
|
+
|
193
|
+
## Use colors suitable for a light terminal background (default: False)
|
194
|
+
#AIDER_LIGHT_MODE=false
|
195
|
+
|
196
|
+
## Enable/disable pretty, colorized output (default: True)
|
197
|
+
#AIDER_PRETTY=true
|
198
|
+
|
199
|
+
## Enable/disable streaming responses (default: True)
|
200
|
+
#AIDER_STREAM=true
|
201
|
+
|
202
|
+
## Set the color for user input (default: #00cc00)
|
203
|
+
#AIDER_USER_INPUT_COLOR=#00cc00
|
204
|
+
|
205
|
+
## Set the color for tool output (default: None)
|
206
|
+
#AIDER_TOOL_OUTPUT_COLOR=
|
207
|
+
|
208
|
+
## Set the color for tool error messages (default: #FF2222)
|
209
|
+
#AIDER_TOOL_ERROR_COLOR=#FF2222
|
210
|
+
|
211
|
+
## Set the color for tool warning messages (default: #FFA500)
|
212
|
+
#AIDER_TOOL_WARNING_COLOR=#FFA500
|
213
|
+
|
214
|
+
## Set the color for assistant output (default: #0088ff)
|
215
|
+
#AIDER_ASSISTANT_OUTPUT_COLOR=#0088ff
|
216
|
+
|
217
|
+
## Set the color for the completion menu (default: terminal's default text color)
|
218
|
+
#AIDER_COMPLETION_MENU_COLOR=
|
219
|
+
|
220
|
+
## Set the background color for the completion menu (default: terminal's default background color)
|
221
|
+
#AIDER_COMPLETION_MENU_BG_COLOR=
|
222
|
+
|
223
|
+
## Set the color for the current item in the completion menu (default: terminal's default background color)
|
224
|
+
#AIDER_COMPLETION_MENU_CURRENT_COLOR=
|
225
|
+
|
226
|
+
## Set the background color for the current item in the completion menu (default: terminal's default text color)
|
227
|
+
#AIDER_COMPLETION_MENU_CURRENT_BG_COLOR=
|
228
|
+
|
229
|
+
## Set the markdown code theme (default: default, other options include monokai, solarized-dark, solarized-light, or a Pygments builtin style, see https://pygments.org/styles for available themes)
|
230
|
+
#AIDER_CODE_THEME=default
|
231
|
+
|
232
|
+
## Show diffs when committing changes (default: False)
|
233
|
+
#AIDER_SHOW_DIFFS=false
|
234
|
+
|
235
|
+
###############
|
236
|
+
# Git settings:
|
237
|
+
|
238
|
+
## Enable/disable looking for a git repo (default: True)
|
239
|
+
#AIDER_GIT=true
|
240
|
+
|
241
|
+
## Enable/disable adding .aider* to .gitignore (default: True)
|
242
|
+
#AIDER_GITIGNORE=true
|
243
|
+
|
244
|
+
## Specify the aider ignore file (default: .aiderignore in git root)
|
245
|
+
#AIDER_AIDERIGNORE=.aiderignore
|
246
|
+
|
247
|
+
## Only consider files in the current subtree of the git repository
|
248
|
+
#AIDER_SUBTREE_ONLY=false
|
249
|
+
|
250
|
+
## Enable/disable auto commit of LLM changes (default: True)
|
251
|
+
#AIDER_AUTO_COMMITS=true
|
252
|
+
|
253
|
+
## Enable/disable commits when repo is found dirty (default: True)
|
254
|
+
#AIDER_DIRTY_COMMITS=true
|
255
|
+
|
256
|
+
## Attribute aider code changes in the git author name (default: True). If explicitly set to True, overrides --attribute-co-authored-by precedence.
|
257
|
+
#AIDER_ATTRIBUTE_AUTHOR=
|
258
|
+
|
259
|
+
## Attribute aider commits in the git committer name (default: True). If explicitly set to True, overrides --attribute-co-authored-by precedence for aider edits.
|
260
|
+
#AIDER_ATTRIBUTE_COMMITTER=
|
261
|
+
|
262
|
+
## Prefix commit messages with 'aider: ' if aider authored the changes (default: False)
|
263
|
+
#AIDER_ATTRIBUTE_COMMIT_MESSAGE_AUTHOR=false
|
264
|
+
|
265
|
+
## Prefix all commit messages with 'aider: ' (default: False)
|
266
|
+
#AIDER_ATTRIBUTE_COMMIT_MESSAGE_COMMITTER=false
|
267
|
+
|
268
|
+
## Attribute aider edits using the Co-authored-by trailer in the commit message (default: False). If True, this takes precedence over default --attribute-author and --attribute-committer behavior unless they are explicitly set to True.
|
269
|
+
#AIDER_ATTRIBUTE_CO_AUTHORED_BY=false
|
270
|
+
|
271
|
+
## Enable/disable git pre-commit hooks with --no-verify (default: False)
|
272
|
+
#AIDER_GIT_COMMIT_VERIFY=false
|
273
|
+
|
274
|
+
## Commit all pending changes with a suitable commit message, then exit
|
275
|
+
#AIDER_COMMIT=false
|
276
|
+
|
277
|
+
## Specify a custom prompt for generating commit messages
|
278
|
+
#AIDER_COMMIT_PROMPT=
|
279
|
+
|
280
|
+
## Perform a dry run without modifying files (default: False)
|
281
|
+
#AIDER_DRY_RUN=false
|
282
|
+
|
283
|
+
## Skip the sanity check for the git repository (default: False)
|
284
|
+
#AIDER_SKIP_SANITY_CHECK_REPO=false
|
285
|
+
|
286
|
+
## Enable/disable watching files for ai coding comments (default: False)
|
287
|
+
#AIDER_WATCH_FILES=false
|
288
|
+
|
289
|
+
########################
|
290
|
+
# Fixing and committing:
|
291
|
+
|
292
|
+
## Lint and fix provided files, or dirty files if none provided
|
293
|
+
#AIDER_LINT=false
|
294
|
+
|
295
|
+
## Specify lint commands to run for different languages, eg: "python: flake8 --select=..." (can be used multiple times)
|
296
|
+
#AIDER_LINT_CMD=
|
297
|
+
|
298
|
+
## Enable/disable automatic linting after changes (default: True)
|
299
|
+
#AIDER_AUTO_LINT=true
|
300
|
+
|
301
|
+
## Specify command to run tests
|
302
|
+
#AIDER_TEST_CMD=
|
303
|
+
|
304
|
+
## Enable/disable automatic testing after changes (default: False)
|
305
|
+
#AIDER_AUTO_TEST=false
|
306
|
+
|
307
|
+
## Run tests, fix problems found and then exit
|
308
|
+
#AIDER_TEST=false
|
309
|
+
|
310
|
+
############
|
311
|
+
# Analytics:
|
312
|
+
|
313
|
+
## Enable/disable analytics for current session (default: random)
|
314
|
+
#AIDER_ANALYTICS=
|
315
|
+
|
316
|
+
## Specify a file to log analytics events
|
317
|
+
#AIDER_ANALYTICS_LOG=
|
318
|
+
|
319
|
+
## Permanently disable analytics
|
320
|
+
#AIDER_ANALYTICS_DISABLE=false
|
321
|
+
|
322
|
+
############
|
323
|
+
# Upgrading:
|
324
|
+
|
325
|
+
## Check for updates and return status in the exit code
|
326
|
+
#AIDER_JUST_CHECK_UPDATE=false
|
327
|
+
|
328
|
+
## Check for new aider versions on launch
|
329
|
+
#AIDER_CHECK_UPDATE=true
|
330
|
+
|
331
|
+
## Show release notes on first run of new version (default: None, ask user)
|
332
|
+
#AIDER_SHOW_RELEASE_NOTES=
|
333
|
+
|
334
|
+
## Install the latest version from the main branch
|
335
|
+
#AIDER_INSTALL_MAIN_BRANCH=false
|
336
|
+
|
337
|
+
## Upgrade aider to the latest version from PyPI
|
338
|
+
#AIDER_UPGRADE=false
|
339
|
+
|
340
|
+
########
|
341
|
+
# Modes:
|
342
|
+
|
343
|
+
## Specify a single message to send the LLM, process reply then exit (disables chat mode)
|
344
|
+
#AIDER_MESSAGE=
|
345
|
+
|
346
|
+
## Specify a file containing the message to send the LLM, process reply, then exit (disables chat mode)
|
347
|
+
#AIDER_MESSAGE_FILE=
|
348
|
+
|
349
|
+
## Run aider in your browser (default: False)
|
350
|
+
#AIDER_GUI=false
|
351
|
+
|
352
|
+
## Enable automatic copy/paste of chat between aider and web UI (default: False)
|
353
|
+
#AIDER_COPY_PASTE=false
|
354
|
+
|
355
|
+
## Apply the changes from the given file instead of running the chat (debug)
|
356
|
+
#AIDER_APPLY=
|
357
|
+
|
358
|
+
## Apply clipboard contents as edits using the main model's editor format
|
359
|
+
#AIDER_APPLY_CLIPBOARD_EDITS=false
|
360
|
+
|
361
|
+
## Do all startup activities then exit before accepting user input (debug)
|
362
|
+
#AIDER_EXIT=false
|
363
|
+
|
364
|
+
## Print the repo map and exit (debug)
|
365
|
+
#AIDER_SHOW_REPO_MAP=false
|
366
|
+
|
367
|
+
## Print the system prompts and exit (debug)
|
368
|
+
#AIDER_SHOW_PROMPTS=false
|
369
|
+
|
370
|
+
#################
|
371
|
+
# Voice settings:
|
372
|
+
|
373
|
+
## Audio format for voice recording (default: wav). webm and mp3 require ffmpeg
|
374
|
+
#AIDER_VOICE_FORMAT=wav
|
375
|
+
|
376
|
+
## Specify the language for voice using ISO 639-1 code (default: auto)
|
377
|
+
#AIDER_VOICE_LANGUAGE=en
|
378
|
+
|
379
|
+
## Specify the input device name for voice recording
|
380
|
+
#AIDER_VOICE_INPUT_DEVICE=
|
381
|
+
|
382
|
+
#################
|
383
|
+
# Other settings:
|
384
|
+
|
385
|
+
## Never prompt for or attempt to install Playwright for web scraping (default: False).
|
386
|
+
#AIDER_DISABLE_PLAYWRIGHT=false
|
387
|
+
|
388
|
+
## specify a file to edit (can be used multiple times)
|
389
|
+
#AIDER_FILE=
|
390
|
+
|
391
|
+
## specify a read-only file (can be used multiple times)
|
392
|
+
#AIDER_READ=
|
393
|
+
|
394
|
+
## Use VI editing mode in the terminal (default: False)
|
395
|
+
#AIDER_VIM=false
|
396
|
+
|
397
|
+
## Specify the language to use in the chat (default: None, uses system settings)
|
398
|
+
#AIDER_CHAT_LANGUAGE=
|
399
|
+
|
400
|
+
## Always say yes to every confirmation
|
401
|
+
#AIDER_YES_ALWAYS=
|
402
|
+
|
403
|
+
## Enable verbose output
|
404
|
+
#AIDER_VERBOSE=false
|
405
|
+
|
406
|
+
## Load and execute /commands from a file on launch
|
407
|
+
#AIDER_LOAD=
|
408
|
+
|
409
|
+
## Specify the encoding for input and output (default: utf-8)
|
410
|
+
#AIDER_ENCODING=utf-8
|
411
|
+
|
412
|
+
## Line endings to use when writing files (default: platform)
|
413
|
+
#AIDER_LINE_ENDINGS=platform
|
414
|
+
|
415
|
+
## Specify the .env file to load (default: .env in git root)
|
416
|
+
#AIDER_ENV_FILE=.env
|
417
|
+
|
418
|
+
## Enable/disable suggesting shell commands (default: True)
|
419
|
+
#AIDER_SUGGEST_SHELL_COMMANDS=true
|
420
|
+
|
421
|
+
## Enable/disable fancy input with history and completion (default: True)
|
422
|
+
#AIDER_FANCY_INPUT=true
|
423
|
+
|
424
|
+
## Enable/disable multi-line input mode with Meta-Enter to submit (default: False)
|
425
|
+
#AIDER_MULTILINE=false
|
426
|
+
|
427
|
+
## Enable/disable terminal bell notifications when LLM responses are ready (default: False)
|
428
|
+
#AIDER_NOTIFICATIONS=false
|
429
|
+
|
430
|
+
## Specify a command to run for notifications instead of the terminal bell. If not specified, a default command for your OS may be used.
|
431
|
+
#AIDER_NOTIFICATIONS_COMMAND=
|
432
|
+
|
433
|
+
## Enable/disable detection and offering to add URLs to chat (default: True)
|
434
|
+
#AIDER_DETECT_URLS=true
|
435
|
+
|
436
|
+
## Specify which editor to use for the /editor command
|
437
|
+
#AIDER_EDITOR=
|
438
|
+
|
439
|
+
## Print shell completion script for the specified SHELL and exit. Supported shells: bash, tcsh, zsh. Example: aider --shell-completions bash
|
440
|
+
#AIDER_SHELL_COMPLETIONS=
|
441
|
+
|
442
|
+
############################
|
443
|
+
# Deprecated model settings:
|
444
|
+
|
445
|
+
## Use claude-3-opus-20240229 model for the main chat (deprecated, use --model)
|
446
|
+
#AIDER_OPUS=false
|
447
|
+
|
448
|
+
## Use anthropic/claude-3-7-sonnet-20250219 model for the main chat (deprecated, use --model)
|
449
|
+
#AIDER_SONNET=false
|
450
|
+
|
451
|
+
## Use claude-3-5-haiku-20241022 model for the main chat (deprecated, use --model)
|
452
|
+
#AIDER_HAIKU=false
|
453
|
+
|
454
|
+
## Use gpt-4-0613 model for the main chat (deprecated, use --model)
|
455
|
+
#AIDER_4=false
|
456
|
+
|
457
|
+
## Use gpt-4o model for the main chat (deprecated, use --model)
|
458
|
+
#AIDER_4O=false
|
459
|
+
|
460
|
+
## Use gpt-4o-mini model for the main chat (deprecated, use --model)
|
461
|
+
#AIDER_MINI=false
|
462
|
+
|
463
|
+
## Use gpt-4-1106-preview model for the main chat (deprecated, use --model)
|
464
|
+
#AIDER_4_TURBO=false
|
465
|
+
|
466
|
+
## Use gpt-3.5-turbo model for the main chat (deprecated, use --model)
|
467
|
+
#AIDER_35TURBO=false
|
468
|
+
|
469
|
+
## Use deepseek/deepseek-chat model for the main chat (deprecated, use --model)
|
470
|
+
#AIDER_DEEPSEEK=false
|
471
|
+
|
472
|
+
## Use o1-mini model for the main chat (deprecated, use --model)
|
473
|
+
#AIDER_O1_MINI=false
|
474
|
+
|
475
|
+
## Use o1-preview model for the main chat (deprecated, use --model)
|
476
|
+
#AIDER_O1_PREVIEW=false
|
477
|
+
```
|
478
|
+
<!--[[[end]]]-->
|
@@ -0,0 +1,127 @@
|
|
1
|
+
---
|
2
|
+
parent: Configuration
|
3
|
+
nav_order: 100
|
4
|
+
description: How to configure a custom editor for aider's /editor command
|
5
|
+
---
|
6
|
+
|
7
|
+
# Editor configuration
|
8
|
+
|
9
|
+
Aider allows you to configure your preferred text editor for use with the `/editor` command. The editor must be capable of running in "blocking mode", meaning the command line will wait until you close the editor before proceeding.
|
10
|
+
|
11
|
+
## Using `--editor`
|
12
|
+
|
13
|
+
You can specify the text editor with the `--editor` switch or using
|
14
|
+
`editor:` in aider's
|
15
|
+
[YAML config file](https://aider.chat/docs/config/aider_conf.html).
|
16
|
+
|
17
|
+
## Environment variables
|
18
|
+
|
19
|
+
Aider checks the following environment variables in order to determine which editor to use:
|
20
|
+
|
21
|
+
1. `AIDER_EDITOR`
|
22
|
+
2. `VISUAL`
|
23
|
+
3. `EDITOR`
|
24
|
+
|
25
|
+
## Default behavior
|
26
|
+
|
27
|
+
If no editor is configured, aider will use these platform-specific defaults:
|
28
|
+
|
29
|
+
- Windows: `notepad`
|
30
|
+
- macOS: `vim`
|
31
|
+
- Linux/Unix: `vi`
|
32
|
+
|
33
|
+
## Using a custom editor
|
34
|
+
|
35
|
+
You can set your preferred editor in your shell's configuration file (e.g., `.bashrc`, `.zshrc`):
|
36
|
+
|
37
|
+
```bash
|
38
|
+
export AIDER_EDITOR=vim
|
39
|
+
```
|
40
|
+
|
41
|
+
## Popular Editors by Platform
|
42
|
+
|
43
|
+
### macOS
|
44
|
+
|
45
|
+
1. **vim**
|
46
|
+
```bash
|
47
|
+
export AIDER_EDITOR=vim
|
48
|
+
```
|
49
|
+
|
50
|
+
2. **Emacs**
|
51
|
+
```bash
|
52
|
+
export AIDER_EDITOR=emacs
|
53
|
+
```
|
54
|
+
|
55
|
+
3. **VSCode**
|
56
|
+
```bash
|
57
|
+
export AIDER_EDITOR="code --wait"
|
58
|
+
```
|
59
|
+
|
60
|
+
4. **Sublime Text**
|
61
|
+
```bash
|
62
|
+
export AIDER_EDITOR="subl --wait"
|
63
|
+
```
|
64
|
+
|
65
|
+
5. **BBEdit**
|
66
|
+
```bash
|
67
|
+
export AIDER_EDITOR="bbedit --wait"
|
68
|
+
```
|
69
|
+
|
70
|
+
### Linux
|
71
|
+
|
72
|
+
1. **vim**
|
73
|
+
```bash
|
74
|
+
export AIDER_EDITOR=vim
|
75
|
+
```
|
76
|
+
|
77
|
+
2. **Emacs**
|
78
|
+
```bash
|
79
|
+
export AIDER_EDITOR=emacs
|
80
|
+
```
|
81
|
+
|
82
|
+
3. **nano**
|
83
|
+
```bash
|
84
|
+
export AIDER_EDITOR=nano
|
85
|
+
```
|
86
|
+
|
87
|
+
4. **VSCode**
|
88
|
+
```bash
|
89
|
+
export AIDER_EDITOR="code --wait"
|
90
|
+
```
|
91
|
+
|
92
|
+
5. **Sublime Text**
|
93
|
+
```bash
|
94
|
+
export AIDER_EDITOR="subl --wait"
|
95
|
+
```
|
96
|
+
|
97
|
+
### Windows
|
98
|
+
|
99
|
+
1. **Notepad**
|
100
|
+
```bat
|
101
|
+
set AIDER_EDITOR=notepad
|
102
|
+
```
|
103
|
+
|
104
|
+
2. **VSCode**
|
105
|
+
```bat
|
106
|
+
set AIDER_EDITOR="code --wait"
|
107
|
+
```
|
108
|
+
|
109
|
+
3. **Notepad++**
|
110
|
+
```bat
|
111
|
+
set AIDER_EDITOR="notepad++ -multiInst -notabbar -nosession -noPlugin -waitForClose"
|
112
|
+
```
|
113
|
+
|
114
|
+
## Editor command arguments
|
115
|
+
|
116
|
+
Some editors require specific command-line arguments to operate in blocking mode. The `--wait` flag (or equivalent) is commonly used to make the editor block until the file is closed.
|
117
|
+
|
118
|
+
## Troubleshooting
|
119
|
+
|
120
|
+
If you encounter issues with your editor not blocking (returning to the prompt immediately), verify that:
|
121
|
+
|
122
|
+
1. Your editor supports blocking mode
|
123
|
+
2. You've included the necessary command-line arguments for blocking mode
|
124
|
+
3. The editor command is properly quoted if it contains spaces or special characters, e.g.:
|
125
|
+
```bash
|
126
|
+
export AIDER_EDITOR="code --wait"
|
127
|
+
```
|
@@ -0,0 +1,103 @@
|
|
1
|
+
---
|
2
|
+
parent: Configuration
|
3
|
+
nav_order: 1000
|
4
|
+
description: Assign convenient short names to models.
|
5
|
+
---
|
6
|
+
|
7
|
+
# Model Aliases
|
8
|
+
|
9
|
+
Model aliases allow you to create shorthand names for models you frequently use. This is particularly useful for models with long names or when you want to standardize model usage across your team.
|
10
|
+
|
11
|
+
## Command Line Usage
|
12
|
+
|
13
|
+
You can define aliases when launching aider using the `--alias` option:
|
14
|
+
|
15
|
+
```bash
|
16
|
+
aider --alias "fast:gpt-4o-mini" --alias "smart:o3-mini"
|
17
|
+
```
|
18
|
+
|
19
|
+
Multiple aliases can be defined by using the `--alias` option multiple times. Each alias definition should be in the format `alias:model-name`.
|
20
|
+
|
21
|
+
## Configuration File
|
22
|
+
|
23
|
+
Of course,
|
24
|
+
you can also define aliases in your [`.aider.conf.yml` file](https://aider.chat/docs/config/aider_conf.html):
|
25
|
+
|
26
|
+
```yaml
|
27
|
+
alias:
|
28
|
+
- "fast:gpt-4o-mini"
|
29
|
+
- "smart:o3-mini"
|
30
|
+
- "hacker:claude-3-sonnet-20240229"
|
31
|
+
```
|
32
|
+
|
33
|
+
## Using Aliases
|
34
|
+
|
35
|
+
Once defined, you can use the alias instead of the full model name from the command line:
|
36
|
+
|
37
|
+
```bash
|
38
|
+
aider --model fast # Uses gpt-4o-mini
|
39
|
+
aider --model smart # Uses o3-mini
|
40
|
+
```
|
41
|
+
|
42
|
+
Or with the `/model` command in-chat:
|
43
|
+
|
44
|
+
```
|
45
|
+
Aider v0.75.3
|
46
|
+
Main model: anthropic/claude-3-7-sonnet-20250219 with diff edit format, prompt cache, infinite output
|
47
|
+
Weak model: claude-3-5-sonnet-20241022
|
48
|
+
Git repo: .git with 406 files
|
49
|
+
Repo-map: using 4096 tokens, files refresh
|
50
|
+
─────────────────────────────────────────────────────────────────────────────────────────────────────
|
51
|
+
> /model fast
|
52
|
+
|
53
|
+
Aider v0.75.3
|
54
|
+
Main model: gpt-4o-mini with diff edit format
|
55
|
+
─────────────────────────────────────────────────────────────────────────────────────────────────────
|
56
|
+
diff> /model smart
|
57
|
+
|
58
|
+
Aider v0.75.3
|
59
|
+
Main model: o3-mini with diff edit format
|
60
|
+
─────────────────────────────────────────────────────────────────────────────────────────────────────
|
61
|
+
>
|
62
|
+
```
|
63
|
+
|
64
|
+
## Built-in Aliases
|
65
|
+
|
66
|
+
Aider includes some built-in aliases for convenience:
|
67
|
+
|
68
|
+
<!--[[[cog
|
69
|
+
import cog
|
70
|
+
from aider.models import MODEL_ALIASES
|
71
|
+
|
72
|
+
for alias, model in sorted(MODEL_ALIASES.items()):
|
73
|
+
cog.outl(f"- `{alias}`: {model}")
|
74
|
+
]]]-->
|
75
|
+
- `3`: gpt-3.5-turbo
|
76
|
+
- `35-turbo`: gpt-3.5-turbo
|
77
|
+
- `35turbo`: gpt-3.5-turbo
|
78
|
+
- `4`: gpt-4-0613
|
79
|
+
- `4-turbo`: gpt-4-1106-preview
|
80
|
+
- `4o`: gpt-4o
|
81
|
+
- `deepseek`: deepseek/deepseek-chat
|
82
|
+
- `flash`: gemini/gemini-2.5-flash-preview-04-17
|
83
|
+
- `gemini`: gemini/gemini-2.5-pro-preview-05-06
|
84
|
+
- `gemini-2.5-pro`: gemini/gemini-2.5-pro-preview-05-06
|
85
|
+
- `gemini-exp`: gemini/gemini-2.5-pro-exp-03-25
|
86
|
+
- `grok3`: xai/grok-3-beta
|
87
|
+
- `haiku`: claude-3-5-haiku-20241022
|
88
|
+
- `optimus`: openrouter/openrouter/optimus-alpha
|
89
|
+
- `opus`: claude-opus-4-20250514
|
90
|
+
- `quasar`: openrouter/openrouter/quasar-alpha
|
91
|
+
- `r1`: deepseek/deepseek-reasoner
|
92
|
+
- `sonnet`: anthropic/claude-sonnet-4-20250514
|
93
|
+
<!--[[[end]]]-->
|
94
|
+
|
95
|
+
## Priority
|
96
|
+
|
97
|
+
If the same alias is defined in multiple places, the priority is:
|
98
|
+
|
99
|
+
1. Command line aliases (highest priority)
|
100
|
+
2. Configuration file aliases
|
101
|
+
3. Built-in aliases (lowest priority)
|
102
|
+
|
103
|
+
This allows you to override built-in aliases with your own preferences.
|