Skip to content

Change default startup view to ServiceBrowser to avoid Cost Explorer API charges #117

@yimsk

Description

@yimsk

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

  1. Default startup: ServiceBrowser (no API charges)
  2. Config option: startup.view to specify initial view
  3. CLI extension: Support -s dashboard / -s services
  4. 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

  • claws → ServiceBrowser
  • claws -s dashboard → Dashboard
  • claws -s services → ServiceBrowser
  • claws -s ec2 → EC2 browser
  • Config view: dashboard → Dashboard
  • :home / ~ → ServiceBrowser
  • :dashboard → Dashboard

References

Cost analysis: /home/ec2-user/.claude/plans/crispy-wondering-wigderson.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions