Skill v1.0.0
currentAutomated scan100/100name: vesta-cloud description: THIS box's Vesta Cloud account. Use whenever you need to know if this box has one (the account/plan/setup signal other skills key off), when another skill needs a credential for the control plane, when the owner wants to connect or disconnect this box from their Vesta Cloud account, or when the owner asks about their hosting plan, billing, renewal, upgrade/cancel/card, or referral code. Not onboard (buying for someone else); not stripe-pay (third-party invoices). metadata: version: "1.0.0"
vesta-cloud, CLI: vesta-cloud
The single authority for this box's Vesta Cloud account: whether it has one, a credential to act as it against the control plane, its plan, and its referral code. Install the vesta-cloud command once from SETUP.md. Success output is JSON on stdout; a failure exits non-zero and prints its JSON on stderr, so it survives piping stdout through grep/head/jq. Exit codes: 0 success (whoami exits 0 even with account: false), 2 the control plane refused with a structured {error} (no billing yet, pairing refused), 3 no credential mintable or vestad/control plane unreachable (this includes running token/plan/manage/referral on a box with no account), 1 unexpected.
whoami: does this box have an account?
vesta-cloud whoami# { "account": true, "managed_infra": true, "control_url": "https://vesta.run/api",# "agent_name": "ada", "plan": "membership", "status": "active",# "renews_at": "2026-09-01T00:00:00.000Z", "price_usd": 48.0 }
account is the fact to branch on: true means this box is paired to a Vesta Cloud account the control plane recognizes (read status for whether it is active versus, say, suspended); false means it has none yet, and reason says why. It is the signal other skills read to choose a cloud path over a self-managed one, so consult whoami rather than reading any environment variable. managed_infra is the narrower, separate fact that this VM is Vesta-operated; a box can hold an account without it. account:false exits 0 (a valid answer); a real vestad/control-plane outage exits 3.
token: a credential for calling the control plane
vesta-cloud token# { "token": "<server-identity JWT>", "control_url": "https://vesta.run/api", "expires_in": 600 }
Hands another skill a short-lived server-identity token plus the control-plane URL, so it calls the control plane as this server without minting its own. One token is general: it authenticates any server-scoped route (/account, integrations, ...). On a box with no account it exits 3 with {"error": "no server identity available"}. This is how every skill that needs to reach the control plane as the server gets its credential.
login: pair a self-hosted box to a Vesta Cloud account
vesta-cloud login# first, immediately:# { "user_code": "WXYZ-2345", "verification_url": "https://vesta.run/pair?code=WXYZ-2345",# "next": "give the owner this code and link right away; ..." }# then, once the owner approves (the command keeps running):# { "account": true, "plan": "services", "status": "active", ... }
Use when whoami says account: false on a self-hosted box and the owner wants to connect it to their Vesta Cloud account. The command prints the code and link FIRST; relay them to the owner immediately (they open the link signed in and approve), then keep waiting: the same command prints a whoami-style confirmation once linked. The code lives about 10 minutes; on timeout, run login again for a fresh one. Pairing links the box to the account; whether that account pays for anything is separate (plan). A managed Vesta Cloud VM refuses to pair (it already has its identity).
The pairing flow itself lives on vestad (this command only triggers and relays it), so the owner can equally start it themselves by running vestad vesta-cloud login on the box host, or from the vesta app. Either path ends the same way; whoami reports the result regardless of who initiated.
logout: unpair this box
vesta-cloud logout# { "status": "unpaired" }
Detaches the box from its Vesta Cloud account (after asking the owner, this is theirs to decide; vestad vesta-cloud logout on the box host does the same). Also the local cleanup step when the owner already removed the box from the vesta.run dashboard: run it so the box forgets its stale link, then login can pair fresh. After logout, whoami answers account: false again. If logout reports that the control plane rejected this box's identity, the link was kept on purpose: have the owner remove the box from the vesta.run dashboard, then run logout again.
The trust model (read this)
You hold no standing credential to the control plane. Each command asks vestad (on this same box) to mint a short-lived server-identity token; vestad signs it locally with the box's api_key and hands it back. vestad makes no network call, and the api_key never reaches you. The token proves "I am this server", expires in minutes, and is scoped to this box's account.
So reading is free (whoami, plan), and changes are only ever facilitated: manage returns a Stripe-hosted link the owner opens and confirms in Stripe's own UI.
Plan and billing
vesta-cloud plan # plan, price (price_usd), status, renews_atvesta-cloud manage # a Stripe-hosted link to upgrade / cancel / change payment
- Plan questions: run
plan, then tell the owner plainly the plan, the monthly
price (price_usd), whether it is active, and when it renews (renews_at). Summarize; do not read raw JSON at them.
- Any change (upgrade, cancel, card): run
manage, give the owner theurl, and
say something like "here is your billing page, you can upgrade, change your card, or cancel from there." Then stop.
Referral code
vesta-cloud referral # referral_code, referral_credit_cents, invites_completedvesta-cloud set-referral --code X # persist the code `onboard` sends on a completed invitevesta-cloud set-referral --clear # remove the stored code
Read referral_code and invites_completed back plainly; convert referral_credit_cents to a dollar figure yourself rather than reading raw cents.
The onboard skill needs this box's code to credit the owner for a completed invite. Run set-referral --code <code> once so onboard picks it up from then on; re-run it if the owner's code changes. If referral returns {"error": "not_hosted", ...}, this box has no vesta-issued code; follow the message it returns.
Honesty
Never imply you charged a card, changed a plan, or cancelled an account. You only ever read the plan and hand over a link. If the owner asks "did it go through", tell them to check the page or their email; re-run plan to read the current state.