惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
博客园 - 【当耐特】
S
SegmentFault 最新的问题
阮一峰的网络日志
阮一峰的网络日志
大猫的无限游戏
大猫的无限游戏
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
Martin Fowler
Martin Fowler
云风的 BLOG
云风的 BLOG
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Fortinet All Blogs
Y
Y Combinator Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
MyScale Blog
MyScale Blog
B
Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - offbyone1/tokenbbq: Visualize token usage and co...
TokenBBQ · 2026-05-16 · via Hacker News - Newest: "AI"

npm version License: MIT

🌐 offbyone.cloud — Homepage

See what your AI coding tools actually cost you. TokenBBQ reads local usage data from Claude Code, Codex, Gemini, OpenCode, Amp, and Pi-Agent and shows it all in one dashboard.

Quick Start

npx tokenbbq@latest

No install, no config, no API keys. Opens a dashboard in your browser at localhost:3000.

Dashboard Features

  • Daily cost timeline — stacked bar chart by provider
  • Cost breakdown — donut chart showing spend per tool
  • Top models — ranked by total cost
  • Monthly trend — line chart of spending over time
  • Activity heatmap — GitHub-style, last 90 days
  • Detailed daily table — expandable rows with per-source and per-model breakdowns
  • Light / Dark mode — toggle with persistent preference
  • Time filter — 7 / 30 / 90 / 180 / 365 days or all time
  • Sortable columns — click any table header to sort
  • Live auto-refresh — dashboard updates every 5 seconds

Supported Tools

Tool Data Location Format
Claude Code ~/.claude/projects/**/*.jsonl JSONL
Codex ~/.codex/sessions/**/*.jsonl JSONL
Gemini ~/.gemini/tmp/**/chats/session-*.json JSON
OpenCode ~/.local/share/opencode/ JSON + SQLite
Amp ~/.local/share/amp/threads/**/*.json JSON
Pi-Agent ~/.pi/agent/sessions/**/*.jsonl JSONL

On Windows, ~ resolves to C:\Users\<name>. Claude Code, Codex, and Gemini use the same paths cross-platform. OpenCode, Amp, and Pi-Agent default to Linux/macOS paths — set GEMINI_DIR, OPENCODE_DATA_DIR, AMP_DATA_DIR, or PI_AGENT_DIR environment variables to override.

CLI

npx tokenbbq                # Dashboard in browser (default)
npx tokenbbq daily          # Daily table in terminal
npx tokenbbq monthly        # Monthly table in terminal
npx tokenbbq summary        # Compact summary
npx tokenbbq scan           # DashboardData JSON to stdout (headless one-shot)
npx tokenbbq --json         # JSON to stdout
npx tokenbbq --port=8080    # Custom port
npx tokenbbq --no-open      # Don't auto-open browser
npx tokenbbq --help         # Show help

Desktop Widget (Windows + macOS)

An always-on-top pill that lives at the top of your screen and shows your claude.ai 5-hour and 7-day window utilisation alongside today's local AI tool token spend, with a one-click expand to a per-source breakdown and a "Open full dashboard" button that launches the same dashboard npx tokenbbq opens.

Download the latest release: github.com/offbyone1/tokenbbq/releases/latest

Platform File
Windows TokenBBQ_<version>_x64-setup.exe (NSIS, recommended) or TokenBBQ_<version>_x64_en-US.msi
macOS (Apple Silicon, M1+) TokenBBQ_<version>_aarch64.dmg

The macOS build is unsigned, so on first launch Gatekeeper will refuse to open it — right-click the app → OpenOpen in the dialog to bypass once. Same story on Windows: SmartScreen will warn → More infoRun anyway.

The widget bundles the TokenBBQ CLI as a standalone binary, so end users don't need Node.js.

Building the widget locally

npm install
npm install --prefix widget        # one-time
npm run widget:dev                 # hot-reloading dev build
npm run widget:build               # produces installers under widget/src-tauri/target/release/bundle/

widget:build requires Bun on PATH (used to compile the CLI to a standalone sidecar). widget:dev falls back to a Node-based sidecar if Bun is missing.

How It Works

  1. Scans your filesystem for known AI tool data directories
  2. Parses JSONL / JSON / SQLite files to extract token usage events
  3. Fetches current model pricing from LiteLLM (with offline fallback)
  4. Calculates costs and aggregates by day, month, source, and model
  5. Serves an interactive dashboard on localhost

All data stays on your machine. The only network request is fetching model prices.

Credits

TokenBBQ builds on the data-loading patterns from ccusage by @ryoppippi. Thanks for the excellent groundwork on parsing Claude Code, Codex, OpenCode, Amp, and Pi-Agent usage data.

Contributing

See CONTRIBUTING.md for development setup and how to add support for new tools.

Support

Buy me a Token:

ko-fi

License

MIT © offbyone1