← ClaudeAtlas

usage-capturelisted

Use when local Claude Code or OpenCode LLM requests should be recorded or inspected on this machine — daily JSONL usage logs, API body sidecars, latency bottlenecks. Triggers: 'usage capture', 'enable usage capture', 'local usage log', 'record LLM requests', 'LLM latency', 'which model was used', 'request duration', 'usage metrics'.
Tamircohen28/tamirs-superpowers · ★ 2 · AI & Automation · score 74
Install: claude install-skill Tamircohen28/tamirs-superpowers
# Usage Capture Opt-in, **local-only** recorder for per-request LLM metrics. One JSONL file per Asia/Jerusalem calendar day under `~/.local/share/tamirs-superpowers/usage/`. Nothing is sent to a collector in the cloud, to GitHub, or to Anthropic beyond the LLM call the user already configured. Claude Code is captured through its native OpenTelemetry export (including a custom `ANTHROPIC_BASE_URL`). LiteLLM is supported as an explicitly labelled gateway; its URL and raw request IDs are never persisted. OpenCode is captured by an optional JS plugin that is **not** on by default. Cursor, Codex, and Gemini CLI are out of scope. This is not `/session-report`. That skill post-parses Claude Code transcripts under `~/.claude/projects` for token/cache rollups. This skill records live request timing, model, endpoint, and skill/command inventory. Point at `session-report` when the user wants historical Claude transcript spend. ## Compatibility | Target | Status | Why | |---|---|---| | Claude Code | supported | Native OTEL logs + traces → local collector | | Claude Desktop | partial | Same settings file *may* apply; not verified here — check for JSONL before claiming it works | | OpenCode CLI | partial | Optional `opencode-plugin.mjs`; not loaded by this repo's `opencode.json`; live 1.18.x fire was not recorded in this change | | Codex, Cursor, Gemini CLI | unsupported | No capture path shipped | **Before enabling**, confirm `shell` is available. The `hooks` capability is optional: