Per-query cost visibility across LLMs and infra — Anthropic, OpenAI, Azure, Redis, Qdrant, Appwrite. Your prompts are never captured, stored, or transmitted.
CostPilot captures only what's needed for cost math: token counts, model names, latency. Prompt text, response content, and documents are dropped at the interceptor layer before any storage or transmission occurs.
Only 14 explicitly safe fields are stored. Every other field is silently dropped — no override possible.
User and session IDs are SHA-256 hashed with a per-account salt that never leaves your environment.
Audit logging, rate limiting, AES-256 at rest. Full data export and deletion endpoints built-in.
# 5-line integration import anthropic from costpilot import CostPilotClient cp = CostPilotClient(project="my-app") client = cp.wrap(anthropic.Anthropic()) # Your code is unchanged ↓ response = client.messages.create( model="claude-sonnet-4-5", messages=[{"role": "user", "content": prompt}] ) # What CostPilot stores: # ✓ input_tokens: 4280 # ✓ output_tokens: 892 # ✓ cost_usd: 0.00426 # ✗ prompt → NEVER CAPTURED # ✗ response → NEVER CAPTURED
No infra changes. No code rewrites. Drop it in, wrap your client, done.
pip install costpilot
then costpilot init.
Your 14-day trial starts automatically — no card needed.cp.wrap(anthropic.Anthropic()).
Your existing call signatures are completely unchanged.costpilot serve
to open Overview, Queries, Scenario, Services, and Migration pages — all fed from your local SQLite.
Other tools trace everything. CostPilot answers the question teams actually ask: what is my AI stack costing me, and why?
| Capability |
CostPilot
|
Langfuse | Helicone | LangSmith | Phoenix |
|---|---|---|---|---|---|
| Prompt-free by default | Yes | Opt-in | Opt-in | Opt-in | Opt-in |
| Infra health → cost correlation | Yes | No | No | No | No |
| Local SQLite — no cloud needed | Yes | Self-host | No | No | Self-host |
| Cloud migration cost projection | Yes | No | No | No | No |
| Per-query cost breakdown | Yes | Yes | Yes | Yes | Yes |
| 5-line SDK integration | Yes | More setup | Yes | LC-first | More setup |
| Full prompt tracing & evals | Not the goal | Yes | Partial | Yes | Yes |
Langfuse tells you what happened.
CostPilot tells you what it cost — and what to do next.
Need deep tracing and prompt management? Langfuse is excellent. Need to govern AI spend, catch infra-driven cost spikes, and plan migrations? CostPilot is the sharper tool.
Open the in-dashboard docs for setup and reference material, or jump straight to the published SDK packages for Python and Node.js.
Setup guides, product walkthroughs, and reference docs are available at the dashboard docs route, so the latest product experience and instructions stay in one place.
Use the published Python package for local-first cost tracking in your existing app stack.
Use the published Node.js package for JavaScript and TypeScript integrations with the same CostPilot flow.
CostPilot is currently free for everyone — 1 project per account. Paid plans are coming soon. Get notified first.
Paid plans launching soon — Starter, Pro, and Enterprise. Enter your email to get notified.
costpilot/privacy/sanitizer.py.Start your 14-day trial. No credit card. No prompt capture. Ever.