All Coding HarnessesVerified: 2026-11-19
Open-Source Terminal CLI50.2kv0.86.0Apache-2.0

Aider:実測トークン倍率&BYOK コスト最適化ガイド

Token-frugal open-source CLI using Tree-sitter AST Repo-Map, Architect/Editor split, and clean Git auto-commits.

python -m pip install aider-install && aider-install
Install Friction
★★☆☆☆
2/5 · CLI / IDE
Runtime Dependency
Python 3.10–3.12Git >= 2.25
BYOK & BaseURL
Full Support5 Env Vars
Typical Multiplier
1.2x – 1.8xTypical 1.4x vs Raw API

Context & Token Overhead Mechanics

In a 15-turn refactor with 5 tool calls, AST Repo-Map + search/replace diffs keep total multiplier at just 1.2x–1.8x (the lowest in this benchmark).

15-Turn Benchmark ≈ 43,500 Input Tokens
Base Task Payload:30,000 (69%)
System Prompt Overhead:2,300 (5%)
Context / Repo-Map:5,040 (12%)
Multi-Turn Tool Loop:6,160 (14%)
System Prompt Overhead
~1,150 tokens

Baseline instructions & tool schema weight per turn

Context Compression

Tree-sitter AST Repo-Map (1k–2k token budget) + search/replace diff edits + explicit /drop context hygiene

Prompt Caching Hit Rate78%–90%

Pass `--cache-prompts` (plus `--cache-keepalive-pings` for Anthropic) to cache Repo-Map and added read-only files.

Model Compatibility Matrix & 15-Turn Cost

Estimated on 30k raw input + 4.5k output scaled by 1.4x multiplier at 70% cache hit rate

ModelTool CallingPrompt CachingVisionStreamingEst. 15-Turn Cost
DeepSeek-V3 (deepseek-chat)Budget WorkhorseDiff/Edit BlockFullN/AStable$0.011
DeepSeek-R1 (deepseek-reasoner)Architect ModeArchitect OnlyFullN/AStable$0.023
Anthropic: Claude Sonnet 5.5Primary EditorNativeFullSupportedStable$0.082
Google: Gemini 4 NeonHigh-Speed Large RepoNativeFullSupportedStable$0.123

Production BYOK & DeepSeek / OpenRouter Config

Built on LiteLLM: supports 100+ providers, custom OpenAI-compatible endpoints, local Ollama, and dual-model Architect/Editor routing out of the box.

model: deepseek/deepseek-chat
architect: true
editor-model: deepseek/deepseek-chat
cache-prompts: true
map-tokens: 1024
auto-commits: true
Supported Env Vars:DEEPSEEK_API_KEYOPENROUTER_API_KEYANTHROPIC_API_KEYOPENAI_API_KEYOPENAI_API_BASE

Aider Cost Pitfalls & Tuning FAQ

DeepSeek-R1 does not support native function calling and excels at planning rather than strict diff syntax. Always run it with `--architect --editor-model deepseek/deepseek-chat`.

Compare Other Coding Harnesses

All 7 Benchmarks