Problem
Dashboard currently opens automatically on startup and calls Cost Explorer APIs:
GetCostAndUsage: $0.01/request
GetAnomalies: $0.01/request
- Total: $0.02 per dashboard open/refresh
Users unknowingly incur charges (-7/month for typical usage).
Solution
- Default startup: ServiceBrowser (no API charges)
- Config option:
startup.view to specify initial view
- CLI extension: Support
-s dashboard / -s services
- Navigation:
:home / ~ → ServiceBrowser, :dashboard → Dashboard
Changes
internal/config/file.go: Add View field to StartupConfig
cmd/claws/main.go: Support dashboard/services in -s option
internal/app/app.go: Update Init() to respect config/CLI
internal/view/command_input.go: Change :home behavior, add :dashboard
internal/view/service_browser.go: Change ~ key behavior
Testing
References
Cost analysis: /home/ec2-user/.claude/plans/crispy-wondering-wigderson.md
Problem
Dashboard currently opens automatically on startup and calls Cost Explorer APIs:
GetCostAndUsage: $0.01/requestGetAnomalies: $0.01/requestUsers unknowingly incur charges (-7/month for typical usage).
Solution
startup.viewto specify initial view-s dashboard/-s services:home/~→ ServiceBrowser,:dashboard→ DashboardChanges
internal/config/file.go: AddViewfield to StartupConfigcmd/claws/main.go: Support dashboard/services in-soptioninternal/app/app.go: Update Init() to respect config/CLIinternal/view/command_input.go: Change :home behavior, add :dashboardinternal/view/service_browser.go: Change ~ key behaviorTesting
claws→ ServiceBrowserclaws -s dashboard→ Dashboardclaws -s services→ ServiceBrowserclaws -s ec2→ EC2 browserview: dashboard→ Dashboard:home/~→ ServiceBrowser:dashboard→ DashboardReferences
Cost analysis:
/home/ec2-user/.claude/plans/crispy-wondering-wigderson.md