Kiln
Kiln lets a project save a small Linux machine and start it for a number of minutes. You give it your code and a start sequence, run commands in it, and move files in and out. When the minutes end, its files are removed and the machine goes back to saved, ready to start again. Use it for a build, a test run, a batch or data job, a script, or a helper that a job needs while it runs.
Kiln is in beta
Kiln is a beta product. Sizes, limits and some API fields may change before it is final. The API reference says which parts are most likely to move.
What a machine is
A machine is a Linux sandbox, not a virtual machine. It has its own files, processes and network rules, and it is isolated from every other machine. It does not have a kernel of its own, so uname shows the sandbox's kernel, you cannot load kernel modules, and a few rarely used system calls are not available. Most software does not notice. When a program fails with a plain "not supported" error, that is usually the reason.
A machine is not a server. It exists for its job:
- You save it as a definition: its name, size, disk, start sequence and the rest. A saved machine holds no room and costs nothing.
- You start it for a number of minutes (5 or more, up to your tier's longest lease). The minutes are paid when it starts. A start while time is left runs on the same files and takes no new minutes.
- Its main process, the start sequence you give it, gives it its life. When the sequence ends, the machine is
exited. It keeps its files until the lease ends, so you can read the log, fix something and start it again. - At the lease's end time, its files and everything on it are removed, and the machine goes back to
saved. It is not deleted. Delete it to remove the definition.
What Kiln is for
| Good fit | Not a fit |
|---|---|
| Builds and test runs | Databases and anything that must keep its data |
| Scripts, batch and data jobs | Web servers that people or other systems connect to |
| A job that an AI agent runs in a clean machine | Work that needs a GPU |
| Scheduled work, as a job | Work that needs Docker inside the machine |
What does not work
Read this before you build on Kiln
- No inbound traffic. There are no open ports and no preview URLs. Nothing outside can connect to a machine. Machines reach out only as the network rules allow, and cannot reach each other.
- Files live only until the lease ends. There are no backups and no copies. Export what must last to Media before the end time. A saved machine keeps its definition, not its files.
- No snapshots. A machine cannot be paused and resumed later.
- No GPU.
- No Docker or other containers inside a machine.
- No systemd. Machines use a small init. The main process is your start sequence. Use it to start any other process you need.
- No SSH. Use the terminal or exec.
- No restart on its own. If a machine's main process ends, or Kiln has to restart it, the machine stays
exiteduntil you start it again. - File-heavy work is slower than on a normal Linux machine, and some software that needs unusual system calls fails with a plain error.
- You cannot bring your own image. Machines start from Ubuntu 24.04 or Debian 12.
Where to go next
| Page | What it covers |
|---|---|
| Sizes and limits | Sizes, disks, tiers, GiB-hours and limits |
| Machines | Save, start, stop, extend, end lease, delete; run identity, ptkl and PROJECT_API_TOKEN |
| Commands, files and logs | Run commands, move files, read logs, Media |
| Network | Egress modes and the allowlist |
| Jobs | Run a saved machine on a schedule or on request |
| API reference | Routes, fields, errors and events |
| Agents | The kiln_* MCP tools, for any AI agent |
Quick start
Save a 256 MiB machine, start it at once for 30 minutes, and have it build a project from Media and exit:
POST /v1/kiln/machines
Idempotency-Key: 5d2c6b0e-9a7f-4f3a-8b51-1c3e6e9a2f10
{
"name": "build-shop",
"size": 256,
"start": true,
"minutes": 30,
"intake": [{ "media": "/apps/shop/src", "to": "/srv/shop" }],
"sequence": { "steps": ["cd /srv/shop", "npm ci", "npm run build"] },
"run_as": "prn:role:maintainer"
}
The answer is 202 with the machine. When the 30 minutes end, it is saved again. Start it with new minutes to run it again. Read its output with logs, and read what it cost in charged.