Others
Generic logging tools
LeanLLM
Built for LLM cost decisions
LeanLLM shows exactly where your LLM cost comes from - per feature, per user, per request.
from leanllm import LeanLLM
client = LeanLLM()
client.chat(model="gpt-4o", messages=[...], labels={"feature": "chat"},)One import. One label. Full cost visibility.
The Problem
Your OpenAI bill went up 40% last month. You don't know why. Nobody does. That's the problem.
Power users drive spend
Costs inflated by retries
Budget hidden in one flow
The Solution
LeanLLM is a cost intelligence layer. Not another logging tool. It tells you where the money goes and what to do about it.
Know exactly which product feature is expensive.
Find the users driving your LLM spend.
Surface the outliers that spike your bill.
Correlate cost with performance in one view.
How It Works
Install the SDK, connect your database, and start tracking every LLM call with cost and latency context in minutes.
Want deeper insights? Send events to LeanLLM Cloudpip install leanllmOne line. No config files.
export LEANLLM_DATABASE_URI="postgres://..."Events are stored where you control them.
# Every LLM call is now tracked
# with cost, tokens, latency, labelsImmediate visibility. No waiting.
Developer Experience
# Works with any OpenAI-compatible API
from leanllm import LeanLLM
client = LeanLLM()
response = client.chat( model="gpt-4o", messages=[{"role": "user", "content": "..."}], labels={"feature": "summarize", "user_id": "u_123"},)Outcomes
Every capability in LeanLLM exists to help you make a cost decision - not to look pretty on a dashboard.
Label every LLM call by feature. Instantly know what costs the most.
Track cost per user. Identify power users skewing your spend.
Hidden retry logic inflates your bill. LeanLLM exposes it.
Expensive doesn't always mean slow. Know which calls are both.
GPT-4o, Claude, Gemini - see costs by model in one place.
Your data, your database. Run any SQL query you want.
Pricing
Why LeanLLM
Others
Generic logging tools
LeanLLM
Built for LLM cost decisions
Others
Dashboards you never check
LeanLLM
Actionable answers you act on
Others
Observability platforms
LeanLLM
Cost intelligence layer
Others
Weeks to set up
LeanLLM
Two minutes to first insight
Open Source + SaaS
The SDK is fully open-source. Self-host, inspect, contribute. LeanLLM Cloud is optional - for teams that want aggregation, alerts, and zero maintenance.
Install the SDK. Point to your own Postgres. Full control. No data leaves your infra.
View on GitHubAggregated dashboards, alerts, team access, and deeper cost analysis. No infra to manage.
Get StartedTwo minutes to install. Immediate cost visibility. Open source.