cost.observer
Requests (24h)
8,241
+12% vs yesterday
Total Cost (24h)
$6.80
across 3 providers
Tokens
2.4M
in 1.2M · out 1.2M
Avg Latency
1.2s
p95 2.8s
Providers
3
anthropic · openai · azure
Budgets
4
active across projects
Cache Hit Rate
34%
saved $1.11
Error Rate
0.2%
4 failed
Cost by Project (24h)
ProjectReqsCostTokens
Lumenware3,482$2.871.02M
Northwind1,536$1.23437K
Contoso1,221$1.14389K
Aerodrone Labs1,105$0.86301K
Independent / other897$0.70248K
Cost by Model (24h)
ProviderModelReqsCost
Anthropicclaude-opus-4-73,614$3.78
Anthropicclaude-sonnet-4-62,901$2.11
OpenAIgpt-4-turbo1,423$0.91
Azuregpt-4-32k302$0.00
Ollamallama-3-70b1$0.00
Request Volume (24h)
Spend Trend (30d · $)
Model Distribution (24h cost)
Latency Percentiles (24h · ms)
p50
p75
p95
p99
Anthropic
980
1,340
2,810
4,120
OpenAI
1,110
1,520
3,020
4,480
Azure
720
910
1,640
2,280
Ollama
320
410
620
840
Request Heatmap (7d × 24h)
00h06h12h18h23h
Top Models — Trend (7d)
ModelReqsCostAvg LatencyΔ 7d
claude-opus-4-725,298$26.461.4s+12%
claude-sonnet-4-620,307$14.770.9s+18%
gpt-4-turbo9,961$6.371.2s+3%
gpt-4-32k2,114$0.000.8s-6%
llama-3-70b7$0.000.4snew
Streaming — real-time request events 0 events
TimeProjectSrcModel InOut CostLatency
Recent Requests
TimeProjectProviderModel InOut CostLatencyStatus
Active Budgets
Lumenware · daily
$6.80 / $10.00
Northwind · daily
$1.23 / $5.00
Contoso · daily
$1.14 / $3.00
Aerodrone Labs · daily
$1.56 / $8.00
Anomaly
info
No anomalies in the last hour — spend tracking normal.
Connected Providers

Anthropic

opus-4-7 + sonnet-4-6 · $5.89 / 24h (87%)
latency 1.1s

OpenAI

gpt-4-turbo · $0.91 / 24h (13%)
latency 1.2s

Azure OpenAI

gpt-4-32k · $0.00 / 24h (fallback only)
latency 0.8s

Ollama (local)

llama-3-70b · $0.00 / 24h
latency 0.4s

LM Studio

0 models · idle
latency —

Project Attribution

Model Aliases (5 of 14)

AliasProviderModel
opusAnthropicclaude-opus-4-7
sonnetAnthropicclaude-sonnet-4-6
gpt4OpenAIgpt-4-turbo
gpt4-longAzuregpt-4-32k
localOllamallama-3-70b

Failover Chain (default)

PriorityProviderModelTrigger
primaryAnthropicclaude-opus-4-7default
fallbackOpenAIgpt-4-turboprimary.down OR 429
localOllamallama-3-70ball cloud down OR budget cap

Routing Rules

ProjectConditionTargetFallback
Lumenwarebudget > 85%Anthropic / claude-sonnet-4-6Ollama / llama-3-70b
allprovider.downOpenAI / gpt-4-turboAzure / gpt-4-32k
Aerodrone Labsinput > 20k tokensAzure / gpt-4-32k-

API Keys (3 of 5 masked)

ProviderKeyLast used
Anthropicsk-ant-··········7f2a2s ago
OpenAIsk-··········1e8b11s ago
Azure··········4c3d4m ago
The Observer Platform

Cost Observer

The AI Gateway for Managed, Attributed LLM Spend

One OpenAI-compatible egress for Anthropic, OpenAI, Azure OpenAI, Ollama, and LM Studio. Per-project budgets, alerting, multi-provider failover, full audit trail.

How a prompt flows through the gateway

Every request, attributed, inspected, routed, capped, and audited.

1

Application sends prompt

Any OpenAI-compatible SDK points at the gateway.

→
2

Project attribution

Tagged via header, API key, or session lineage.

→
3

DLP inspection

Mid-flight DLP scans for secrets, PII, policy violations.

→
4

Budget check + route

Over budget? Downgrade. Provider down? Failover.

→
5

Recorded + audited

Prompt, tokens, cost, latency persisted to SQLite.

One egress. Six reasons to make it your gateway.

Drop-in proxy. Day-one attribution. Hard caps, not alerts.

Cost attribution that works

Every request tagged to a project via header, API key, or session lineage. Per-project, per-model, per-day, per-token rollups out of the box.

Budget enforcement, not alerts

Daily/weekly/monthly budgets per project or per user. When a limit is hit, the gateway downgrades or blocks — apps stay up, costs stay capped.

Multi-provider failover

Anthropic, OpenAI, Azure OpenAI, Ollama, LM Studio behind one OpenAI-compatible egress. Opus → Sonnet → Haiku → GPT-4o → local Llama on failure.

Mid-flight DLP hook

Every outbound prompt can be inspected for DLP violations before it crosses the trust boundary. Cluster-aware circuit breaker for graceful degradation.

SQLite-backed audit trail

Every prompt, completion, cost estimate, and budget event landed in SQLite. CSV export, REST API for FinOps integration, no SaaS dependency.

Resilience-first design

Cluster-mode workers, graceful shutdown, streaming-tuned timeouts, configurable retry policy. Built for the hot path of production AI traffic.

Where Cost Observer fits in your AI workflow

Eight observers, one pipeline — intake to evaluate.

Intake
Humans and AI file the work.
  1. 1
    Tasks
    intakes the work
Gateway
Every AI call has one front door.
  1. 2
    Cost
    signs the egress
AI Models
One SDK speaks them all — hosted and local.
Anthropic OpenAI Azure Google Mistral Meta Ollama local LM Studio local
Execute
AI agents route the right tool to the right job.
  1. 3
    Transmission
    routes the tools
Validate
Every claim is gated, scanned, and verified.
  1. 4
    Shield
    gates the output
  2. 5
    Tests
    verifies the claims
  3. 6
    Automation
    replays the end-to-end flows
Evaluate
Spend attributed. State persisted. Everything observed.
  1. 7
    Cost
    attributes the spend
  2. 8
    State
    persists the audit

Every Claude call routes through Cost Observer — one gateway, every provider, keys you never share.

Drop in. Point your apps. Done.

Same SDK. Same call shape. New base URL and a project header. Day-one attribution — zero application code changes.

Point and forget

Swap the base URL and add one header. The gateway handles attribution, budget checks, DLP, routing, failover, and audit — invisibly.

  • OpenAI-compatible API: swap base URL, keep your code
  • Streaming-native: SSE, tool calls, vision payloads pass through byte-identical
  • One project header: attribution without rewriting integrations
  • Hard caps, not alerts: over-budget → downgrade or block automatically
app.py
# Point any OpenAI SDK at the gateway.
from openai import OpenAI

client = OpenAI(
    base_url="https://cost.observer/v1",
    api_key=GATEWAY_KEY,
    default_headers={
        "X-Project": "support-assistant",
    },
)

response = client.chat.completions.create(
    model="claude-opus-4-7",   # routed to Anthropic
    messages=[...],
)
# Attributed. Budget-checked. Logged.

Ready to Make AI Spend Predictable?

Day-one cost attribution. Budget enforcement, not budget alerts. Multi-provider failover. Self-hosted, SQLite-backed, no SaaS dependency.

Get Started
Ready When You Are
Quick question or big project — we'll reply here.