Skip to content

Add a GPU Boxes page for gpushed usage - #7

Merged
mehfuzh merged 2 commits into
mainfrom
gpushed-usage
Nov 14, 2026
Merged

mehfuzh merged 2 commits into
mainfrom
gpushed-usage

Conversation

@mehfuzh

@mehfuzh mehfuzh commented Nov 14, 2026

Copy link
Copy Markdown
Member

Adds GPU Boxes → gpushed (/gpushed): a usage page for gpushed, the personal GPU machines smartloop accounts run from their Mac.

What it shows

  • Balance, with a low or no-credit badge and top-up buttons ($10/$25/$50/$100). These open Stripe Checkout, which returns to the page with ?topup=done. The page then shows a notice and re-checks the balance while the webhook lands.
  • Your box: plan, status, hourly price, zone, IP and created time, plus the CLI commands to manage it. Without a box it shows the install command.
  • Spending: spent, added and balance for the last 30 days, and a daily spend bar chart with per-day hover.
  • Top-ups (latest 10) and GPUs with hourly prices and the gpushed up <plan> command for each.

How

Tested

  • Locally against the gpushed Worker plus a stand-in for api.smartloop.ai routing: light and dark mode, phone width (no horizontal scroll), the return from Stripe, and the chart tooltip.
  • tsc and next build (static export) pass.
  • Not tested against production, where the gpushed API isn't deployed yet.

🤖 Generated with Claude Code

/gpushed shows the account's gpushed balance with Stripe top-ups that
return to the page, the current box and how to manage it from the CLI,
daily spend over the last 30 days, recent top-ups and GPU prices. It
calls the gpushed API at api.smartloop.ai/v1/gpushed with the same
session token as the rest of the app.

Admin-only for now (sidebar group and page), like Cloud Models, until
gpushed launches.
main dropped the Cloud Models admin gate, so give the sidebar groups
their own adminOnly flag again (used only by GPU Boxes) and gate the
page in place.
@mehfuzh
mehfuzh merged commit 7e20ab2 into main Nov 14, 2026
1 check passed
@mehfuzh
mehfuzh deleted the gpushed-usage branch November 14, 2026 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant