{"id":"5f8e919a-5ca5-419d-9d7d-54be05d65072","slug":"pfrederiksen-openclaw-cost-tracker","name":"openclaw-cost-tracker","description":"Track OpenClaw token usage and API costs by parsing session JSONL files. Use when user asks about token spend, API costs, model usage breakdown, daily cost trends, or wants to know how much they're spending on Claude/GPT. Shows per-model breakdown, daily spend chart, and grand totals. No API keys needed — reads directly from local session files.","canonicalUrl":"https://www.xpersona.co/skill/pfrederiksen-openclaw-cost-tracker","sourceUrl":"https://github.com/pfrederiksen/openclaw-cost-tracker","homepage":null,"source":"GITHUB_OPENCLEW","vendor":{"slug":"pfrederiksen","label":"Pfrederiksen","url":"https://github.com/pfrederiksen/openclaw-cost-tracker"},"protocols":["OPENCLEW"],"capabilities":[],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":null,"freshnessAt":"2026-03-01T06:02:38.057Z","freshnessLabel":"Mar 1, 2026","securityReviewed":true,"openapiReady":true,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Mar 1, 2026"},{"label":"Vendor","value":"Pfrederiksen"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"Unpublished"}],"factsPreview":[{"factKey":"docs_crawl","category":"integration","label":"Crawlable docs","value":"6 indexed pages on the official domain","href":"https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar","sourceUrl":"https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar","sourceType":"search_document","confidence":"medium","observedAt":"2026-04-15T05:03:46.393Z","isPublic":true},{"factKey":"vendor","category":"vendor","label":"Vendor","value":"Pfrederiksen","href":"https://github.com/pfrederiksen/openclaw-cost-tracker","sourceUrl":"https://github.com/pfrederiksen/openclaw-cost-tracker","sourceType":"profile","confidence":"medium","observedAt":"2026-03-01T06:02:38.057Z","isPublic":true},{"factKey":"protocols","category":"compatibility","label":"Protocol compatibility","value":"OpenClaw","href":"https://www.xpersona.co/api/v1/agents/pfrederiksen-openclaw-cost-tracker/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/pfrederiksen-openclaw-cost-tracker/contract","sourceType":"contract","confidence":"medium","observedAt":"2026-02-24T19:41:47.712Z","isPublic":true},{"factKey":"auth_modes","category":"compatibility","label":"Auth modes","value":"api_key","href":"https://www.xpersona.co/api/v1/agents/pfrederiksen-openclaw-cost-tracker/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/pfrederiksen-openclaw-cost-tracker/contract","sourceType":"contract","confidence":"high","observedAt":"2026-02-24T19:41:47.712Z","isPublic":true},{"factKey":"schema_refs","category":"artifact","label":"Machine-readable schemas","value":"OpenAPI or schema references published","href":"https://github.com/pfrederiksen/openclaw-cost-tracker#input","sourceUrl":"https://www.xpersona.co/api/v1/agents/pfrederiksen-openclaw-cost-tracker/contract","sourceType":"contract","confidence":"high","observedAt":"2026-02-24T19:41:47.712Z","isPublic":true},{"factKey":"handshake_status","category":"security","label":"Handshake status","value":"UNKNOWN","href":"https://www.xpersona.co/api/v1/agents/pfrederiksen-openclaw-cost-tracker/trust","sourceUrl":"https://www.xpersona.co/api/v1/agents/pfrederiksen-openclaw-cost-tracker/trust","sourceType":"trust","confidence":"medium","observedAt":null,"isPublic":true}],"highlights":["Schema refs published","Trust evidence available"],"agentCard":{"name":"openclaw-cost-tracker","description":"Track OpenClaw token usage and API costs by parsing session JSONL files. Use when user asks about token spend, API costs, model usage breakdown, daily cost trends, or wants to know how much they're spending on Claude/GPT. Shows per-model breakdown, daily spend chart, and grand totals. No API keys needed — reads directly from local session files.","source":"GITHUB_OPENCLEW","sourceId":"github:1163513109","repository":"https://github.com/pfrederiksen/openclaw-cost-tracker","documentation":"https://www.xpersona.co/skill/pfrederiksen-openclaw-cost-tracker/agent/pfrederiksen-openclaw-cost-tracker","protocols":["OPENCLEW"],"languages":["typescript"],"install":{"command":"git clone https://github.com/pfrederiksen/openclaw-cost-tracker.git","ecosystem":"git"},"examples":[{"kind":"example","language":"bash","snippet":"# All-time cost report\npython3 scripts/cost_tracker.py\n\n# Last 7 days\npython3 scripts/cost_tracker.py --days 7\n\n# Today only\npython3 scripts/cost_tracker.py --days 1\n\n# Since a specific date\npython3 scripts/cost_tracker.py --since 2026-02-01\n\n# JSON output for dashboards/integrations\npython3 scripts/cost_tracker.py --days 30 --format json\n\n# Custom agents directory\npython3 scripts/cost_tracker.py --agents-dir /path/to/agents"},{"kind":"example","language":"json","snippet":"{\n  \"models\": [\n    {\n      \"model\": \"claude-opus-4-6\",\n      \"totalTokens\": 220800000,\n      \"inputTokens\": 3200,\n      \"outputTokens\": 390800,\n      \"cacheReadTokens\": 149400000,\n      \"cacheWriteTokens\": 1200000,\n      \"totalCost\": 528.55,\n      \"requestCount\": 2088\n    }\n  ],\n  \"daily\": [\n    { \"date\": \"2026-02-20\", \"cost\": 37.14, \"byModel\": { \"opus-4-6\": 35.0, \"sonnet-4\": 2.14 } }\n  ],\n  \"grandTotal\": { \"totalCost\": 580.11, \"totalTokens\": 269800000, \"totalRequests\": 3122 },\n  \"meta\": { \"agentsDir\": \"...\", \"filesScanned\": 65, \"entriesParsed\": 3122, \"range\": \"7d\" }\n}"}]}}