On this page
Discovers Claude Code profiles, fetches usage data in parallel, and renders a multi-profile dashboard with progress bars and tier labels.
#internal/dashboard
#internal/dashboard
Package dashboard discovers the registered Claude Code profiles and renders their usage bars side by side, once or refreshing in place.
#ProfileResult
type ProfileResult structProfileResult holds the rendered output for a single profile.
#DiscoverProfiles
func DiscoverProfiles() []stringDiscoverProfiles returns deduplicated profile directories from 3 sources:
- Config file profiles array
- Claudewheel/claudelauncher options.json
- ~/.claude-* directories with .credentials.json
Always includes ~/.claude as default.
#FetchAndRender
func FetchAndRender(dir string, barCfg *render.BarConfig) (string, error)FetchAndRender fetches usage for a profile directory and renders 3 lines.
#RenderDashboard
func RenderDashboard(dirs []string) stringRenderDashboard fetches all profiles in parallel and returns the complete output.
#RunLive
func RunLive(dirs []string) errorRunLive runs the dashboard in live mode with periodic refresh.
#RunOnce
func RunOnce(dirs []string) errorRunOnce renders the dashboard once to stdout.
#Run
func Run(live bool) errorRun is the exported entry point for the dashboard.