Give a port in a sandbox an HTTPS address:
$ soulsand host my-box 3000
https://my-box-3000-k7f2qx.froogusercontent.com/?_token=pt_9c1e…
$ soulsand host my-box 3000 --public # no token
$ soulsand host my-box 3000 --subdomain acme-demo # https://acme-demo.froogusercontent.com
$ soulsand host my-box 3000 --title "API docs"
$ soulsand host my-box # list
$ soulsand host my-box 3000 --rm
$ soulsand new web --host 3000:public # at create; PORT alone is private
- The service may listen on
localhostor0.0.0.0. Websockets work. Traffic doesn't hold off auto-stop. - The URL survives stop, start and restore. While stopped, visitors see a notice, or it auto-starts.
- Private (default): the
_tokenbecomes a__Host-froog_urlcookie on first visit. Scripts send that cookie or anX-Froog-Url-Tokenheader. Treat the link like a password; re-host the port to rotate the token. Use--publicfor iframes. --publicalso opens the port on the sandbox's IPv6 address (Network).--subdomain: 3-40 lowercase letters, digits, hyphens (409 subdomain_taken); the old address stops working.- The first visit to a new address takes a few seconds for its certificate.
Wait for a port. soulsand wait my-box --port 3000 --timeout 2m returns once something listens, or exits 1 (default 60 s, max 10 min). API: POST /sandboxes/{name}/wait {port, timeout_secs?} → {port, ready, waited_ms}; needs sandbox.read.
A token per viewer. Give each viewer a token that expires (default 1 day, 60 s to 30 days) and can be revoked alone:
$ soulsand url-token create my-box 3000 --ttl 2h --label alice
https://my-box-3000-k7f2qx.froogusercontent.com/?_token=pvt_51d0…
$ soulsand url-token list my-box 3000
$ soulsand url-token revoke my-box 3000 utk_…
Checked on every request. API: POST /sandboxes/{name}/urls/{port}/tokens {ttl_secs?, label?} (secret shown once), GET, DELETE …/tokens/{id}. Public URLs have none (409 url_public); making a URL public or removing it deletes them.