Skip to content

Cloud boxes: power a VM on for a teleport, off when idle - #167

Merged
ClementWalter merged 2 commits into
mainfrom
feat/cloud-box
Nov 26, 2026
Merged

ClementWalter merged 2 commits into
mainfrom
feat/cloud-box

Conversation

@ClementWalter

Copy link
Copy Markdown
Owner

A box is a relay node on a cloud VM (Scaleway, via the logged-in scw CLI) that this machine powers on and off. Its disk stays while off, so what a teleport installed there stays for the next one.

  • live box add|ls|start|stop (writes take --yes), registry in <live dir>/boxes.json.
  • live teleport to a stopped box powers it on and re-asks the probe while the box boots (up to 4 x 60 s).
  • The bridge's box.Keeper reads the relay's sessions every minute and powers a box off after 30 min with no busy session (ONE_CONV_BOX_IDLE_MINUTES, 0 never). The stop runs in a thread so the bridge loop never blocks.
  • Shipped in the Desktop extension (mcpb.json), README and SKILL.md.

Measured on a real DEV1-M: power-off 26 s, power-on 26 s, files and the bridge service survive; the bridge reconnects by itself.

@ClementWalter
ClementWalter merged commit 6e22c5c into main Nov 26, 2026
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