TokenOps by Lovie is a specialized unit economics platform designed specifically for AI-native companies that need to understand the profitability of their customer relationships. This finance-focused tool captures LLM usage data through a simple SDK integration and provides granular cost attribution down to the individual customer level, solving the critical business challenge of determining which accounts are actually profitable when using expensive AI models. The platform wraps popular LLM clients with one line of code and automatically tracks usage across multiple vendors, then reconciles this data against monthly invoices to provide accurate per-customer margin calculations that traditional spreadsheets cannot deliver.
AI companies face the fundamental problem of vendor invoices that aggregate costs at the workspace level, making it impossible to determine which specific customers incurred which expenses. When Anthropic, OpenAI, or other providers send their monthly bills, they show total usage across all customers without any attribution, turning the simple question 'is this customer profitable?' into a complex research project requiring manual CSV exports, SQL joins, and spreadsheet analysis. This invoice mystery forces finance teams to spend hours each month trying to allocate costs properly, while effective rates often diverge from list prices due to caching, batch processing, regional variations, and volume discounts that only become apparent during reconciliation.
The platform's core feature is its comprehensive vendor wrapper system that supports Anthropic, OpenAI, Amazon Bedrock, Google AI, Vercel AI, Azure OpenAI, and other major providers with simple one-line code integrations. These wrappers capture every LLM call event while ensuring that traffic goes directly to the vendor without proxying, maintaining performance and security. Each captured event includes model information, input/output tokens, vendor-reported usage metrics, latency data, and the critical customerId parameter that serves as the join key for attributing costs to specific accounts, enabling precise per-customer cost tracking from the moment of implementation.
TokenOps features a sophisticated reconciliation engine that automatically matches captured usage events against monthly vendor invoices line by line, revealing the actual effective rates paid versus published list prices. This reconciliation process identifies rate drift caused by volume discounts, batch processing optimizations, and other factors that affect final pricing, providing visibility into savings and cost anomalies. The system flags discrepancies between expected and actual invoices, detects missing line items, and surfaces quietly applied discounts that would otherwise go unnoticed, giving finance teams complete transparency into their AI infrastructure spending across all vendors and models.
admin
The platform includes a comprehensive MCP (Model Context Protocol) catalog with thirty specialized tools organized into five functional families covering customers, events, vendors, finance operations, and system management. These tools enable AI agents to answer complex financial questions through natural language queries, with read-only tools available by default and write capabilities requiring separate authorization. The MCP layer integrates seamlessly with Claude Desktop, Cursor, Codex, and other MCP-aware clients, allowing users to ask questions like 'what was our gross margin on Acme last month?' and receive structured answers drawn from the captured cost data.
TokenOps operates through a straightforward three-step workflow beginning with SDK installation using npm or pip packages that support edge runtime environments. After installation, developers wrap their existing LLM clients with one line of code per vendor, passing the customerId parameter with each API call to establish the attribution chain. The system then automatically captures usage events, displays near-real-time cost data in dashboards and APIs, and performs monthly reconciliations when vendor invoices arrive, providing continuous visibility into per-customer profitability without ongoing manual intervention.
Concrete use cases include monthly board reporting where finance teams use the build_pnl workflow to generate per-customer profit and loss statements by joining captured LLM costs with revenue data from CRM systems. Customer success managers can identify accounts at risk of churn by monitoring gross margins and receive alerts when customer spending patterns deviate significantly from baselines. Product teams can simulate pricing changes using the price_change workflow to forecast revenue impact and identify customers who might churn under new pricing models, while engineering teams use anomaly detection to catch runaway LLM usage loops before they generate unexpected invoice surprises.
TokenOps targets AI-native companies, SaaS businesses with AI features, and enterprises building internal AI applications that need to track the unit economics of their LLM usage. The platform supports TypeScript and Python SDKs with edge runtime compatibility and integrates with major cloud AI services through its vendor wrapper system. Pricing begins with a free 30-day trial that includes full functionality on live telemetry data, with custom enterprise plans available for teams requiring higher volumes, additional vendors, or advanced controls like multi-entity support and SSO integration. The platform delivers critical financial visibility that transforms AI cost management from a monthly guessing game into a data-driven business process.
TokenOps targets AI-native companies building products with LLM integration, SaaS businesses incorporating AI features into their platforms, and enterprise teams developing internal AI applications. Specifically designed for finance leaders, product managers, engineering teams, and customer success managers in organizations that need to track the profitability of AI usage across their customer base and manage multi-vendor AI infrastructure costs effectively.