Monitor every API call, block prompt injections, redact PII, and control costs. Two lines of code. No infrastructure changes.
Lantern provides end-to-end observability for LLM applications with full visibility into inputs, outputs, latency, token usage, and costs. Real-time guardrails block prompt injection attempts, redact PII before it reaches the model, and filter toxic outputs before they reach your users. A live dashboard surfaces incidents, cost trends, and performance anomalies the moment they occur — so African companies deploying AI can move fast without flying blind.
Every request logged with inputs, outputs, latency, token usage, and cost. Anomalies surface automatically before they become incidents.
Real-time guardrails scan every request for prompt injections, PII leaks, and toxic outputs — before they hit the API or reach your users.
Track cost per app, per model, per user. Set daily budget limits and get alerted the moment usage spikes beyond your baseline.
Every request and response logged with latency, cost, status, and guardrail results. Filter, search, and export for compliance audits.
No infrastructure changes. No proxy servers. Wrap your existing Anthropic client and every call is automatically monitored and protected.
One pip command. Works with your existing Anthropic client. No changes to your infrastructure or call signatures.
Call lantern.wrap() once at startup. Every subsequent LLM call is automatically intercepted and guarded.
Open your dashboard. Every call, every cost, every incident — live. Invite your team and set alerts in minutes.
# pip install lantern-ai import anthropic import lantern # Initialise once at application startup lantern.init( postgres_dsn="postgresql://...", app_name="fintech-support", block_prompt_injection=True, redact_pii=True, ) # Wrap your client — that is it client = anthropic.Anthropic() lantern.wrap(client) # All calls are now monitored and protected response = client.messages.create( model="claude-sonnet-4-6", max_tokens=1024, messages=[{"role": "user", "content": user_msg}] )
Start free. No US-enterprise contracts. No $3,000/month bills. Cancel anytime.
Join African companies using Lantern to monitor their LLM usage, block security threats, and control costs — from $99/month.