Updated
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
#ProfileResult
go
type ProfileResult structProfileResult holds the rendered output for a single profile.
#DiscoverProfiles
go
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
go
func FetchAndRender(dir string, barCfg *render.BarConfig) (string, error)FetchAndRender fetches usage for a profile directory and renders 3 lines.
#RenderDashboard
go
func RenderDashboard(dirs []string) stringRenderDashboard fetches all profiles in parallel and returns the complete output.
#RunLive
go
func RunLive(dirs []string) errorRunLive runs the dashboard in live mode with periodic refresh.
#RunOnce
go
func RunOnce(dirs []string) errorRunOnce renders the dashboard once to stdout.
#Run
go
func Run(live bool) errorRun is the exported entry point for the dashboard.