Skip to content

Commit 5334976

Browse files
authored
Merge pull request #294 from chrisnestrud/patch-2
Update copypaste.md with docs for `cp:model`
2 parents 4b9b277 + 53ff881 commit 5334976

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

aider/website/docs/usage/copypaste.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,21 @@ and aider will apply the LLMs changes to your local files.
9090
- Aider will automatically select the best edit format for this copy/paste functionality.
9191
Depending on the LLM you have aider use, it will be either `editor-whole` or `editor-diff`.
9292

93+
### No API access? Use `cp:model`
94+
95+
If your only access to an LLM is via a web chat (no API keys, no local models), you can run aider with a model name prefixed by cp:. This performs the entire workflow via copy/paste without making any API calls.
96+
97+
#### What cp: does
98+
99+
- Activates CopyPasteCoder, which never sends requests to any LLM API.
100+
- Uses the same copy/paste workflow described above
101+
102+
#### Token and cost tracking
103+
104+
- Aider uses the text after cp: as the "model name" for local token counting and cost estimation.
105+
- If the label matches a known model in aider's pricing tables, aider will estimate tokens/costs using that model's rates; otherwise, costs may show as unknown or zero.
106+
- With flat-rate web chat plans, you can treat any "estimated cost" displayed by aider as your "savings" versus if you had called an API model.
107+
93108
## Terms of service
94109

95110
Be sure to review the Terms Of Service of any LLM web chat service you use with

0 commit comments

Comments
 (0)