# kosa8 cloud template

Your own Cloud templates: built from a Dockerfile or an image, restored in about a second

An org template is built once on a kosa8 Cloud host, from a Dockerfile or a
registry image (a tag or an @sha256 digest), with an optional setup command,
and saved as a snapshot. A sandbox created from it restores that snapshot
instead of pulling the image cold:

  kosa8 cloud sandbox create --template NAME

For RL task images (SWE-bench, R2E-Gym), import them all by digest with
kosa8 cloud template import. Each template keeps one snapshot, so the plan's
snapshots limit bounds how many you keep; builds are billed as a sandbox of
the template's size while they run.

## Example

```
  kosa8 cloud template build --name py -f Dockerfile
  kosa8 cloud template ls
  kosa8 cloud sandbox create --template py
```

## Subcommands

- [`kosa8 cloud template build`](https://docs.kosa8.com/reference/cloud-template-build.md): Build an org template from a Dockerfile or an image
- [`kosa8 cloud template get`](https://docs.kosa8.com/reference/cloud-template-get.md): Show one of the organization's templates, with its build log
- [`kosa8 cloud template import`](https://docs.kosa8.com/reference/cloud-template-import.md): Queue many image templates at once, such as RL task images by digest
- [`kosa8 cloud template ls`](https://docs.kosa8.com/reference/cloud-template-ls.md): List the organization's own templates and their build state
- [`kosa8 cloud template rm`](https://docs.kosa8.com/reference/cloud-template-rm.md): Delete one of the organization's templates (a build in flight stops; its snapshot is deleted)

---
Source: https://docs.kosa8.com/reference/cloud-template/
