Total Calls
Total Cost
$0.00
Estimated spendAverage Latency
0ms
Mean response timeError Rate
0%
Failed requests / total requestsCost Breakdown
Usage Over Time
📊 Token Usage
🔝 Top Models
No data available
💸 Most Expensive Calls
No data available
Recent Events
| Time | Provider | Model | Tokens | Cost | Latency | Status |
|---|---|---|---|---|---|---|
| Loading events... | ||||||
Add or Rotate API Key
Keys are encrypted before they are saved. Use labels like
production or staging per provider.
Saved API Keys
Stored keys are shown as masked values only.
No API keys saved yet.
Enterprise Add-On
Enterprise runtime controls, governance, and gateway features ship as a separate private package. Install the add-on to enable these capabilities in the dashboard.
⚡ Dynamic Model Routing
Route prompts to cost-effective models based on task complexity
🛑 Budget Enforcement
Set spend limits with automatic circuit breakers
💰 Cost Optimization
Identify token waste and inefficient prompts
⏱️ SLA-Aware Routing
Route based on latency requirements
📋 Governance & Audit
Audit trail for compliance
🤖 Agent Tracking
Track workflows & detect loops
🔒 Policy Engine
Allowlists, PII detection
Separate Package Boundary
The open-source StackSense SDK stays clean and self-hosted. Enterprise routing, budgets, policies, audit tooling, agents, and the AI gateway live in a separate private package so they are not bundled into the OSS release artifact.
pip install stacksense-enterprise
Get Support
📡 Live Monitoring
DisconnectedReal-time request metrics, alerts, and system health monitoring for the open-source SDK.
🏥 System Health
Loading health status...
🚨 Live Alerts
No active alerts
📊 Prometheus Metrics
Access raw Prometheus metrics at /metrics
/metrics
Prometheus Exposition Format
- stacksense_requests_total - Total requests by feature
- stacksense_request_duration_seconds - Request latency
- stacksense_request_errors_total - Request errors
- stacksense_system_health - Component health
Additional enterprise metrics appear when the private add-on package is installed.
Google OAuth Setup
- Create an OAuth 2.0 client in Google Cloud Console.
- Add this redirect URI:
- Set environment variables before running the dashboard.
STACKSENSE_GOOGLE_CLIENT_ID=your_client_id STACKSENSE_GOOGLE_CLIENT_SECRET=your_client_secret STACKSENSE_SESSION_SECRET=change_this_secret STACKSENSE_ENCRYPTION_KEY=change_this_encryption_key
How Account Storage Works
- A user record is created on first Google login.
- Each account gets isolated API key records in the database.
- API keys are encrypted before they are persisted.
- The dashboard only returns masked key hints to the UI.