OpenGauge: Open-source tool for tracking LLM agent costs locally

What OpenGauge does
OpenGauge is an open-source monitoring tool that tracks API usage and costs for LLM agents like those built with OpenClaw. It runs locally on your machine, storing all data in a SQLite database without sending information to external services.
Key features from the source
- Proxy mode: Routes API calls through OpenGauge for automatic logging. Command:
npx opengauge watch ANTHROPIC_BASE_URL=http://localhost:4000 claude - Cost statistics: Shows detailed breakdowns with commands like
npx opengauge stats --period=7dthat display per-model costs, daily trends, token counts, and most expensive sessions - Circuit breaker: Detects and stops runaway loops where agents make repeated identical calls
- Budget limits: Can be set per session, daily, or monthly to prevent unexpected charges
- Multi-provider support: Works with Anthropic, OpenAI, Gemini, and local models through Ollama
- OpenClaw plugin: Specific integration for OpenClaw agents with simple installation:
openclaw plugins install /openclaw-pluginfollowed byopenclaw gateway restart
How it addresses common problems
The source author reported issues with:
- Lack of visibility into per-session costs (only seeing total usage in provider dashboards)
- Runaway loops where an agent made the same call 30+ times before being stopped
- Unexpected billing alerts due to uncontrolled usage
OpenGauge solves these by providing session-level cost tracking, similarity detection for repeated prompts, and configurable budget limits.
Getting started
For general use: npx opengauge (no installation needed)
For OpenClaw-specific tracking: npx opengauge stats --source=openclaw or npx opengauge stats --source=openclaw --period=7d
The tool can also function as a proxy for other development tools like Claude Code and Cursor.
📖 Read the full source: r/openclaw
👀 See Also

Stanford Researchers Release OpenJarvis: A Local-First Framework for On-Device AI Agents
Stanford researchers have released OpenJarvis, a local-first framework for building on-device personal AI agents with tools, memory, and learning capabilities. The project includes GitHub repository and website links for developers to explore.

Claude Code Skills for Automated Project Scaffolding
A developer has built Claude Code skills that automate full-stack project setup with commands for React, Next.js, Node.js APIs, and Turborepo monorepos. The skills pull latest dependencies, support 50+ integrations, and are MIT licensed.

Claude Watch: Open Source Tool Visualizes AI-Generated Code Logic
Claude Watch is an open source tool that provides graphical semantic visualization for projects built with AI coding agents like Claude Code. It analyzes code in a nested way and includes AI-powered search to answer questions about project logic.

Org Studio: Open-source dashboard for managing multi-agent AI teams
Org Studio is an open-source dashboard that applies organizational design principles to coordinate teams of AI agents, with native support for both OpenClaw and Hermes Agent runtimes. It features team topology management, event-driven task boards, and cross-runtime communication where agents can mention each other in task comments.