runlease

Guide ยท Choosing

A hosted code sandbox, or a VM in your own cloud?

An agent that writes code needs somewhere to run it. There are two broad ways to give it that: a sandbox service that runs your code on its own infrastructure, or a machine in a cloud account you already have. Runlease is the second kind. This page is about when each one fits.

The two approaches

A hosted sandbox is a service. You call its API, it starts an isolated environment on its infrastructure, your code runs there, and you pay the service for the time.

A VM in your own cloud is a machine in your AWS or Google Cloud account. A tool on your computer launches it under your IAM, on your network, and you pay your cloud for it. Runlease is that tool, with the two things raw cloud VMs lack for this job: the machine deletes itself, and it is reachable without a public address.

Side by side

Hosted sandboxRunlease, in your own cloud
Where the code runsThe provider's infrastructureYour cloud account
Who can see itYou, and whatever the provider's design allowsYou. The relay in the middle cannot read the session
Reaching private thingsNeeds a route from the provider to your networkThe machine is already on your network, under your IAM
What you getUsually a container or small virtual machine, shaped by the serviceA full Linux VM, up to 16 cores or a GPU
Time to startUsually faster: these services are built for itA VM boot, every time
PriceThe provider's rateYour cloud's spot price, nothing added
SetupAn API keyA cloud account, credentials, and a subnet that can reach the internet
If the vendor goes awayYou migrateIt is open source, and the relay can be your own

Hosted sandboxes differ from one another, and some can be self-hosted. Check the one you are considering against the rows that matter to you.

When hosted is better

When your own cloud is better

Questions

Can I use both?

Yes, and many teams will: a hosted sandbox for quick snippets, and a leased machine when the work is heavy or must stay inside the account.

Is a VM as isolated as a hosted sandbox?

A VM is a strong boundary, and it is your cloud's, the one your other workloads already rely on. What matters as much is what you put on it: Runlease does not copy your keys or cloud credentials to the machine.

What about a whole team of agents?

Runlease is one person, or one agent, and one machine at a time. Governing many agents across a company is a different problem; that is what Marshal is for.

Running agents for a whole team? Runlease gives one agent one machine. Marshal, from the same team, runs AI coding agents in isolated pods inside your own VPC, with credential isolation, audited egress and live tool policies.

More guides