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

Pu.sh: 400-Line Shell Script Coding-Agent Harness from HN
Pu.sh is a portable coding-agent harness in 400 lines of shell (sh, curl, awk), supporting Anthropic + OpenAI, 7 tools, REPL, checkpoint/resume, and pipe mode — with 90 no-API tests.

Analysis of Ollama's Reusable Go Components for Local LLM Development
A developer examined Ollama's source code and found several standalone Go components including a pure Go token sampler, GGUF reader/writer, model conversion tools, chat template rendering, and OpenAI compatibility transforms that aren't available as separate libraries.

Wisepanel MCP Server Enables Multi-LLM Deliberation in Claude Code and Cursor
Wisepanel released an MCP server that runs multi-agent deliberations directly from Claude Code, Cursor, or any MCP client, using a divergent context enhancement system with ChatGPT, Claude, Gemini, and Perplexity models.

Node Control: Real-Time Multiplayer .io Game Built Entirely with Claude 4.6 and 4.7
Developer built a live competitive multiplayer .io game, Node Control, using Claude 4.6 and 4.7. Features server-authoritative netcode at 60Hz, 4-region deployment on fly.io, and neural-network aesthetic.