# Run your dev server and tests on a remote machine

Keep editing on your laptop. `tesser exec` and `tesser dev` copy your changes to a cloud machine and run there, and the dev server opens at `localhost:3000` like it always has.

[Get started](https://tesser.sh/sign-in) [Book a call](https://cal.com/jeffrey-lin/tesser-chat)

```sh
curl -fsSL https://tesser.sh/install | sh
```

Or set it up with your agent:

```
Set up tesser.sh in this repo
```

Agents: the setup guide is https://tesser.sh/auth.md

## How it works

Tesser gives each git worktree a Linux machine in the cloud. Before a command runs, it copies the files that changed to the machine over SSH, skipping what `.gitignore` skips. You keep your editor, your terminal, and your agent, and you never deal with instance ids, SSH keys, or IP addresses.

```
curl -fsSL https://tesser.sh/install | sh
tesser login
tesser exec -- pnpm test      # runs on this worktree's machine
```

[Quickstart](https://tesser.sh/docs/quickstart)

## Tests and builds

`tesser exec` runs any command on the worktree's workbench and streams the output back. The exit code comes back too, so scripts and agents treat it like a local command. The workbench keeps `node_modules` and build caches between runs.

```
tesser exec -- pnpm test
tesser exec -- pnpm build
tesser exec -- go test ./...
```

[Boxes](https://tesser.sh/docs/boxes)

## A dev server at localhost

Describe the dev server in a short TOML file named after the service, then start it with `tesser dev`. Every port it declares is forwarded to your laptop, so the app opens at `localhost:3000` like it always has. `tesser sync` pushes your edits and hot reload picks them up.

```
# .agents/skills/tesser/web.toml
#   ports = [3000]
#   [run]
#   setup = "pnpm install"
#   dev   = "pnpm dev"
tesser dev web            # starts it and prints the box id
tesser sync <box_id>      # push your edits
```

[Manifest reference](https://tesser.sh/docs/manifest)

## What's on the machine

Ubuntu 24.04 with Node 22 and 24, Bun, uv, mise, Go, Google Chrome, and Docker with Compose and buildx. You have sudo for anything else.

The default size is 2 vCPU and 8 GB of memory with a 40 GB disk. `--size` picks small (1 vCPU, 4 GB), large (4 vCPU, 16 GB), or xlarge (8 vCPU, 32 GB), and `tesser util <box_id>` shows CPU and memory over time so you can pick the right one.

[The box](https://tesser.sh/docs/config#the-box)

## Sleeps when you stop

An idle workbench goes to sleep after 10 minutes, and a box running a dev server after 2 hours. The next command wakes it in a few seconds, usually with the dev server still running where it left off. A machine asleep for 16 hours is removed, and the next command makes a new one from your laptop's copy.

[Timers](https://tesser.sh/docs/config#timers)

## Where your code goes

Your files, command output, and app traffic go from your laptop to the machine over SSH. The control plane receives machine ids, ports, and states, never a file or a diff. On the Ultra plan the machines run in your own AWS account.

[Security and data flow](https://tesser.sh/docs/where-your-code-goes)

## What it costs

A machine is billed by the second while it is awake, by size: small $0.045, standard $0.08, large $0.15, xlarge $0.29 an hour. Asleep it costs nothing.

The Free plan starts with $5 of credit and needs no card. Pro is $20 a month with $20 of usage included. Each plan caps how many machines can be awake at once ([plan limits](https://tesser.sh/docs/reference/boxes#plan-limits)).

[Pricing](https://tesser.sh/pricing)

## Questions

* ### Do I edit code on the machine?  
No. You and your agent keep editing on your laptop. `tesser exec` and `tesser dev` copy the files that changed to the worktree's machine before they run, so the machine always runs what's in your editor.
* ### How long does a new machine take?  
About 3 seconds, at any size. It starts from your repo's snapshot, a disk image taken after `setup` ran, so `node_modules` and package stores are already there and the first install only catches up.
* ### How do my env files get there?  
Sync skips gitignored files, so `.env.local` stays on your laptop until your [manifest](https://tesser.sh/docs/manifest) lists it under `env.files`. Then every sync copies it over SSH. You can also store a value in your org with `tesser env set web KEY=value`, and every machine running `web` gets it.

## Get started

Install the CLI and follow the [quickstart](https://tesser.sh/docs/quickstart), or paste the prompt into Claude Code or Codex and let it set up your repo.

[Get started](https://tesser.sh/sign-in) [Book a call](https://cal.com/jeffrey-lin/tesser-chat)

```sh
curl -fsSL https://tesser.sh/install | sh
```

Or set it up with your agent:

```
Set up tesser.sh in this repo
```

Agents: the setup guide is https://tesser.sh/auth.md
