CostLean CLEAR™ · Zero-Login Client-Side FinOps Replay 🌐 切换中文版 (/zh/scanner/)

Find Every Hidden AI, Multi-Bot & Cloud Leak in 30 Seconds.

Drop your OpenAI, Anthropic, Claude Code / Orca JSONL, AWS Cost Explorer, or SaaS card CSV. Deterministically compute your 0–100 Cost Health Score, recoverable savings, and copy-paste fix configs — 100% locally in your browser.

0 Bytes Uploaded (100% Local Browser Replay) Verify 0 KB egress in DevTools Network
Zero Bank / API Key Required No Plaid OAuth · No $9.99/wk traps
Instant Counterfactual Math (<2s) 45+ LLM tables · AWS NAT · 65+ SaaS rules

Drag & drop your CSV or JSONL log here, or click to select files (multi-file supported)

Parsed strictly inside local browser RAM — 0 bytes leave your machine

① OpenAI / Anthropic / OpenRouter CSV ② Claude Code / Cursor / OpenCode / Orca JSONL ③ AWS Cost Explorer CSV (NAT / EIP / EBS) ④ Corporate Card / 65+ AI SaaS CSV
No CSV handy? 1-click instant replay samples:
✓ 0.0 KB Uploaded · Sample 2: 15-Person AI & AWS SaaS Startup ($7,420/mo) · 14,680 records replayed in <2ms
DETERMINISTIC FINOPS SCORE

AI & Cloud Cost Health Score

OpenAI/Anthropic CSV + AWS Cost Explorer Replay
49 / 100
Audit Rating: High Bleed
Model Tier Fit (40%) 48/100
Cache & Loop Hygiene (35%) 44/100
Cloud & SaaS Efficiency (25%) 57/100
COUNTERFACTUAL RECOVERABLE SAVINGS

Estimated Annual Recoverable Savings

$40,958 / yr
Recover $3,413.2/mo (from $7,420/mo -> $4,006.8/mo )
-46% Zero quality loss
Counterfactual Pillar Baseline Deterministic Rule Monthly Saved
AWS NAT Gateway S3 Tax & Idle EIP/EBS $1,890 28,400 GB NatGateway-Bytes -> $0 S3 VPC Endpoint + 3 AZ NAT -> t4g.nano fck-nat (-80%) -$1,503.2
Flagship Overkill & Uncached RAG Prompts $4,380 64% short JSON calls routed to Mini/DeepSeek + cache hit 8.4% -> 65% -$1,610
Duplicate Team AI Coding & Chat Seats $1,150 Reclaim 9 overlapping secondary AI seats + switch core DevOps SaaS to annual -$300
100% Free & Unredacted · Copy-Paste Fix Configs

Top 3 Instant Bleeding Fixes

+ 4 secondary optimizations (~$1,640/yr) automatable in Workbench

#1 CRITICAL Flagship Overkill + 8.4% Cache Hit
-$1,610/mo ($19,320/yr)

Enable LeanRouter Semantic Prefix Caching & Auto-Tier Short JSON Calls

📊 Log Evidence: 9,395 API rows used GPT-5 / Claude Sonnet for <380-token schema extraction; dynamic request_id at line 1 of system prompt broke caching (only 8.4% cached_tokens).
⚡ Instant Fix: Point baseURL to https://api.costlean.com/v1 to pin static system prefixes and route routine classification to GPT-5 Mini / DeepSeek-V3 Lean.
🔧 View Fix Config · 1-Line LeanRouter Gateway & Prefix Cache Config
1-Line LeanRouter Gateway & Prefix Cache Config
// Drop-in OpenAI/Anthropic SDK Switch via CostLean LeanRouter
import OpenAI from "openai";

export const leanClient = new OpenAI({
  baseURL: "https://api.costlean.com/v1",
  apiKey: process.env.COSTLEAN_API_KEY, // Claim 30+100 free credits at app.costlean.com
  defaultHeaders: {
    "X-CostLean-Policy": "balanced",
    "X-CostLean-Prefix-Cache": "pin-static-system",
    "X-CostLean-Loop-Breaker": "max_3_identical_tool_calls",
    "X-CostLean-Task-Cap-Credits": "15"
  }
});
#2 CRITICAL AWS NAT Gateway S3 Data Tax
-$1,503.2/mo ($18,038.4/yr)

Attach Free S3/DynamoDB VPC Gateway Endpoints & Deploy fck-nat

📊 Log Evidence: AWS Cost Explorer CSV shows $1,278/mo in USE1-NatGateway-Bytes (28.4 TB pulling embeddings/chunks from S3) + $98.55/mo NatGateway-Hours + 14 idle Elastic IPs ($51/mo).
⚡ Instant Fix: Apply the 20-line Terraform snippet below to route S3/DynamoDB over free AWS Gateway Endpoints and replace non-HA NATs with t4g.nano fck-nat.
🔧 View Fix Config · main.tf (Zero-Tax S3 VPC Endpoint + fck-nat)
main.tf (Zero-Tax S3 VPC Endpoint + fck-nat)
# 1. Zero-Cost S3 & DynamoDB Gateway Endpoints (Eliminates $0.045/GB NAT Tax)
resource "aws_vpc_endpoint" "s3_zero_tax" {
  vpc_id            = var.vpc_id
  service_name      = "com.amazonaws.${var.aws_region}.s3"
  vpc_endpoint_type = "Gateway"
  route_table_ids   = var.private_route_table_ids
}

resource "aws_vpc_endpoint" "dynamodb_zero_tax" {
  vpc_id            = var.vpc_id
  service_name      = "com.amazonaws.${var.aws_region}.dynamodb"
  vpc_endpoint_type = "Gateway"
  route_table_ids   = var.private_route_table_ids
}

# 2. Replace $32.85/mo Managed NAT Gateway with $3.20/mo ARM64 fck-nat
module "fck_nat" {
  source               = "RaJiska/fck-nat/aws"
  name                 = "costlean-thrifty-nat"
  vpc_id               = var.vpc_id
  subnet_id            = var.public_subnet_id
  instance_type        = "t4g.nano"
  route_tables_ids     = { "private" = var.private_route_table_id }
}
#3 MEDIUM Duplicate Team SaaS Licenses
-$300/mo ($3,600/yr)

Trim 9 Overlapping Copilot/Cursor/Chat Seats Across 15 Engineers

📊 Log Evidence: Corporate card CSV shows 15 Cursor Business seats ($480) + 11 GitHub Copilot seats ($209) + 12 ChatGPT Team seats ($360) + Notion AI ($101).
⚡ Instant Fix: Standardize on 1 primary coding agent + shared CostLean Pro /w/<slug> team workspace with unified LeanCredits.
🔧 View Fix Config · ./opencode.json Team Standardized Gateway
./opencode.json Team Standardized Gateway
{
  "$schema": "https://opencode.ai/config.json",
  "model": "costlean/leanrouter-auto",
  "small_model": "costlean/deepseek-v3-lean",
  "provider": {
    "costlean": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "CostLean LeanRouter Smart Gateway",
      "options": {
        "baseURL": "https://api.costlean.com/v1",
        "apiKey": "{env:COSTLEAN_API_KEY}",
        "headers": {
          "X-CostLean-Policy": "balanced",
          "X-CostLean-Cron-Guard": "zero-diff-shortcircuit",
          "X-CostLean-Max-Loop-Retries": "2"
        }
      },
      "models": {
        "leanrouter-auto": {
          "name": "LeanRouter Auto (Semantic Cache + Tiered Routing · -68%)",
          "limit": { "context": 128000, "output": 8192 }
        },
        "deepseek-v3-lean": {
          "name": "DeepSeek-V3 Lean (Sub-Bot Execution Tier)",
          "limit": { "context": 64000, "output": 8192 }
        },
        "claude-sonnet-lean": {
          "name": "Claude Sonnet Lean (Manager Planning + Prefix Cache)",
          "limit": { "context": 200000, "output": 8192 }
        }
      }
    }
  }
}
Executive Share & Monthly Prevention Toolbar Export a 1200×630 audit card for Slack / X / CFO review, or add a recurring 1st-of-month checkup
Best Fit · CostLean CLEAR™ Enterprise & Custom Dept Fleet

Capture ~$40,958/yr Across Compute, Cloud & 75% HITL Operations

Deploy custom /w/<slug> multi-department Manager + Sub-Bot fleets ($499–$2,999 setup or $399+/mo Enterprise) with USD BU chargeback & SOC2/GDPR compliance.

✓ Includes 30+100 instant trial credits + L3 FinOps diagnostic roadmap for CFO/CTO review.

Provision Custom Enterprise Workbench (Save $3,413/mo) ↗ 30+100 Free LeanCredits · Zero $9.99/wk traps · Top-up packs never expire
Indie & Starter $0 / $4.99

30 Guest + 100 Signup Free Credits; $4.99 for 500 never-expiring credits

Pro Gateway & Fleet $19 / mo

2,500 Credits/mo + sk-lean-pro-* smart gateway + 3 free /w/<slug> fleet workspaces

Enterprise & Custom $399+/mo · $499+

$499–$2,999 custom dept agent fleet; $399+/mo multi-BU ledger & SOC2/GDPR routing

Methodology, Privacy & FinOps FAQ

Frequently Asked Questions About Local Counterfactual Bill Auditing

Engineered by CostLean AI · Zero Third-Party Ads · Open Deterministic Math

How does the CostLean Scanner guarantee 0 Bytes Uploaded and strict enterprise privacy?

Every CSV, JSONL agent trace, and invoice text snippet is parsed exclusively inside your browser memory using FileReader and our deterministic TypeScript engine. Literally zero bytes of your billing data are transmitted to any server. Open your browser DevTools -> Network tab before dropping a file to verify 0 KB outbound traffic — making it safe by design for SOC2, PIPL, and GDPR environments.

How does deterministic Counterfactual Log Replay calculate savings without guesswork?

Instead of vague percentage sliders, our engine replays your actual rows against a 45+ LLM token price dictionary, 65+ AI/Cloud SaaS vendor rules, and AWS Cost Explorer rate cards. It computes exact row-level deltas if short flagship requests (<=480 output tokens) routed to DeepSeek-V3 Lean or GPT-5 Mini, static system prompts hit 65% prefix cache, and runaway agent retry loops aborted at 2 retries.

Can it detect AWS NAT Gateway data processing taxes and idle cloud waste?

Yes. Drop any AWS Cost Explorer CSV and the scanner automatically flags NatGateway-Bytes ($0.045/GB data tax often caused by private subnets pulling S3/ECR data without a free Gateway Endpoint), NatGateway-Hours ($32.85/mo per AZ), idle Elastic IPs ($0.005/hr), and unattached gp2 EBS volumes — outputting copy-paste Terraform for S3 VPC Gateway Endpoints + ARM64 t4g.nano fck-nat (80%–85%+ savings).

How do I stop persistent multi-bot fleets (Orca, OpenCode, Claude Code, Cron) from burning tokens?

Multi-agent cost explosions happen when every worker bot and 30-minute Cron job runs on flagship models while re-reading 30k+ uncached repo tokens. Using the generated ./opencode.json config with CostLean LeanRouter, only your Manager Bot uses flagship reasoning for planning, while worker sub-bots run on lean tiers with SOUL.md/MEMORY.md file memory and zero-diff Cron short-circuiting — cutting fleet spend by 68%–70%.

Why does CostLean skip Plaid bank logins and refuse $9.99/week subscription traps?

Traditional subscription trackers demand invasive bank OAuth credentials (which fail outside supported banks) and ironically charge $9.99/week. CostLean works globally across USD, EUR, GBP, and CNY with zero bank login. When you upgrade to automate routing on app.costlean.com, you start with 30+100 free LeanCredits, a $4.99 never-expiring pack, or transparent $19/mo Pro — cancelable in 1 click.

How fast can my team implement the Top 3 bleeding fixes after scanning?

You can copy-paste the generated ./opencode.json LeanRouter snippet or AWS VPC Endpoint Terraform code in under 2 minutes completely free. To provision managed sk-lean-* smart routing keys and spin up custom Manager + Sub-Bot department workbenches (/w/<slug>) via Skill or MCP in 3 seconds, click through to app.costlean.com and claim your free starter credits.