What this thread does
Do first: Start Aider with --cache-prompts.
Short answer
Aider arranges repeated context for provider caching: system prompt, read-only files, repository map and editable files already in chat.
What to do
| Item | Value / action |
|---|---|
| Listed providers/models | Anthropic: Sonnet, Haiku; DeepSeek: Chat |
| Read-only context | Add files with --read or /read-only |
| Enable caching | aider --cache-prompts, or the corresponding configuration setting |
| See cache statistics/costs | Add --no-stream; streaming hides these provider statistics |
| Anthropic lifetime | Default: 5 minutes |
| Keep warm | --cache-keepalive-pings N: every 5 minutes, up to N pings over N*5 minutes after each message |
Limits and open questions
The page gives no default ping count, prices, minimum cacheable size. Treat the listed provider support as the documentation snapshot.
Not for: Cursor context caching.
Sources
- Prompt caching, Aider documentation.
Checked
2026-11-17; read Prompt caching; no command was run.
Started from a post by @Aider documentation, packaged by the editor. Original post