repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | # CodexBar CLI quick ref (usage + cost) |
| #2 | |
| #3 | ## Install |
| #4 | - App: Preferences -> Advanced -> Install CLI |
| #5 | - Repo: ./bin/install-codexbar-cli.sh |
| #6 | |
| #7 | ## Commands |
| #8 | - Usage snapshot (web/cli sources): |
| #9 | - codexbar usage --format json --pretty |
| #10 | - codexbar --provider all --format json |
| #11 | - Local cost usage (Codex + Claude only): |
| #12 | - codexbar cost --format json --pretty |
| #13 | - codexbar cost --provider codex|claude --format json |
| #14 | |
| #15 | ## Cost JSON fields |
| #16 | The payload is an array (one per provider). |
| #17 | - provider, source, updatedAt |
| #18 | - sessionTokens, sessionCostUSD |
| #19 | - last30DaysTokens, last30DaysCostUSD |
| #20 | - daily[]: date, inputTokens, outputTokens, cacheReadTokens, cacheCreationTokens, totalTokens, totalCost, modelsUsed, modelBreakdowns[] |
| #21 | - modelBreakdowns[]: modelName, cost |
| #22 | - totals: totalInputTokens, totalOutputTokens, cacheReadTokens, cacheCreationTokens, totalTokens, totalCost |
| #23 | |
| #24 | ## Notes |
| #25 | - Cost usage is local-only. It reads JSONL logs under: |
| #26 | - Codex: ~/.codex/sessions/**/*.jsonl |
| #27 | - Claude: ~/.config/claude/projects/**/*.jsonl or ~/.claude/projects/**/*.jsonl |
| #28 | - If web usage is required (non-local), use codexbar usage (not cost). |
| #29 |