CodeBurn for DankMaterialShell

August 14, 2026 · View on GitHub

Monitor AI coding assistant token usage and costs from your DankBar — a port of the CodeBurn GNOME extension to DankMaterialShell.

CodeBurn popup dashboard

Features

  • DankBar pill with flame icon and current-period cost (compact mode: icon only)
  • Popup dashboard: provider tabs, hero summary, period tabs (Today / 7 Days / 30 Days / Month / 6 Months), insight views (Activity / Trend / Forecast / Pulse / Stats), 19-day token chart, budget warning, optimize-findings button, currency picker (18 currencies with FX conversion)
  • All data from the local codeburn CLI — no accounts, no cloud

Requirements

  • DankMaterialShell ≥ 1.2.0 on Quickshell
  • CodeBurn CLI installed (npm i -g codeburn)
  • bash, jq

Install

git clone <this-repo> ~/.config/DankMaterialShell/plugins/codeburn
chmod +x ~/.config/DankMaterialShell/plugins/codeburn/providers/*
dms restart

Enable CodeBurn in DMS settings and add it to a DankBar section.

Settings

SettingValuesDefault
Refresh interval5–300 s30
Default periodtoday, week, 30days, month, alltoday
Compact modeon/offoff
Show exact costson/offoff
Budget alertson/offoff
Daily budget (USD)0–1000 (0 disables)0
Disabled providersper-provider togglesall enabled
CodeBurn CLI pathpath or empty (PATH)empty

Development

Source of truth for UX and the menubar-json payload contract is the GNOME extension at codeburn/gnome. Planning artifacts live in openspec/changes/port-gnome-extension-to-dms/.

Validate:

jq -e . plugin.json >/dev/null
shellcheck -S warning providers/*
qmllint CodeBurnWidget.qml CodeBurnSettings.qml
./providers/get-codeburn-usage today all | jq .