Sign in with Google, GitHub, Microsoft, or email to receive an eco_live_... API key immediately, preloaded with $5.00 in free starter credit and no card required. When you make your first Stripe top-up, LeanLM matches it dollar-for-dollar up to +$100 in bonus credit—so a $25 top-up gives you $50 to spend.
EcoCoder (model ID ecocoder, alias leanlm-eco) bills $0.30 per 1M uncached input tokens, $0.03 per 1M cached input tokens with no cache-write fee, and $1.20 per 1M output tokens. Because multi-turn coding sessions reuse most of the same repository context from turn to turn, cached reads make up the bulk of usage and bring the typical blended rate down to $0.083–$0.092 per 1M tokens. For lower-priority or non-interactive workflows where immediate turnaround is not required, passing --flex reduces all three rates by 20% to $0.24 / $0.024 / $0.96 per 1M tokens.
Start in under a minute by letting your coding agent read setup.md, or grab the repo-synced ecocoder command for Claude Code, Codex, OpenCode, pi, or Cline/Kilo Code below.
Paste into Claude Code, Codex, OpenCode, pi, or Cline / Kilo Code:
Set up EcoCoder (https://api.leanlm.ai) in this environment using https://api.leanlm.ai/setup.md. Verify the CLI SHA-256 checksum, detect which agent we are running in, and wire the repo-synced ecocoder workflow (the EcoCoder skill in Claude Code/Codex, or synced CLI/proxy in OpenCode/pi/Cline). Never ask me to paste my API key in chat — tell me when to run `ecocoder login`, then verify with `ecocoder check`.
SHA-256 verified · Key never enters chat · .env* skipped locally (ecocoder sync-preview) · Zero training.
Spend 20% less ($0.24 / $0.024 / $0.96 per 1M): add --flex (CLI) or header X-LeanLM-Flex: eco on unattended/background runs (async queue can pause up to ~60s/turn under load; keep interactive coding on Standard).
ecocoder statsecocoder install-subagent --global ecocoder delegate "Fix edge cases in parser.py" --verify-cmd "<exact test command, with the repo's venv/PYTHONPATH>"
ecocoder stats ecocoder sync-preview
ANTHROPIC_BASE_URL="https://api.leanlm.ai" \ ANTHROPIC_API_KEY="<LOADING_KEY>" \ claude --model ecocoder
# Model ID: ecocoder (aliases: leanlm-eco, ecocoder-turbo)
curl --max-time 180 -sS https://api.leanlm.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <LOADING_KEY>" \
-H "x-session-id: direct-oai-1" \
-H "x-leanlm-run-id: run-oai-1" \
-d '{"model":"ecocoder","messages":[{"role":"user","content":"Write a pytest check for Retry-After."}]}'| Counterfactual Model (2026 Priors) | Assumed Active / Total | Method A: Modeled GPU Wh [Range] | Method B: EcoLogits 0.11 Wh | Same-Token Multiple [Range] | Est. Energy Saved |
|---|---|---|---|---|---|
| Loading counterfactual model physics... | |||||
| Key ID | Label | Status | Created | Action |
|---|---|---|---|---|
| No CLI keys loaded. | ||||
| Model | Tests Passed (vs. EcoCoder) | Total Cost (k=3) | Cost vs. EcoCoder | GPU Energy (k=3) | Energy vs. EcoCoder | Median Wall |
|---|---|---|---|---|---|---|
| EcoCoder (Standard) | 5,645 / 5,775 (97.75%) |
$7.87 ($0.37/repo) |
1.0× | 1,653.9 kJ |
1.0× | 767.7s |
| Claude Opus 5.5 | 5,712 / 5,775 (98.91%) |
$31.81 rate card |
4.04× costlier |
17,269.4 kJ* |
10.4× more |
436.5s |
| Claude Haiku 5.5 | 5,683 / 5,775 (98.41%) |
$10.60 CLI billed |
1.35× costlier |
10,232.1 kJ* |
6.2× more |
567.6s |
| Model | Commits Resolved (vs. EcoCoder) | Total Cost (k=3) | Cost vs. EcoCoder | GPU Energy (k=3) | Energy vs. EcoCoder | Median Wall |
|---|---|---|---|---|---|---|
| EcoCoder (Standard) | 59 / 72 (81.94%) |
$3.55 ($0.060/solve) |
1.0× | 310.4 kJ |
1.0× | 84.6s |
| Claude Opus 5.5 | 63 / 72 (87.50%) |
$17.85 rate card |
5.02× costlier |
7,268.2 kJ* |
23.4× more |
40.9s |
| Claude Sonnet 5.5 | 63 / 72 (87.50%) |
$12.42 rate card |
3.50× costlier |
4,711.6 kJ* |
15.2× more |
38.2s |
| Claude Haiku 5.5 | 55 / 72 (76.39%) |
$1.02 rate card |
0.29× |
2,451.5 kJ* |
7.9× more |
45.1s |