OpenClawCostTracker 1.3.1

dotnet tool install --global OpenClawCostTracker --version 1.3.1
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local OpenClawCostTracker --version 1.3.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=OpenClawCostTracker&version=1.3.1
                    
nuke :add-package OpenClawCostTracker --version 1.3.1
                    

🦞 OpenClaw Cost Tracker

Zero-config API cost dashboard for OpenClaw Agent.

Requires .NET 10 SDK (LTS — supported until November 2028)

Install & Run

dotnet tool install --global OpenClawCostTracker
openclaw-cost

That's it. The browser opens automatically.

What it does

  • Reads your ~/.openclaw/agents/*/sessions/*.jsonl files automatically
  • Auto-syncs every 30 seconds — no manual steps
  • Tracks cost across all providers: Anthropic, Google, OpenAI, Moonshot, and more
  • SQLite database at ~/.openclaw-cost/tracker.db — no SQL Server needed
  • Budget alerts with daily/weekly/monthly limits
  • Full session history with per-model breakdown

Data location

Path Purpose
~/.openclaw-cost/tracker.db SQLite database
~/.openclaw-cost/logs/ Log files
~/.openclaw/ OpenClaw sessions (read-only)

Development

# First-time only: publish Blazor UI into Tool/wwwroot
.\dev-setup.ps1

# Then run
dotnet run --project src/OpenClawCost.Tool

# Build and pack
.\build-and-pack.ps1

# Test locally
dotnet tool install --global --add-source ./nupkg OpenClawCostTracker
openclaw-cost

# Uninstall
dotnet tool uninstall --global OpenClawCostTracker

Publish

.\build-and-pack.ps1 -Version "1.1.0"
dotnet nuget push ./nupkg/OpenClawCostTracker.1.1.0.nupkg `
  --api-key YOUR_NUGET_API_KEY `
  --source https://api.nuget.org/v3/index.json

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.3.1 69 3/31/2026
1.3.0 64 3/31/2026
1.2.0 107 3/9/2026
1.0.0 92 3/5/2026