Repository navigation
Add a GPU Boxes page for gpushed usage - #7
Merged
Merged
Conversation
/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
force-pushed
the
gpushed-usage
branch
from
November 14, 2026 04:20
97db429 to
f4298c8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds GPU Boxes → gpushed (
/gpushed): a usage page for gpushed, the personal GPU machines smartloop accounts run from their Mac.What it shows
?topup=done. The page then shows a notice and re-checks the balance while the webhook lands.gpushed up <plan>command for each.How
${base_url}/v1/gpushed(newGPUSHED_ENDPOINTinconstants.js) with the same session token. The gpushed Worker checks the token with/v1/users/meand allows CORS from app.smartloop.ai (Sign in with smartloop accounts; serve the API at api.smartloop.ai/v1/gpushed gpushed#4).Tested
tscandnext build(static export) pass.🤖 Generated with Claude Code