Cloud accounts

The forge keeps the provider tokens (a cloud vendor's API token) its repositories use, sealed. Four doors show them, all a forge admin's alone; anyone else finds no such page, screen, tool or route. No door ever returns a secret: a token is typed once, checked, sealed, and never drawn, kept in a note or sent back.

curl -H "authorization: Bearer $FORGE_TOKEN" "$FORGE_URL/api/v1/cloud/accounts"

Answers: 401 with no signed-in user, 403 for a read-only token (every vendor call is audited, so listing is a write-scoped act), 404 for anyone who is not a forge admin.

Not done: the route only lists. Attaching, rotating and removing stay on the page and in the terminal, where the token can be typed masked.

Places and prices in US dollars (#16203)

GET /api/v1/places lists where a forge can run: provider + datacenter + machine size, each with vCPU, memory, disk, included traffic, city and country, costCents (machine + the 10 GiB volume + a public address, US dollars a month), the vendor's own price and the rate that converted it, readAt, orderable and, when not, why. Filters: plan, provider, country. defaults names each plan's default place and says why; the rule is: the cheapest place in the United States that can be ordered now and meets the plan's minimum, among providers with an account that allows writes; PUT /api/v1/places/pin (admin) pins one instead.

In the terminal: the palette's Places (src/tui/screens/places.ts) shows the rule, each plan's default and why, and every place by price in dollars. Anyone signed in reads it; a forge admin who is a person also presses p to pin a plan (plan, then place id; empty clears) through pinPlace, the same act as the API. Opening it as an admin refreshes a stale catalog first.

Not done: deploying by place id, the buyer's "Choose where it runs" disclosure and the owner's margin page; they build on this catalog.

The warm pool (#16362)

A prepared machine already booted and waiting, unclaimed and with no name, answers a purchase in seconds. It costs money while it waits, so none is kept by default: each place (provider:datacenter:size) of an account has a configured most, 0 until a forge admin sets it (about 3 once customers come).

Not done: making and refilling the machines themselves, and a form on the page and a key in the terminal to set the count; this lands the policy, the setting, the counting and the display.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs