Cloud Workspaces
Create a Treq-managed cloud workspace, open or clone repositories on it, and know what happens when it suspends or your subscription lapses.
Managed cloud workspaces ship in v0.3.0. The latest published release is v0.2.0, so the Cloud workspace card is not in it yet.
A cloud workspace is a persistent virtual machine that Treq creates and maintains for your account. Treq, JJ, Git, and coding agents come preinstalled. Location, CPU, memory, and storage are managed for you. In this version each account has one cloud workspace, and you keep multiple repositories on it.
Your Treq window stays on your machine. Terminals, agents, and repository files live on the cloud workspace, the same remote-control model as Remote SSH Workspaces. You do not need the Remote SSH feature preview to use a cloud workspace. That preview only covers machines you run yourself.
Requirements
- A Treq account you are signed in to.
- A Pro or Team subscription, listed on the pricing page.
On the Free plan, Create cloud workspace returns a PRO badge, the server's message, and an Upgrade to Pro button. The button opens your dashboard on the Treq website.
Create the workspace
- Open Settings and choose Machines.
- In the Cloud workspace card, select Create cloud workspace.
- Wait while the card reports each stage: Creating cloud workspace..., Installing Treq, JJ, Git, and agents..., Configuring access..., and Verifying readiness....
- When the card shows Ready, the workspace accepts connections.
You can also start from Open cloud workspace on the start screen or File → Open via SSH.... Both open the cloud workspace setup directly. With the Remote SSH preview turned on, the start screen button reads Open via SSH and the Connect a remote repository dialog lets you choose Treq-managed cloud workspace or Your own VM.
If creation fails before a machine exists, the button reads Retry cloud workspace creation. A retry keeps the size the workspace was created with; to start over at another size, delete it with the trash icon and create it again.
Open or clone a repository
- On a Ready card, select Open repositories.
- Under Saved repositories, select a repository you opened before. Otherwise type its location in Remote repository path and select Probe.
- If the path holds a repository, select Open.
- If it does not, enter a Git URL to clone and select Clone repository.
- To start an empty repository instead, check Initialize an empty repository at this path and select Initialize repository.
Repeat these steps for each repository. They all live on the one cloud workspace.
Suspend and wake
An idle cloud workspace suspends, and the card shows Suspended (idle). Disk contents are kept. While a repository is open, a banner above it reads Waking managed VM... with a Wake now link. On the card, select Wake to do the same. The card shows Waking... and returns to Ready when the machine is back.
The card also shows disk use against your quota and the number of workspaces and repositories on the machine.
Repair or delete
When the card shows Degraded or Failed, a Repair button appears. It reruns Treq setup on the machine and keeps your files and repositories.
The trash icon (Delete cloud workspace) removes the machine. The confirmation dialog warns that cloned repositories, uncommitted changes, and agent sessions are lost, and that you cannot undo it. Deleting your Treq account deletes the cloud workspace and its disk too.
Pricing
Cloud workspaces cost the same per size on every provider:
| Size | vCPU / RAM | Treq-managed | Your own account |
|---|---|---|---|
| Small | 2 / 4 GiB | US$0.20/h | US$0.0085/h |
| Medium | 4 / 8 GiB | US$0.40/h | US$0.017/h |
| Large | 8 / 16 GiB | US$0.80/h | US$0.034/h |
| Extra large | 16 / 32 GiB | US$1.60/h | US$0.068/h |
A stopped workspace's disk bills US$0.10 per GB per month when Treq runs it, or US$0.004 on your own account. A provider that discards the disk when the workspace stops (Cloudflare) bills nothing while stopped.
Bring your own sandbox
With Pro, you can run the cloud workspace on your own Boat, Daytona, E2B, or Cloudflare account instead of Treq's. The provider bills you for the machine. Treq charges a fixed fee per size (see Pricing), whatever provider you bring and whatever rate your account pays.
- Open Settings and choose Account.
- Under Provider keys, select Add Boat key, Add Daytona key, Add E2B key, or Add Cloudflare key.
- Paste the key into API key and save it. Treq checks the key with the provider before it saves it.
- Pick a size in the Cloud workspace card under Machines, then select Create workspace on this account on the saved key's row.
Cloudflare
Cloudflare Sandboxes run inside a Worker, so Treq deploys a small bridge Worker named treq-sandbox to your Cloudflare account when you save the key.
- In the Cloudflare dashboard, create an API token with Workers Scripts: Edit, Workers KV Storage: Edit, and Containers: Edit for your account. The account needs the Workers Paid plan and a workers.dev subdomain.
- Paste
<account id>:<api token>as the key. Saving deploys or updates the bridge, which takes up to a minute.
- Only Small and Medium sizes exist. Cloudflare's largest instance has 4 vCPUs.
- A Cloudflare workspace that stops restarts on a fresh disk. Push your work before it goes idle.
The Create cloud workspace button on the card always makes a Treq-managed workspace.
If the provider later rejects the key, the key row reads Rejected by the provider, and the workspace does not start until you replace the key. Treq never falls back to its own provider account. You cannot remove a key while a workspace runs on it.
If your subscription lapses
Creating, waking, and repairing a cloud workspace need an active Pro or Team subscription, and so does connecting to it. When the subscription ends, the machine stops. Treq keeps the disk for 7 days and then deletes it.
Resubscribe within those 7 days to wake the workspace with your files. After that the data is gone, and you create a new cloud workspace. Checking status and deleting the workspace still work without a subscription.
Next Steps
- Remote SSH Workspaces for machines you run yourself
- Customizing Settings