Real-time balances calculated directly from the immutable transaction ledger
100 Credits = $1.00 USDREAL DATABASE DATA
Real Paid Revenue
$0.00
Actual Paid Top-ups0 cr
Real Upstream Cost
$0.0000
Actual provider invoice cost
Real Net Profit
$0.0000
20% realized margin (1.25x markup)
Credits In Circulation
0.00 cr
Outstanding customer balances
Active Subscriptions
0
Cards on File
0
Total Proxy Calls
0
Metered Tokens
0
Bonus Credits Given
0 cr
Active Virtual Keys
0
Platform Intelligence & Visual Graphs
Live visual telemetry: user growth, model popularity ranking, and metered token consumption
CHART.JS TELEMETRY
Most Used Model (Share)
Calculating...
Which AI model is used the most by request volume
🥇 Highest Traffic:-
Token Volume by Model
0 tokens
Total metered tokens processed per model
Top Consumer:-
Platform User Growth
0 users
Cumulative registered customers over time
Total Accounts:-
Upstream AI Master Gateways
OpenAI
ONLINE
Google Gemini
ONLINE
Anthropic Claude
ONLINE
DeepSeek
ONLINE
LiteLLM Gateway
STANDBY
Fast Administrator Shortcuts
1-CLICK ACTIONS
Subscription Plans & Credit Packages
Manage one-time top-ups and automated recurring recharge plans across global and African payment rails (Cards, Kenya M-Pesa, Nigeria Bank Transfer)
How Subscriptions & Auto-Recharge Function
When a customer enables auto-recharge, the router securely stores their tokenized card (via Paystack or Stripe). When their wallet balance dips below the set threshold (e.g. 50 credits), the system automatically bills the card and immediately replenishes their credits without interrupting active LLM agent sessions.
Active Catalog Packages (Dynamically Priced in KES / NGN / ZAR)1 Credit = $0.01 USD
Frankfurter Currency Converter & Exchange Rates
ECB Live Reference Rates
Live foreign exchange rates powered by the open-source Frankfurter API (European Central Bank). Real-time conversions and dynamic billing localization.
All active models registered in the router • Updates apply dynamically
Model Name
Input Cost / 1M (Raw $)
Output Cost / 1M (Raw $)
Customer Input / 1k Tokens
Customer Output / 1k Tokens
Tokens per 1 Credit
Action
Loading model pricing rates...
Live Token-to-Credit Cost Estimator
Simulate exact client charges and platform gross margin
Billed to Customer:$0.0034
0.338 cr
Margin: +$0.00067 (20%)
Customer Accounts & Subscriptions
Inspect customer wallets, configure recurring auto-recharge subscriptions, manage balances, and track API usage
0 Customers
Customer ID / Email
Role
Credit Balance
Subscription (Auto-Recharge)
Lifetime Spent
Active API Keys
Joined Date
Admin Actions
Loading customer accounts...
Model Traffic & Cost Breakdown
100% real metered volume, provider invoice costs, billed credits, and owner margins per model
0 Models
Requests per Model
Net Profit Margin per Model ($)
Model Identifier
Requests
Total Tokens
Billed Credits
Real Provider Cost ($)
Net Owner Margin ($)
No model activity recorded yet
Need to widen your platform profit margin? You can update model input/output rates or raise the markup multiplier anytime.
Live Credit Ledger Audit Feed
Real-time immutable ledger entries across all users, purchases, and model calls
Timestamp
Customer
Type
Description / Model
Tokens
Provider Cost
Amount
Balance After
Loading audit feed...
Upstream Gateways & Master Keys
Master provider credentials used by the proxy to fulfill customer LLM calls
OpenAI Gateway
Checking...
-
gpt-4o, gpt-4o-mini, o1, o3
Google Gemini Gateway
Checking...
-
gemini-1.5-pro, 2.0-flash
Anthropic Claude Gateway
Checking...
-
claude-3-5-sonnet, haiku
DeepSeek Gateway
Checking...
-
deepseek-chat, deepseek-r1
LiteLLM Unified Proxy
Checking...
-
Universal fallback router
SQLite SQLite3 Ledger
HEALTHY
prisma/dev.db
ACID balance lockingACTIVE
Security Posture & Rate Limit Controls
Authentication Rate Limit
15 req / 15m
Brute-force protection
OpenAI Proxy Rate Limit
120 req / 1m
Burst protection
Admin API Limit
8 req / 15m
High sensitivity cap
Content Security Policy
Strict + Charts
Clickjacking guard
Client Applications & Sign-In Integration
Let your external apps, mobile clients, and web platforms allow users to sign in and call the AI Router seamlessly.
JWT Auth • 0 Exposed Keys
How "Sign-In to Use" Works for Your Apps
SECURE FRONTEND PATTERN
Traditional API keys cannot be safely placed in client applications (React, Vue, iOS, Android) because users can inspect the code and steal the key. With Pikpam Router Sign-In Auth, your applications authenticate users directly with email & password. The resulting user session token is passed as a Bearer token to /v1/chat/completions, automatically deducting credits from that specific user's prepaid balance.
STEP 1: USER SIGNS IN
App Login Endpoint
User enters email/password. App calls POST /api/auth/login and receives a JWT token.
STEP 2: DIRECT PROXY CALL
Standard OpenAI Format
App sends LLM query to /v1/chat/completions with Authorization: Bearer <token>.
STEP 3: AUTOMATIC METERING
Zero Configuration
Pikpam Router validates the user, holds reservation, routes tokens in real-time, and debits the user's wallet atomically.
Registered Client Applications
Applications authorized to authenticate users and route requests
Loading apps...
Application
Client ID
Auth Mode
Allowed Origins
Processed Calls
Status
Actions
Loading registered apps...
Model Context Protocol (MCP)
Role: SUPER ADMIN ONLY
10 Tools Active
Pikpam Admin AI Agent & MCP Console
Autonomous operational intelligence powered by Model Context Protocol. Manage wallets, query financial KPIs, update runtime model pricing, and audit client apps using natural language or external MCP-compliant coding assistants.
Quick Tasks:
Live Admin Copilot TerminalPOST /api/admin/agent/chat
Pikpam Admin AIMCP Execution Engine
Welcome, Administrator. I am your autonomous AI operations copilot, equipped with direct Model Context Protocol access to your platform database, billing engine, and proxy router.
Example instructions you can give me:
• "Summarize our revenue, gross profit, and margin %"
• "List customer accounts with the lowest credit balance"
• "Grant 100 credits to user@pikpam.com for beta testing"
• "Show all registered client applications and their client IDs"
• "Check status of our upstream OpenAI and Anthropic API keys"
Active MCP Tools (10)
READY
admin_get_metricsREAD
System revenue, gross profits, tokens, margin %, active keys.
admin_adjust_balanceWRITE
Credit or debit user wallet with immutable ledger audit reason.
admin_list_usersREAD
List users, balances, holds, and active virtual API keys.
admin_list_modelsREAD
Dynamic catalog, rates per 1k tokens, markup multiplier.
admin_update_model_pricingWRITE
Register new model or update rates per 1M tokens.
admin_update_markupWRITE
Update global profit multiplier (e.g. 1.25 -> 1.35).
admin_list_appsREAD
List registered client apps, client IDs, and allowed origins.
admin_toggle_appWRITE
Enable or disable client app by ID.
admin_inspect_gatewaysREAD
Check upstream provider master API keys health & DB status.
External MCP Endpoint
Connect Cursor, Claude Desktop, or Antigravity directly to this router's admin operations.
Manage Customer Account
customer@domain.com
Current Credit Balance:0.00 cr
Positive number adds credits (as bonus/refund); negative number deducts.
No Card On File
Paystack tokenization inactive
DISABLED
cr
Recharge when balance < X
Credits charged per cycle
Register New AI Model
Dynamic registration for OpenAI, Anthropic, Google, Meta, or Open Source
OpenAI API key usually starts with sk-proj- or sk-...
Keys are stored in the server master vault and encrypted in memory.
Create Subscription Package / Plan
$
Total customer receives: 28 credits
Eligible for Paystack (Cards & Kenya M-Pesa) and Recurring Auto-Recharge
Register New Client Application
Authorize a frontend, mobile, or chatbot app to use Sign-In Auth
Domain origins permitted to make cross-origin browser requests
App Sign-In Integration Guide
Ready-to-use client authentication and proxy code
1. Authenticate User on Client:
// On your login form submission:
const res = await fetch('https://pikrouter.pikpam.com/api/auth/login', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email: userEmail, password: userPassword })
});
const { token, user } = await res.json();
// Store token in localStorage or secure cookie
localStorage.setItem('auth_token', token);
2. Call OpenAI-Compatible Router with User Token:
// Use standard OpenAI SDK with the user's token:
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: localStorage.getItem('auth_token'), // Direct user sign-in token!
baseURL: 'https://pikrouter.pikpam.com/v1',
dangerouslyAllowBrowser: true // Safe because no master API key is exposed!
});
const response = await client.chat.completions.create({
model: 'gpt-4o-mini',
messages: [{ role: 'user', content: 'Hello AI Router!' }],
stream: true
});
for await (const chunk of response) {
process.stdout.write(chunk.choices[0]?.delta?.content || '');
}
Connect external AI agents (Cursor, Claude Desktop, Antigravity) to your admin console
Strict Administrator Role-Based Access Control
Pikpam Router exposes 10 administrative tools through the Model Context Protocol standard. Only authenticated administrator accounts can invoke these tools. Requests from regular users or invalid tokens are rejected with HTTP 403 Forbidden.
1. Stdio Configuration (Cursor, Claude Desktop, Antigravity):