Overview
Monitor your AI agent usage, track costs and find optimisation opportunities.
Agents
Manage and monitor your AI agents.
Agent List
All configured AI agents
| Agent Name | Type | Status | Requests (24h) | Cost (24h) | Actions |
|---|---|---|---|---|---|
| Support Agent | Customer Support | Active | 5,432 | £15.18 | |
| Content Agent | Content Generation | Active | 3,124 | £12.06 |
Projects
Organize your AI agents into projects.
Project List
All your projects and their statistics
| Project Name | Agents | Status | Cost | Actions |
|---|---|---|---|---|
| Customer Support Platform | 5 agents | Active | £54.20 |
Monitoring
Real-time monitoring of your AI agent performance.
Live Activity
Monitor real-time agent activity
Hot Spots
Identify high token consumption areas.
Optimisation
Discover cost-saving opportunities.
Alerts
Monitor important notifications.
MCP Integration
Connect TokenSaver AI to your project and start saving tokens instantly.
Quick Start Guide
Get up and running in 3 simple steps
Install the SDK
Add TokenSaver to your project
npm install @tokensaver/mcp-client
Configure API Key
Add your unique API key
Start Monitoring
Wrap your AI calls and track automatically
Implementation Examples
Copy and paste into your project
Node.js / TypeScript
import { TokenSaver } from '@tokensaver/mcp-client';
// Initialize TokenSaver
const tokenSaver = new TokenSaver({
apiKey: 'ts_live_your_api_key_here',
projectId: 'your-project-id'
});
// Wrap your AI calls
const response = await tokenSaver.track(async () => {
return await openai.chat.completions.create({
model: 'gpt-4',
messages: [{ role: 'user', content: 'Hello!' }]
});
}, {
agentName: 'support-agent',
userId: 'user-123'
});
Python
from tokensaver import TokenSaver
# Initialize TokenSaver
ts = TokenSaver(
api_key="ts_live_your_api_key_here",
project_id="your-project-id"
)
# Decorator to track AI calls
@ts.track(agent_name="content-generator")
def generate_content(prompt):
response = openai.ChatCompletion.create(
model="gpt-4",
messages=[{"role": "user", "content": prompt}]
)
return response
REST API (Any Language)
POST https://api.tokensaver.ai/v1/track
Authorization: Bearer ts_live_your_api_key_here
Content-Type: application/json
{
"project_id": "your-project-id",
"agent_name": "support-agent",
"model": "gpt-4",
"tokens_used": 1234,
"prompt_tokens": 1000,
"completion_tokens": 234,
"cost": 0.0247
}
What You Get After Integration
TokenSaver AI will automatically provide these insights
Real-time Monitoring
Track every AI request, token usage, and costs in real-time with detailed breakdowns.
Smart Insights
AI-powered suggestions to reduce tokens: shorter prompts, context optimization, model selection.
Hot Spot Detection
Automatically identify expensive requests and get alerts when costs spike unexpectedly.
Auto-Optimization
Compress prompts, remove redundancy, cache common queries - all automatically applied.
Cost Forecasting
Predict monthly costs based on usage patterns and get budget alerts before overspending.
Model Comparison
Compare costs across GPT-4, GPT-3.5, Claude, etc. Get suggestions for cheaper alternatives.
Average Savings with TokenSaver
Based on 1,000+ active projects
Settings
Configure your preferences.