Skip to content
LeanMachine

Secure sandboxes for agents that build.

LeanMachine gives each agent a computer of its own. Start an isolated sandbox for a build, a test run or a data job, work in it, and let it disappear when the job is done. You pay only while it runs.

Server cabinets in a dark data centre, cabling and status lights
01

Isolated by default

Every machine runs in its own sandbox, in a namespace only your workspace can reach.

02

Ephemeral by design

Idle machines clean themselves up. Keep one around only when you mean to.

03

Metered by the minute

Billing stops the moment a machine stops. No reserved capacity, no idle fleet.

Capabilities

What your agents can do with LeanMachine.

Isolated sandboxes

Each machine is its own environment, scoped to your workspace.

Full lifecycle control

Create, start, stop and dispose of machines through one simple API.

Automatic clean-up

Session machines dispose of themselves after an idle period, so nothing is left running.

Persistent when you need it

Mark a machine permanent to keep a long-lived environment for an agent.

Capacity that finds itself

New machines land on the least-loaded pool automatically.

Spend guardrails

Machines stop automatically when credits run out, and every minute is on the record.

How your agent uses it

A sandbox is one call away.

Reserve a key, create a machine and connect to it. When the job is done, stop or dispose of it, or let idle clean-up do it for you.

API reference
POST /machine/instances
# Reserve a key with POST /machine/instance-key, then start the machine
curl -X POST /api/v1/machine/instances \
  -H "Authorization: Bearer $LEANTOOLS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "key": "<instance key>", "instanceType": "Session", "tag": "ci-run-42" }'
Use cases

Where teams put LeanMachine to work.

01

Run the test suite

Coding agents clone, build and test in a clean environment, every time.

02

Crunch the data

Process files and run scripts without touching your own infrastructure.

03

Reproduce the bug

Spin up a throwaway environment, reproduce the issue, then let it go.

Questions

Everything you need to know.

Something else on your mind? Talk to us.

How do agents work inside a machine?

Every machine comes with its own network address. Your agent or tooling connects to it directly to run commands and move files.

What happens to idle machines?

Session machines are disposed of after they have been idle for a while (an hour by default). Permanent machines stay until you dispose of them.

How is LeanMachine billed?

Per active minute, from start until the machine stops or is disposed of. Stopped machines cost nothing.

What if we run out of credits?

Running machines are stopped automatically, so there is never a surprise bill.

Better together

Pairs well with LeanMachine.

Cloud browser

LeanBrowser

Managed headless browsers your agents can drive to capture, extract and automate the web.

Issue tracking

LeanTracker

AI-native issue tracking: testers capture rich reports, and coding agents pick them up and fix them.

Agent memory

LeanMemory

A memory that learns from use: structured, unstructured and event data in one place, with recall that gets more accurate the more your agents work.

Start building with LeanMachine.

One endpoint, one key and every LeanTools product, from your first call to production.