Skip to content

[CLI]: Add spawn status command to show live state of all provisioned servers #2253

@louisgv

Description

@louisgv

What would you like?

A spawn status command that queries each cloud provider's API and shows the current live state of all servers in the user's spawn history — running, stopped, or terminated — along with estimated cost where available.

Current situation

spawn list shows historical spawns from ~/.spawn/history.json, but it only reflects local state:

  • Servers deleted from the cloud console directly stay marked as "active" in history forever
  • There's no way to see cost or uptime without opening each cloud's web console separately
  • spawn delete sets a deleted flag locally, but only if you used spawn to do the deletion

Proposed behavior

$ spawn status

  ID       Agent    Cloud      IP             State      Uptime   Est. Cost
  ──────────────────────────────────────────────────────────────────────────
  abc123   claude   hetzner    1.2.3.4        running    2h 14m   $0.07
  def456   codex    aws        5.6.7.8        stopped    —        $0.02
  ghi789   claude   gcp        (terminated)   gone       —        —
  • Queries cloud APIs in parallel for all providers with known credentials
  • Marks records that no longer exist on the cloud side as "gone" and optionally prunes them from history (--prune flag)
  • --json flag for scripting

Why this matters

Power users running multiple concurrent spawns across clouds lose visibility quickly. Right now the only options are opening 3–4 cloud consoles or running spawn list and hoping the local state is accurate.


Filed from Slack by Ori

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliCLI feature or bugenhancementNew feature or requestsafe-to-workSecurity triage: safe for automated processing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions