aider-cache-default-on

Enable Aider's --cache-prompts flag by default for supported models.

113|8|Updated May 28, 2026
One-click install
npx skills add https://github.com/OnlyTerp/prompt-cache-skills --skill aider-cache-default-on
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aider-cache-default-on
Source: https://github.com/OnlyTerp/prompt-cache-skills/tree/main/skills/aider-cache-default-on
Command: npx skills add https://github.com/OnlyTerp/prompt-cache-skills --skill aider-cache-default-on

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Aider's caching feature is not enabled by default, which results in lost savings on input costs.

Core Features & Use Cases

  • Default Caching Activation: Ensures the --cache-prompts flag is enabled by default for supported models, improving cache hit rates.
  • Opt-out instead of Opt-in: Converts Aider's caching system from an opt-in to an opt-out mechanism for users who wish to avoid caching.
  • Per-Model Gate: Only activates caching for models that support it, ensuring no impact on unsupporting models.

Quick Start

Set Aider's caching to default-on with the command: aider --cache-prompts

Frequently Asked Questions about aider-cache-default-on

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enable prompt caching in Aider by default?

To enable prompt caching in Aider by default, you can use a configuration that automatically applies the `--cache-prompts` flag. This shifts caching from an opt-in feature to a default-on mechanism, reducing input costs.

Why are my Anthropic model input costs so high when using Aider?

High Anthropic model input costs in Aider often occur because prompt caching is not enabled by default. Activating the `--cache-prompts` flag optimizes cache hit rates and prevents unnecessary token billing.

Does Aider prompt caching work with all models?

Aider prompt caching does not work with all models. The default caching activation includes a per-model gate, ensuring it only triggers for Anthropic models that specifically support cache features, leaving unsupporting models unaffected.

What is the best way to opt out of Aider's default prompt caching?

The best way to opt out of default prompt caching is to disable the `--cache-prompts` setting in your configuration. This converts the caching mechanism from a default-on process back to an opt-in choice for your session.

When do I need to enable prompt caching in Aider?

You need to enable prompt caching in Aider when working with supported Anthropic models to reduce input costs. Without it, you lose potential savings from cache hits during repeated code generation or editing sessions.

Can I configure Aider to automatically use prompt caching for Anthropic models?

Yes, you can configure Aider to automatically use prompt caching for Anthropic models by setting the `--cache-prompts` flag as a default. This ensures caching is active whenever a compatible model is used.