Full observability for every AI API call — track cost, latency, and token usage across all your providers in real-time. Instrument with one line of code, gain instant visibility into your AI infrastructure, and scale to enterprise-grade routing, budget enforcement, and governance when you need it. Free, open source, and fully self-hosted.
Start with complete observability for free. Add enterprise-grade routing, budget enforcement, and governance as you scale.
Start with visibility — free, forever. Add optimization when your AI spend is worth controlling. Two tiers, one clean upgrade path.
StackSense gives you complete control over your AI infrastructure from day one. No partial solutions, no "coming soon" for critical features.
Three simple steps to instrument your entire AI stack. No configuration files, no complex setup, just wrap and go.
# Install StackSense pip install stacksense # Or with Docker docker compose up -d
# Wrap any AI client import stacksense as ss client = OpenAI() client = ss.monitor(client) # That's it!
# Start dashboard make dashboard # Open browser http://localhost:5000 # See all metrics live!
from openai import OpenAI import stacksense as ss # Initialize and wrap your client client = ss.monitor(OpenAI()) # Use normally - every call is automatically tracked response = client.chat.completions.create( model="gpt-4", messages=[{"role": "user", "content": "Hello!"}] ) # ✅ Cost, latency, tokens → tracked automatically # ✅ Visible in dashboard at http://localhost:5000 # ✅ No configuration needed
From indie hackers to enterprise engineering teams, StackSense helps you understand and control AI costs from day one.
Six capabilities that transform StackSense from a dashboard into the economic layer of your AI infrastructure.
| Feature | 🟢 Open Source | 🔵 Enterprise |
|---|---|---|
| Cost & token tracking | ✓ | ✓ |
| Latency & error monitoring | ✓ | ✓ |
| Multi-provider dashboard | ✓ | ✓ |
| SQLite + PostgreSQL | ✓ | ✓ |
| Docker / self-hosted | ✓ | ✓ |
| Kubernetes integration | ✓ Beta | ✓ Full |
| Google OAuth + accounts | ✓ | ✓ + SSO/SAML |
| Dynamic model routing | — | ✓ |
| Budget circuit breakers | — | ✓ |
| Token waste detection | — | ✓ |
| Cross-vendor arbitrage | — | ✓ |
| SLA-aware routing | — | ✓ |
| Agent workflow tracking | — | ✓ |
| Enterprise policy engine | — | ✓ |
| Audit logs & governance | — | ✓ |
| AI unit economics | — | ✓ |
| Support | Community | Enterprise SLA |
| License | Open Source | Proprietary |
| Price | Free | Custom |
pip install stacksense — wrap your clients, see your costs. No signup, no credit card, no limits. Fully open source and self-hosted.
Talk to us about dynamic routing, budget enforcement, and governance. We'll show you exactly how much you're leaving on the table.