Proton Computer managed hosts
The optional @devctl/provider-proton package provisions a persistent Proton
Computer through its authenticated API. It uses the API contract published in
Proton's official CLI, currently 0.1.2;
Proton does not publish a separate versioned OpenAPI contract. This is Proton
Computer at proton.computer, not Proton Mail.
The package appears automatically in the shared TUI/web cloud-host picker and
./devctl cloud providers when installed. It uses the existing SSH host installer,
Docker runtime, Projects and account isolation. It does not create a separate
sandbox or a second web interface.
Credentials and creation
Obtain a token using Proton's own browser/device login (proton login). Supply
that token privately as PROTON_TOKEN, or use devctl's hidden token prompt.
devctl does not read Proton's credential file or run a login automatically. Never
paste tokens into a Project, a chat message, shell arguments or source files.
The wrapper passes the selected token to its one-shot provisioner on stdin;
provider records and recovery files contain no API token.
./devctl cloud regions proton
./devctl cloud create proton my-proton
# Noninteractive creation is billable and requires explicit --approve.
./devctl cloud status my-proton
ssh my-proton
Proton controls placement, elastic sizing and its Ubuntu 24.04 image. The only
accepted profiles are --region auto --size elastic --image ubuntu-24.04;
invented regions and sizes are rejected before creation. CPU/RAM limits and
availability belong to the provider, rather than a fixed promise from devctl.
Docker is supplied by Proton and verified again by the shared installer.
The authenticated public_ssh response provides the gateway hostname and
assigned TCP port. devctl validates both, writes the isolated managed SSH config
and pins the API's OpenSSH host key when supplied. Legacy cloud providers retain
their IPv4/port-22 transport. No arbitrary public application ports or dedicated
public IPv4 are promised by this adapter.
Recovery and lifecycle
Before the first billable request devctl saves the generated SSH key, original creation parameters and an idempotency UUID in its private cloud state directory. After Proton accepts an operation, its ID is saved before polling. An interrupted create can be retried with the same alias and options: accepted operations are polled directly; an uncertain HTTP response reuses the same Idempotency-Key. Never delete recovery files or change the key merely to bypass an uncertain outcome. Proton does not document an idempotency retention window; inspect the provider console before retrying a very old request with no saved operation ID.
Once a machine record exists, use cloud status to refresh its SSH transport and
cloud enroll to retry an incomplete host installation. API errors retain local
recovery state. HTTP 401/403 do not trigger a login, resource replacement or
another provider. Upstream error bodies are omitted from diagnostics.
./devctl cloud stop my-proton
./devctl cloud resume my-proton
./devctl cloud destroy my-proton
Stop/start/delete wait for Proton's operation to succeed. Stop interrupts native work and is not an archive. Proton says a stopped computer retains its disk and stops runtime charges; deleting it permanently purges the disk. Use devctl's existing archive/Overnight workflow before stopping work that must be recoverable. Provider deletion must succeed before devctl removes local keys and the record.
API-format unit tests cover creation, operation recovery, lifecycle, auth failures, timeouts and SSH validation. No paid computer was provisioned for these tests; live account entitlement, deployment and effective resource capacity remain unverified. See Proton's current product and pricing.