Spanlens
A drop-in proxy sits between an app and OpenAI, Anthropic, or Gemini and logs each call's cost, tokens, latency, and full prompt for debugging and spend control. Adoption means changing a base URL or running a CLI wizard that patches existing client calls. A surprise bill? Filter requests by model or key, check per-end-user totals, then open any one to read the messages and the reply, even when it streamed. A slow agent? Its run opens as a waterfall timeline with the critical path marked, or as a node graph for LangChain and LangGraph traces. Spend, latency, and error spikes are measured against a seven-day baseline, and alert rules route breaches to email, Slack, or Discord. Savings recommendations point to cheaper models for simple tasks, with estimated monthly dollars and a simulate button. Detectors flag emails, phone numbers, card numbers, and prompt-injection attempts, and a project can block injections outright. Prompt edits keep versions with diffs and A/B traffic splits, while LLM judges and a human rating queue score the outputs. Workspaces carry admin, editor, and viewer roles, and every invitation or role change is logged with who made it. Cursor or Claude Desktop can query the same data through a bundled MCP server. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.
Deploy