tesser --help and every
tesser <command> --help, regenerated from the CLI at each release, so what
your agent reads on the box is what you read here.
tesser
Usage: tesser [options] [command]
persistent cloud boxes for dev servers, tests, and builds; the code stays local
Options:
-v, --version output the version number
-h, --help display help for command
Commands:
feedback tell the tesser team about a sharp edge
login sign in and pick the default org
whoami who is signed in, and to which org
org the org every command runs against
local run a dev server on this laptop next to your boxes
make create a box and print its id
pool booted EC2 boxes kept warm so make takes seconds
snapshot disk snapshots new boxes start from
ls list the org's boxes, a sortable table in a terminal
status one box in detail; with no id, the current worktree's box
update install the latest CLI release
sync copy the worktree to a box
env env files on boxes and a service's env values
exec sync and run a command on a box
dev start services' dev servers from the worktree
wait block until a box's dev server is healthy
logs the dev server's output
sleep power a box down; any command targeting it wakes it
wake power a box up and wait until it answers
util cpu and memory against size, to right-size boxes
ssh a shell, a command in ~/workspace, or rsync's -e to copy files
rm remove boxes and their disks
share a review link for a box and its deps
review open a review link on this laptop
wire point a box's dependency at another box
service the org's service registrations
Also: version, licenses, logout, member, grant, cloud, gateway, skill, setup, manifest, boxd, daemon, use, top, usage, spend-limit, keep, sleep-after, nuke, away, attach, send, home, threads, runner, help.
How it works
The code stays on the laptop; the compute is a cloud box. tesser mirrors
the current git worktree to a box's ~/workspace and runs commands there.
Every box has a fixed address on the laptop, http://box-<id>.localhost:<port>,
served by tesserd. `dev`, `use`, and `review` start it in the background
when it is not running. If a box address refuses connections, run
`tesser use` with no arguments: it starts tesserd and reports each route.
`cloud` and `daemon install` are the human's to run, never yours.
Each worktree gets a workbench for `exec` (tests, typechecks, builds) and
one instance box per service for `dev`. Idle boxes sleep with their disk
and node_modules kept, and any command targeting one wakes it in a few
seconds. One asleep for 16 hours is removed; the next `exec` or `dev`
makes a new one. A long job belongs in `tesser exec` run as a background
task on your side, never nohup on the box: a detached job does not count as
activity, so the box sleeps under it. `keep` is the user's call, not yours.
`tesser ls` finds a box whose id you lost; its last column is the worktree
each box belongs to, as `name (repo)` when the two differ. Boxes run Ubuntu
with Docker, passwordless sudo, and the Node the repo pins (.nvmrc,
.node-version, package.json engines), already on PATH in setup, `dev`,
`exec`, and `ssh <box> -- <cmd>`; never source fnm or nvm. Install
anything else with `exec`. A new workbench starts from its repo's
snapshot when it has one, where every service's setup already ran, and
`exec` gives it every apt package its repo's manifests list. Install
from the lockfile with `exec` only when there is no snapshot or the
lockfile changed since its commit, and keep what is already there.
Start here
tesser exec -- pnpm test workbench: tests, typechecks, builds
BOX=$(tesser dev web) instance box; tell the human the address it prints
tesser sync "$BOX" ship edits; HMR picks them up. --restart for a new dependency
tesser logs "$BOX" -f dev server output (Ctrl-C detaches)
tesser rm "$BOX" when the worktree is done
Pick the smallest check. A test or typecheck runs on the workbench with
nothing else up. Start a service only when the behavior needs a running
stack, and only the services that check needs.
A repo with no .agents/skills/tesser yet: tesser help setup is the guide
for putting it on tesser. Read all of it first.
Every command explains itself: tesser <command> --help. The service
manifest format: tesser help manifest.
Contracts
Progress goes to stderr. `make` and `dev` print the box id as their only
stdout. `make --ensure-running` and `snapshot create --wait` instead end
with one stdout line: the id, what happened, and how long it took. `exec`
and `logs` pass the remote exit code through. Read commands take --json.
Everything after -- is exact argv; no shell splits or unquotes it. Chain
with -- bash -c 'a && b', never -- bash -c "'a && b'".
`dev` and `sync --restart` block until the service is healthy, or exit
non-zero with the reason when it cannot be; they always exit on their own.
Run them in the foreground, or as your tool's background task (not a
shell's `&`) and wait for it to exit. A cold first run (installs,
builds, migrations) can outlast your tool's limit on one command (often
10 minutes): run that one with --detach, then
`tesser wait <box> --timeout 9m`, again while it reports progress. Once
`dev` prints `starting <service>`, stopping it loses nothing: `wait`
picks the run up. Never poll instead: no curl loop on the URL, no
`pgrep -f`/`pkill -f` of a string in your own command line (it matches
your own shell), no loop grepping their output.
Signed out, run `tesser login`: it prints a link for the human and exits.
Send it to them; once they have authorized it, `tesser login --wait`
finishes.
Give the human the box's own URL printed by `dev`. They choose which box
bare localhost:<port> shows from the panel on every page. `top` and bare
`usage` are terminal UIs for a person, never for an agent.
When something fails
Save the command, box id, worktree, sha, and the full error. Then check one
layer at a time: boxd is connected (`tesser status <box>`), its server
runs (`tesser logs <box>`; a box that exists is not a server that
runs), its deps point where you think (bare `tesser wire <box>`), then
your own data. A slow phase is not a hung one: read its progress before
calling it stuck, and never `rm` it or start a duplicate. If one
recovery fails, stop and report the blocker instead of replacing boxes or
rerunning a broad suite.
Hit a sharp edge (an error that misled you, a command or flag you
expected, a workaround you needed, help that was wrong)? Tell us, then
keep going; it is how tesser gets fixed:
tesser feedback "<what you ran, what happened, what you expected>"
Done: hand off the worktree and sha, each box and its role, the wires, the
test data, the command, where its log is, and its exit code. Once the human
has what they need, or the worktree is done, remove the data you seeded and
`tesser rm` the boxes this task made, your subagents' included.
Never
Edit files on the box. The next sync overwrites them; `ssh` is for looking.
Commit on the box. It is a shallow mirror of the local HEAD; commit locally.
--force past the sync guard. It means the box belongs to another worktree;
`make` a new one.
Let the dev server drift ports. Pin the port in its config so a collision
fails loud instead of breaking routing.
Touch a box you did not make. `dev`, `sync`, `wire`, `sleep`, and `rm`
on someone else's box restart their server or repoint their deps. To use
their box, wire yours to it.
Rebuild, re-pin, or restart a shared instance. When one is missing or
unhealthy, report the service, box, and error. `make --ensure-running`
and `boxd update` on one are the human's call; ask first.
Seed, change flags on, or delete data you did not create. Shared instances
hold every worktree's data; make your own uniquely named tenant (org,
workspace, project) inside the app.
Run `tesser use` unless the human asks. It changes what their localhost
shows; the box URL from `dev` is what you hand them.
`rm` never confirms and is unrecoverable.
tesser version
Usage: tesser version [options]
print the CLI version
Options:
-h, --help display help for command
tesser feedback
Usage: tesser feedback [options] [message...]
tell the tesser team about a sharp edge: a confusing error, a missing command, a
workaround you needed
Options:
-h, --help display help for command
Sends the message to the tesser team with the same context as tesser's
usage telemetry (CLI version, OS, agent harness and session, device id,
hashed worktree, and the org and member when logged in), so it can be
matched to the commands that led to it. Your home directory becomes ~. It
goes out even with telemetry off, then without the hashed worktree. Leave
out secrets and customer data.
tesser feedback "exec said the box was asleep, then hung for 3 min with no output"
tesser feedback < notes.md
tesser licenses
Usage: tesser licenses [options]
show bundled rsync's license and extract its complete source
Options:
-h, --help display help for command
tesser login
Usage: tesser login [options] [target]
sign in through the browser or through a grant, and make the chosen org the
default
Arguments:
target oidc to exchange an id token through a grant
Options:
--org <org_id> require this org instead of showing the picker
--token <tsr_api_…> save a token made on the dashboard instead of opening a
browser (needs --org)
--grant <grt_id> with oidc: the grant to exchange through (needs --org);
inside GitHub Actions the CLI mints the id token itself,
elsewhere pass --proof
--proof <command> with oidc: a shell command that prints an id token for
audience {audience}; rerun whenever the CLI needs a
token, for tesser or AWS
--no-browser print a link to open in any browser instead of opening
one here (the default for agents and over ssh)
--wait finish a login whose link was handed to someone: wait up
to 100s for them to authorize it; run it again if they
have not yet
--no-keychain macOS: save the token in a 0600 file, not the login
keychain, so agents can use it while the keychain is
locked
-h, --help display help for command
tesser logout
Usage: tesser logout [options]
revoke the saved token and forget it
Options:
-h, --help display help for command
tesser whoami
Usage: tesser whoami [options]
the signed-in email, where the org and token came from, and when the token
expires
Options:
--json
-h, --help display help for command
tesser org
Usage: tesser org [options] [command]
the org every command runs against
Options:
-h, --help display help for command
Commands:
ls the orgs this laptop is signed in to
use make one of them the default
Every command runs in one org; `login` makes the org it authorized the
default. TESSER_ORG=<id> overrides for one shell.
tesser org ls
Usage: tesser org ls|list [options]
the orgs this laptop is signed in to
Options:
--json
-h, --help display help for command
tesser org use
Usage: tesser org use [options] <org_id>
make one of them the default
Options:
-h, --help display help for command
tesser member
Usage: tesser member [options] [command]
the org's members (admins only)
Options:
-h, --help display help for command
Commands:
ls list members
add invite an email address, or create a service account
service:<name>
role change a member's role
rm remove a member and revoke every token they hold
alias issuer claims that name a member, so a token exchanged through a
grant is attributed to them
token tokens held by a service account
Admins only. `member add <email>` invites one address. `member add
service:<name>` makes a service account: a
member that never signs in and holds tokens and grants instead. It is
always a member, never an admin. `member token create <membership_id>
--name ci --expires 30d` mints it a token, printed once; `member token ls`
and `rm` manage them. A human mints their own tokens on the dashboard.
An alias pins an issuer claim to a member: `member alias set <membership_id>
https://app.devin.ai requesting_user_email <email>`. When an agent platform
or CI job signs in through a grant (tesser grant --help), the box it makes
is recorded as made for the member the claim names; an alias is for when
the claim does not already match the member's email.
tesser member ls
Usage: tesser member ls|list [options]
list members
Options:
--json
-h, --help display help for command
tesser member add
Usage: tesser member add [options] <email|service:name> [role]
invite an email address, or create a service account service:<name>
Arguments:
email|service:name
role admin or member (choices: "admin", "member", default:
"member")
Options:
-h, --help display help for command
tesser member role
Usage: tesser member role [options] <membership_id> <role>
change a member's role
Arguments:
membership_id
role admin or member (choices: "admin", "member")
Options:
-h, --help display help for command
tesser member rm
Usage: tesser member rm|remove [options] <membership_id>
remove a member and revoke every token they hold
Options:
-h, --help display help for command
tesser member alias
Usage: tesser member alias [options] [command]
issuer claims that name a member, so a token exchanged through a grant is
attributed to them
Options:
-h, --help display help for command
Commands:
set pin an issuer claim to a member
rm drop one alias
help display help for command
tesser member alias set
Usage: tesser member alias set [options] <membership_id> <issuer> <claim> <value>
pin an issuer claim to a member
Arguments:
membership_id
issuer https://app.devin.ai, token.actions.githubusercontent.com, …
claim requesting_user_email, actor_id, …
value
Options:
-h, --help display help for command
tesser member alias rm
Usage: tesser member alias rm|remove [options] <membership_id> <issuer> <claim> <value>
drop one alias
Options:
-h, --help display help for command
tesser member token
Usage: tesser member token [options] [command]
tokens held by a service account
Options:
-h, --help display help for command
Commands:
create mint a token for a service account; printed once
ls list a member's tokens
rm revoke one token
help display help for command
tesser member token create
Usage: tesser member token create [options] <membership_id>
mint a token for a service account; printed once
Options:
--name <name> what holds it: ci, the machine it lives on
--expires <duration> 30d, 12h, 90m; 1h..365d
--role <role> cap the token below the account's role (choices:
"admin", "member")
-h, --help display help for command
tesser member token ls
Usage: tesser member token ls|list [options] <membership_id>
list a member's tokens
Options:
--json
-h, --help display help for command
tesser member token rm
Usage: tesser member token rm|revoke [options] <membership_id> <token_id>
revoke one token
Options:
-h, --help display help for command
tesser grant
Usage: tesser grant [options] [command]
rules that let an agent platform or CI job sign in as a service account (admins
only)
Options:
-h, --help display help for command
Commands:
create let an issuer's id tokens be exchanged for a service account's
tesser token
ls list the org's grants
rm revoke a grant; no more exchanges
Admins only. A grant is a rule, not a secret: id tokens from one issuer
whose claims match the grant's pins may be exchanged at the control plane
for a tesser token acting as one service account. A grant lasts until
`grant rm` unless made with --expires; `grant ls` shows each one's last
use. Its id can sit in a workflow file or an agent's config. Grants are org-
level and always for a service account (tesser member --help); without
--for, one named after the issuer (devin, replicas, github-actions) is used and made
if missing. A person who wants an agent to act as themselves pastes their
own token instead: tesser login --token, or TESSER_TOKEN.
tesser grant create devin --pin org_id=<devin org id>
tesser grant create replicas --pin organization_id=<replicas org id>
tesser grant create github:acme/web --branch main or --branch '*' for any ref
The command prints the id and the exact `tesser login oidc --org <org>
--grant <id>` line for that issuer. In a GitHub Actions job with
`permissions: id-token: write` the CLI mints the id token itself; for
Devin and Replicas the line carries `--proof '<command>'`, a command that
prints an id token for `{audience}`, which the CLI fills in: the control
URL to exchange, sts.amazonaws.com for AWS. Either way the CLI proves again
and exchanges again when the token is near expiry or is refused, one process
at a time. Boxes an agent session makes show its client and session,
`devin · <session>`, are recorded as made for the person the id token
names, and show in that person's dropdown. `grant rm` stops new
exchanges; tokens already minted last until they expire, an hour at most.
When the org runs boxes in its own AWS account, `--aws-role <arn>` names a
role the agent assumes with the same proof (audience sts.amazonaws.com), so
it needs no AWS setup of its own. The role trusts the issuer, with conditions
mirroring the pins, and allows Session Manager to the org's boxes. `tesser
login oidc` writes AWS profile tesser-<org> with a credential_process that
proves and assumes again whenever AWS asks, and makes it the org's profile.
That never asks tesser, so `grant rm` does not end AWS access; the role's
trust policy does.
tesser grant create
Usage: tesser grant create [options] <devin|replicas|github:owner/repo>
let an issuer's id tokens be exchanged for a service account's tesser token
Options:
--for <membership_id> the service account to act as; without it, one named
devin, replicas, or github-actions, made if missing
--name <name> a label; defaults to the issuer and pins
--expires <duration> 30d, 12h; 1h..365d; default never
--branch <name> required for github: the branch whose workflows may
sign in, or '*' for any ref (tags and PRs too)
--aws-role <arn> a role in the org's AWS account the agent assumes with
the same id token; `tesser login oidc` sets it up as
the AWS profile for the org's boxes
--pin <claim=value> an extra claim the id token must carry (repeatable)
(default: [])
-h, --help display help for command
tesser grant ls
Usage: tesser grant ls|list [options]
list the org's grants
Options:
--json
-h, --help display help for command
tesser grant rm
Usage: tesser grant rm|revoke [options] <grant_id>
revoke a grant; no more exchanges
Options:
-h, --help display help for command
tesser cloud
Usage: tesser cloud [options] [command]
run the org's boxes in your own AWS account
Options:
--json print JSON
-h, --help display help for command
Commands:
status where the org's boxes run, and AWS errors from the last 7 days
connect check an AWS account and move the org's boxes there (flags
default to the current config once connected)
check test the connected account end to end, or a candidate given with
the connect flags, without storing anything
disconnect return the org to tesser's cloud (once it has no boxes)
template the IAM policies and network rules the org's AWS account needs
aws-profile this laptop's ~/.aws profile for the org's SSM sessions,
overriding the org's --aws-profile
Admins only, and only when the human asks. The account is set up with the
Pulumi program in the self-hosting docs (tesser cloud template prints the
policies it holds); once it is applied, tesser cloud connect --account <id>
--region <region> checks the account end to end and moves the org there.
tesser cloud check runs the same checks any time. Self-hosted boxes are
reached only through AWS Session Manager. When `ssh` fails asking for an
AWS profile, no profile is set: the org's default is
tesser cloud connect --aws-profile <name>; a laptop overrides it with
tesser cloud aws-profile <name>.
tesser cloud status
Usage: tesser cloud status [options]
where the org's boxes run, and AWS errors from the last 7 days
Options:
--json print JSON
-h, --help display help for command
tesser cloud connect
Usage: tesser cloud connect [options]
check an AWS account and move the org's boxes there (flags default to the
current config once connected)
Options:
--account <id> the AWS account the Pulumi program ran in; finds
its role, instance profile, subnet, and security
group
--region <region>
--role <arn> IAM role tesser assumes
--subnet <id>
--sg <id> security group
--private reach boxes at their private IP
--instance-profile <name> launch boxes with this IAM instance profile;
laptops reach them through Session Manager
--image <ami> launch your own copy of a tesser image, or `tesser`
for tesser's published one
--aws-profile <name> the ~/.aws profile members' laptops use for Session
Manager, unless a laptop sets its own
--sso-start-url <url> the AWS access portal behind that profile
(https://d-1234567890.awsapps.com/start); laptops
missing the profile get it written
--sso-region <region> the region of that IAM Identity Center
--sso-role <name> the permission set members sign in with in the
org's account
--no-sso forget the SSO portal
--env <store> where `tesser env set` values live: tesser
(default) or parameter-store, your account's
Parameter Store under /tesser/<org id>/
--max-boxes <n> the org's own box cap
--crash-output boxd sends a crashed dev server's last 40 log lines
to tesser so `tesser dev` can print them (the
default)
--no-crash-output keep them on the box; `tesser dev` points at
`tesser logs` instead
--snapshots-bucket <name> the S3 bucket in your account that holds repo
snapshots (`tesser snapshot create`), or `none`
--fleet <host-role-arn> run boxes as microVMs on r8a.metal-24xl hosts in
your account, as this role (`tesser cloud template`
lists what they need)
--fleet-profile <arn> the hosts' instance profile, when its name is not
the role's
--fleet-box-role <name> the IAM role fleet microVMs get (required with
--fleet)
--no-fleet run each box on its own EC2 instance (the default)
--tag <key=value> your tag on the instances tesser launches from now
on; repeatable, replaces the org's (`none` clears
them)
--json print JSON
-h, --help display help for command
tesser cloud check
Usage: tesser cloud check [options]
test the connected account end to end, or a candidate given with the connect
flags, without storing anything
Options:
--account <id> the AWS account the Pulumi program ran in; finds
its role, instance profile, subnet, and security
group
--region <region>
--role <arn> IAM role tesser assumes
--subnet <id>
--sg <id> security group
--private reach boxes at their private IP
--instance-profile <name> launch boxes with this IAM instance profile;
laptops reach them through Session Manager
--image <ami> launch your own copy of a tesser image, or `tesser`
for tesser's published one
--aws-profile <name> the ~/.aws profile members' laptops use for Session
Manager, unless a laptop sets its own
--sso-start-url <url> the AWS access portal behind that profile
(https://d-1234567890.awsapps.com/start); laptops
missing the profile get it written
--sso-region <region> the region of that IAM Identity Center
--sso-role <name> the permission set members sign in with in the
org's account
--no-sso forget the SSO portal
--env <store> where `tesser env set` values live: tesser
(default) or parameter-store, your account's
Parameter Store under /tesser/<org id>/
--max-boxes <n> the org's own box cap
--crash-output boxd sends a crashed dev server's last 40 log lines
to tesser so `tesser dev` can print them (the
default)
--no-crash-output keep them on the box; `tesser dev` points at
`tesser logs` instead
--snapshots-bucket <name> the S3 bucket in your account that holds repo
snapshots (`tesser snapshot create`), or `none`
--fleet <host-role-arn> run boxes as microVMs on r8a.metal-24xl hosts in
your account, as this role (`tesser cloud template`
lists what they need)
--fleet-profile <arn> the hosts' instance profile, when its name is not
the role's
--fleet-box-role <name> the IAM role fleet microVMs get (required with
--fleet)
--no-fleet run each box on its own EC2 instance (the default)
--tag <key=value> your tag on the instances tesser launches from now
on; repeatable, replaces the org's (`none` clears
them)
--json print JSON
-h, --help display help for command
tesser cloud disconnect
Usage: tesser cloud disconnect [options]
return the org to tesser's cloud (once it has no boxes)
Options:
-h, --help display help for command
tesser cloud template
Usage: tesser cloud template [options]
the IAM policies and network rules the org's AWS account needs
Options:
--account <id> fill in this account id
--region <region> fill in this region
--image <ami> pin the launch policy to your own copy of the image
--box-role <name> the IAM role inside the boxes' instance profile,
with its path if any, when it differs from the
profile's name
--snapshots-kms-key <arn> the KMS key the snapshots bucket encrypts with,
when it is not SSE-S3
--json print JSON
-h, --help display help for command
tesser cloud aws-profile
Usage: tesser cloud aws-profile [options] [name]
this laptop's ~/.aws profile for the org's SSM sessions, overriding the org's
--aws-profile
Options:
--clear forget the profile
-h, --help display help for command
tesser gateway
Usage: tesser gateway [options] [command]
serve shared boxes at box-<id>.<host> from a Cloudflare Worker
Options:
--json print JSON
-h, --help display help for command
Commands:
set point `tesser share` at a Cloudflare Worker behind Access
off stop trusting the gateway; share links stop carrying a gateway url
On tesser's cloud every shared box already answers at
https://box-<id>.tesser.review/ for the org's members, who sign in with
tesser in the browser; nothing to set up. tesser gateway set puts an org's
boxes on its own domain instead.
Admins only. A share gateway makes every shared box answer at
https://box-<id>.<host>/, where <host> is the gateway url's host. The box's
first declared port is served there, every other port at
https://box-<id>--<port>.<host>/, and pages rewrite their localhost:<port>
calls, links and redirects to match. The dev server sees the address it has
on a laptop, localhost:<port>. A visit wakes a sleeping box, with a page that
shows the progress, and traffic keeps it awake. A box is served only while
it has a live share (tesser share <box>); --revoke or expiry takes it off.
A Cloudflare gateway is a Worker in your own Cloudflare account, behind a
Cloudflare Access application on *.<host>. Access does the user auth. Each
shared box dials the Worker over an outbound websocket with a ticket tesser
signs, so nothing reaches into the boxes' network, and the Worker holds no
secret: it wakes a box with the viewer's Access token. A revoke takes the box
off within seconds.
tesser gateway set
Usage: tesser gateway set [options]
point `tesser share` at a Cloudflare Worker behind Access
Options:
--url <url> the https base URL boxes hang off, like
https://share.example.com
--access-team <team> the Zero Trust team domain, like
acme.cloudflareaccess.com
--access-aud <tag> the audience tag of the Access application in front of
the gateway
--json print JSON
-h, --help display help for command
tesser gateway off
Usage: tesser gateway off [options]
stop trusting the gateway; share links stop carrying a gateway url
Options:
-h, --help display help for command
tesser skill
Usage: tesser skill [options] [command]
the agent skill: a few lines that point at --help
Options:
-h, --help display help for command
Commands:
install write it to <dir>/tesser-cli/SKILL.md; `install away` or `install
home` writes that skill to <dir>/<skill>/SKILL.md instead
help display help for command
tesser skill install
Usage: tesser skill install [options] [skill]
write it to <dir>/tesser-cli/SKILL.md; `install away` or `install home` writes
that skill to <dir>/<skill>/SKILL.md instead
Arguments:
skill tesser-cli (default), away, or home
Options:
--dir <path> the skills directory (default ~/.claude/skills)
-h, --help display help for command
tesser setup
Prints the guide on Put a repo on Tesser.tesser manifest
Usage: tesser manifest [options]
the service manifest format: what goes in .agents/skills/tesser/<service>.toml
and the rules setup and dev run under
Options:
-h, --help display help for command
A service is a TOML file at .agents/skills/tesser/<service>.toml. The file
name is the service name, and names are org-global. Every .toml in that
directory is read as a manifest. .claude/skills/tesser, .agents/skills/devboxes
and .claude/skills/devboxes are read too; manifests in two of them are an
error unless a symlink makes them one directory. A manifest carries facts
only; secret values live in the control plane (`tesser env set`), never in
the file.
root = "apps/web" optional: the service's directory, relative to the repo root
ports = [3000] required; several allowed; first = primary
size = "standard" optional default for make/dev: small|standard|large|xlarge
box_address = true optional: the app's address is box-<id>.localhost:P (Host, Origin, bare-localhost pages)
apt = ["libpq5"] optional: Ubuntu packages, installed before setup and dev on every start
[run] required: setup and dev
setup = "pnpm install" environment recipe, run before dev
dev = "pnpm dev" the server; must listen on the primary port
setup_inputs = ["pnpm-lock.yaml", "packages/*/package.json"]
optional: globs from the repo root; turns on skipping setup;
a leading ! drops what the others match, wherever it sits ("!docs/**")
[health] optional
path = "/healthz" probed on the primary port
timeout = "90s" how long dev waits for the port ("500ms", "90s", "2m")
[deps] optional
5001 = "backend" localhost:5001 on this box reaches backend's primary port
9091 = "search:9090" a specific port of a dependency
[env] optional
files = [".env.local"] the only gitignored files sync ships, relative to root
load = [".env.example", ".env.local"]
KEY=VALUE files setup, dev and every shell on the
service's box get as env (shells: what the last dev run
read), relative to root; later files win, `tesser env
set` values win over all. A gitignored one reaches the
box only through files or `tesser env push`; a shared
instance loads committed ones only (`tesser env --help`)
required = ["DATABASE_URL"] names `tesser env set <service> KEY=VALUE` must hold
Rules
Own ports and dep ports share the box's loopback, so a dep's local port
cannot be one of the service's own ports. Declared ports may bind
127.0.0.1 or 0.0.0.0; either works, and an all-interfaces bind is not
public. setup runs as an sh -e script, so any failing line fails it
(`|| true` tolerates one; sh has no pipefail, so `cmd | tee` hides
cmd's failure). dev runs as a plain sh script once setup exits 0,
and a wake from sleep can start it again (`tesser sleep --help`).
Without setup_inputs, setup runs on every start. With
it, a start skips setup when setup last succeeded with the same files
(only those the globs match), command, cwd, env, apt list, Ubuntu
release, AMI and node version, and every ignored path
in the workspace when it last finished (node_modules, .venv) still
exists; `tesser dev --rerun-setup` forces it. List every file setup
reads. A box from a snapshot keeps only /home and docker's images and
volumes, so a setup with setup_inputs may change only files under
/home and docker, plus the apt list: system packages go in apt (its
.debs are cached under /home, so a box from a snapshot installs them
offline). Kernel, network and mount changes (sysctl, modprobe,
iptables, ip route, mount) and anything that must run on every start (a
background process, a container without a restart policy) belong in
dev. tesser checks only files: when setup writes under /etc, /usr,
/opt, /srv, /snap, /var/lib or /var/cache, or leaves a process or such a
container running, the log
says so and setup runs again after the box reboots; nothing catches the
rest. A
manifest edit does not hot-register; re-run `dev` after changing one.
setup also runs on the snapshot builder, a box from the repo's current
snapshot whose disk the repo's new boxes start from (unless
--no-snapshot), so key a skip on its inputs, not on its output
existing; it sees no TESSER_BOX_* or TESSER_SLOT,
and of [env] load only committed files: anything specific to one box
(its address, its id, its slot, a per-box secret) belongs in dev, never
in setup, and a value setup needs there (prisma's DATABASE_URL) goes in a
committed file such as .env.example, or `env set`.
tesser boxd
Usage: tesser boxd [options] [command]
the agent tesser runs on each box
Options:
-h, --help display help for command
Commands:
update install the control plane's current agent on a box; its dev server
restarts under the new one
help display help for command
`dev`, `sync`, and `exec` bring the agent on the box they target up to
the control plane's version first and say so on stderr; the dev server keeps
running across the update. `boxd update` does the same for one box on purpose, including a
shared instance (admins only); `tesser status` shows the version a box
runs. If it says boxd did not come back, the update did not land within a
minute and the box is still on its old agent: retry, and if it fails again
tesser ssh <box_id> -- journalctl -u tesser-boxd -n 50 says why.
tesser boxd update
Usage: tesser boxd update [options] <box_id>
install the control plane's current agent on a box; its dev server restarts
under the new one
Options:
--yes the user asked for this on a box you did not make
-h, --help display help for command
tesser away
Usage: tesser away [options]
move this worktree's Claude Code sessions to your runner so they keep going with
the laptop closed
Options:
--session <id> a session that is not running, when the worktree has several
-h, --help display help for command
Moves every Claude Code session working in this worktree to your runner, one
box per person that tesser keeps for you and sleeps when idle, so they keep
going with the laptop closed. As /away inside Claude (`tesser skill install away` adds it) they
move once the turn ends; from a terminal, sessions running here stop mid-step
and pick up on the runner.
The worktree goes along at the same path, uncommitted work included, copied
from one of its boxes when it has one. The runner drives this worktree's boxes
the way the laptop did and saves a checkpoint after every turn. Until
`tesser home`, this copy stays as it was and anything here that syncs to a
box refuses. Your runner needs `tesser runner login` once, before your first
move.
Orgs whose boxes run in their own AWS account cannot move threads yet.
tesser attach
Usage: tesser attach [options] [thread]
open a thread that is away in this terminal
Options:
-h, --help display help for command
Opens the thread's Claude in this terminal. Ctrl-\ detaches, as does
closing the terminal; the thread keeps running. /home in it brings the
worktree home and continues the session here. With no thread named: this
worktree's, else your only one.
tesser send
Usage: tesser send [options] <message...>
type a message into a thread that is away, without attaching
Arguments:
message optionally led by the thread id
Options:
-h, --help display help for command
tesser home
Usage: tesser home [options]
bring this worktree back: its commits, edits, and sessions land here
Options:
--now stop its threads mid-step
--abandon end its threads and keep this worktree as it was when it left,
dropping the cloud's work
-h, --help display help for command
Lands the runner's commits, uncommitted edits, and untracked files here, and
its sessions in your Claude config: `claude --resume <id>` continues each.
Then the worktree is cleared off your runner, which sleeps once none of your
threads are on it. A thread still working is left alone unless --now,
which stops it mid-step. If the runner died, its last checkpoint lands instead.
Edits made here while it was away are saved to a patch first, never mixed in.
tesser threads
Usage: tesser threads [options]
your threads that are away, and what each is doing
Options:
--json
-h, --help display help for command
tesser runner
Usage: tesser runner [options] [command]
the box your threads run on
Options:
-h, --help display help for command
Commands:
login sign Claude Code in on your runner with Anthropic's own flow
help display help for command
tesser runner login
Usage: tesser runner login [options]
sign Claude Code in on your runner with Anthropic's own flow
Options:
-h, --help display help for command
tesser daemon
Usage: tesser daemon [options] [command]
run the local proxy in the foreground: box-<id>.localhost, bare localhost for
focused boxes, the panel, and the tunnels
Options:
--port <n> the daemon's own port (default: TESSER_DAEMON_PORT, else
7678)
--host <hostname>
--allow-lan also answer the rest of the local network, not only this
machine and Tailscale peers
-h, --help display help for command
Commands:
install run it as a login service (launchd on macOS, systemd --user
on Linux) that survives reboots and crashes
uninstall remove the login service and stop the daemon it runs
stop stop a foreground or background daemon; a login service
needs uninstall
Nobody has to run this. `dev`, `use`, and `review` start tesserd in the
background when it is not answering, on TESSER_DAEMON_PORT (7678),
logging to <state dir>/daemon.log; `daemon stop` ends it. `daemon install`
makes it a login service instead (launchd on macOS, systemd --user on Linux)
that comes back after reboots and crashes and picks up `tesser update` on
its own; `daemon uninstall` removes it. Bare `tesser daemon` runs it in
this terminal, for watching it.
If something else holds port 7678, set TESSER_DAEMON_PORT (or
`daemon install --port`) and `dev` says which port to open.
tesser daemon install
Usage: tesser daemon install [options]
run it as a login service (launchd on macOS, systemd --user on Linux) that
survives reboots and crashes
Options:
--port <n> the daemon's own port (default: TESSER_DAEMON_PORT, else 7678)
--allow-lan also answer the rest of the local network
-h, --help display help for command
tesser daemon uninstall
Usage: tesser daemon uninstall [options]
remove the login service and stop the daemon it runs
Options:
-h, --help display help for command
tesser daemon stop
Usage: tesser daemon stop [options]
stop a foreground or background daemon; a login service needs uninstall
Options:
-h, --help display help for command
tesser local
Usage: tesser local -p <port> [--name <name>] -- <command...>
run a dev server on this laptop at local-<name>.localhost:<port>, next to your
boxes
Options:
-p, --port <port> the port the browser opens
--name <name> the address is local-<name>.localhost:<port>
-h, --help display help for command
Runs <command> on this laptop and serves it at local-<name>.localhost:<port>
next to your boxes (local-<hex> without --name). The command listens on a
free port from PORT (frameworks that ignore PORT, like vite, astro, wrangler
and expo, get --port/--host added) and sees Host: localhost:<port>, so it
never holds <port> itself. `tesser use local-<name>` puts it on bare
localhost:<port>; `tesser use <box_id>` puts a box back. It and its address
end when <command> exits or on Ctrl-C.
tesser local -p 3000 --name dash -- pnpm dev
tesser use
Usage: tesser use [options] [box_id...]
focus boxes, last one on top: bare localhost:<port> shows their ports
Options:
--off unfocus instead
--json with no box ids, the daemon's routes as JSON
-h, --help display help for command
tesser make
Usage: tesser make [options] [service]
create a box and print its id: a workbench, or an instance box for a service
Options:
--ensure-running <sha> the org's shared instance of the service at this
commit
--restart with --ensure-running, run the manifest's setup and
dev again even when it is healthy
--size <size> (choices: "small", "standard", "large", "xlarge")
--snapshot <snapshot_id> start from this snapshot of the repo instead of its
current one
--no-snapshot start blank instead of from the repo's current
snapshot
-h, --help display help for command
A workbench (no service) or an instance box for a service, ready in about
3 seconds at any size. One that lands on EC2 instead (the fleet is full,
or the org runs none) takes about 30, or seconds from a prewarmed pool box
of its size (tesser pool --help). A box in a repo with a snapshot starts
from it (tesser snapshot --help); without one, or while the first is
still building, setup installs from scratch.
--size picks RAM and CPU. Standard is 2 vCPU and 8 GB; each step doubles. A
manifest's `size` sets its service's default; a workbench takes the
largest in its repo, up to large.
--ensure-running <sha> runs the org's shared instance of the service at a
commit (resolved in the current worktree), waits for it to be healthy,
switches the org over to it, and prints one stdout line starting with the
box id. When the worktree has its own box of the service (same size, not
kept), that box becomes the shared instance, keeping its warm build, and the
worktree's next `tesser dev` starts a new one. `tesser service ls` shows
every shared instance. Every other instance of the service, current or
staged, shows as draining and is removed with its disk a minute later, so
anything its app wrote there (uploads, a SQLite file) is gone. A shared
instance that reports healthy is left alone; --restart runs its setup and
dev again in place at the same commit.
If the org is at its box limit, `tesser rm` an idle box; `tesser sleep`
does not help, since the cap counts boxes, not awake ones.
tesser pool
Usage: tesser pool [options] [command]
booted EC2 boxes kept warm for an hour after the last make so make takes seconds
Options:
-h, --help display help for command
Commands:
target keep N booted boxes of a size warm; 0 turns them off
ls list unclaimed pool boxes
drain remove every unclaimed pool box
help display help for command
`pool target` keeps booted EC2 boxes of a size that any make, exec, or dev
in the org claims. A claim in a repo with a snapshot mounts the snapshot
on the claimed box and starts from it while it fills in.
Unclaimed pool boxes self-destruct an hour after the last make they could
serve, and after 6 hours whatever happens.
tesser pool target
Usage: tesser pool target [options] [n]
keep N booted boxes of a size warm; 0 turns them off
Arguments:
n 0-8 (default: 2)
Options:
--size <size> (choices: "small", "standard", "large", "xlarge", default:
"standard")
-h, --help display help for command
tesser pool ls
Usage: tesser pool ls [options]
list unclaimed pool boxes
Options:
--json
-h, --help display help for command
tesser pool drain
Usage: tesser pool drain [options]
remove every unclaimed pool box
Options:
-h, --help display help for command
tesser snapshot
Usage: tesser snapshot [options] [command]
disk snapshots of a repo after every service's setup; new boxes start from the
current one
Options:
-h, --help display help for command
Commands:
create build a snapshot of this repo at a commit: a box from the repo's
current snapshot (blank when none) runs every service's setup,
then its disk is captured; once ready, a default-branch one is
what new boxes of this repo start from org-wide, a branch one only
boxes made with `--snapshot`
ls this checkout's repo's usable snapshots (the org's outside a
checkout), newest first
show a snapshot
rm remove a snapshot; boxes made from it keep running
help display help for command
tesser snapshot create
Usage: tesser snapshot create [options]
build a snapshot of this repo at a commit: a box from the repo's current
snapshot (blank when none) runs every service's setup, then its disk is
captured; once ready, a default-branch one is what new boxes of this repo start
from org-wide, a branch one only boxes made with `--snapshot`
Options:
--sha <commit> the commit to snapshot (default HEAD)
--wait wait until it is ready or failed, streaming the setup log
-h, --help display help for command
tesser snapshot ls
Usage: tesser snapshot ls [options]
this checkout's repo's usable snapshots (the org's outside a checkout), newest
first
Options:
--all every repo in the org
--removed include removed and purged snapshots
--json
-h, --help display help for command
tesser snapshot show
Usage: tesser snapshot show [options] <snapshot_id>
a snapshot
Options:
--json
-h, --help display help for command
tesser snapshot rm
Usage: tesser snapshot rm [options] <snapshot_id>
remove a snapshot; boxes made from it keep running
Options:
-h, --help display help for command
tesser ls
Usage: tesser ls|list [options]
list the org's boxes, a sortable table in a terminal
Options:
--json
-h, --help display help for command
--json is an array of boxes: boxId, service (null for a workbench), owner,
power, instance, sha, and the other fields `tesser status` prints, plus
worktrees: [{ root, name, repo }], the worktrees on this laptop the box was
made from (empty for boxes made elsewhere). For this worktree's box of a
service, use `tesser status <service> --json` instead of filtering this.
tesser top
Usage: tesser top [options]
the org's boxes and wiring, live, in a terminal UI
Options:
-h, --help display help for command
tesser status
Usage: tesser status [options] [box_id|service]
one box in detail; with no id, the current worktree's box
Options:
--json
-h, --help display help for command
A service name means this worktree's box for it, else the service's shared
instance. Presence is boxd's socket; instance is whether the dev server is
actually up: none, exited, or running on :3000 (healthy). Trust the instance
column, not presence. A dep line says whether the box behind the port serves
(a connect to a dep port always succeeds). --json is one box as `tesser ls
--json` prints it, plus its deps.
tesser status web --json | jq -r .boxId
tesser usage
Usage: tesser usage [options]
the org's meter: credit left, what is awake, and time by size and service
Options:
--json
--history with --json, add the hourly history of the last 181 days
-h, --help display help for command
tesser spend-limit
Usage: tesser spend-limit [options] [dollars]
monthly caps on what the org or its members may spend; bare form shows them
Arguments:
dollars 50, 12.50
Options:
--off remove the limit
--aws cap EC2 compute in the org's own AWS account, not the tesser
bill
--member <who> a member's cap on the boxes they own: email, service:<name>,
membership id, or all; repeat for several
--json
-h, --help display help for command
A limit caps a month's whole spend, the plan's included usage too. At it,
the boxes it covers sleep and their launches and wakes are refused until an
admin raises it or the month resets. The org's limit covers every box;
a member's covers the boxes they own. Tesser limits reset with the billing
period, --aws ones on the 1st (UTC), the way AWS bills. --aws counts awake
time at on-demand EC2 prices, so it leaves out disks, traffic and discounts.
Bare form prints: meter, who, limit, spent this month, reset; a member
sees only the org's limit and their own. Admins set limits. Do not change
one unless the user explicitly asks.
tesser update
Usage: tesser update [options] [version]
install the latest CLI release, then restart a running daemon on it; tesser does
this on its own once a day
Arguments:
version a release to install and stay on until a bare `tesser update`
Options:
--check only say whether a newer release exists
-h, --help display help for command
tesser sync
Usage: tesser sync [options] [box_id|service]
copy the current worktree to a box; with no id, the current worktree's box
Options:
--restart run the manifest's setup and dev again after the sync, then block
like dev until healthy, up to the [health] timeout
--detach with --restart, return once the run starts; `tesser wait <box>`
then waits for the port
--force sync even if it would delete most of the files on the box
--yes the user asked for this on a box you did not make
-h, --help display help for command
Respects .gitignore, so .env.local never reaches the box on its own. Either
list it under [env] files in the manifest (then every sync ships it) or send
it once with `tesser env push <box_id>`. After a push or an edit:
tesser sync <box_id> --restart. A service name means this worktree's box
for it, never the shared instance.
Ignored paths on the box that sync does not ship (node_modules, .next,
build caches) survive every sync and --restart. To clear one, delete it,
then restart; the old dev server runs until then, so leave it idle:
tesser exec <box_id> --in <service> -- rm -rf .next
tesser sync <box_id> --restart
With setup_inputs, deleting a path that existed when setup last finished
(.next usually did) makes that start run setup again. A start with a
[health] path loads / as soon as the port listens and polls that path, so
both are compiled before the run is ready; time a cold compile on another
route.
The guard: syncing worktree B to a box made from worktree A would replace
its whole workspace. Do not --force past it; `make` a new box. A shared
instance's checkout is immutable and refuses sync entirely.
The box's repo is a shallow mirror of the worktree's HEAD. `git status`,
`diff`, and `rev-parse` behave normally; `git log` shows one commit, and
any commit or branch made on the box is wiped by the next sync.
tesser env
Usage: tesser env [options] [command]
env files on boxes, and the values held for a service's boxes
Options:
-h, --help display help for command
Commands:
push send gitignored .env* files to a box (every one at the worktree
root, or the files named)
set set values for every box of a service
unset drop values
ls the names set, and required names still unset
help display help for command
Two different things. `env push` sends gitignored files from the worktree
to one box (default: every gitignored .env* at the worktree root). `env set`
holds values in the control plane that the service's boxes get, dev boxes
and shared instances alike, in every `dev` run, `exec` and `ssh` shell. A
workbench gets every value its repo's services agree on. `env set` (admins
only) changes what every box of the service gets, shared instances and the
repo's workbenches included, from their next dev run or shell on, and marks
the repo's snapshot stale: ask the human first. A value only your box needs,
that no `env set` value names, goes in a gitignored file you `env push`,
then `sync <box> --restart`; most loaders let the process env win over a
file. An app with no loader of its own lists its files in the manifest's
[env] load: boxd reads them into the dev run's env, later files winning,
`env set` values over all, and logs each file or line it skips. A shared
instance and a snapshot build load only committed files, so one member's
file never becomes everyone's env. Every shell on the service's box (exec,
ssh) sees what the last dev run read. On a workbench, `exec` and
`ssh <box> <cmd>` get its services' committed values (see exec --help for
a key they set differently); an interactive ssh shell does not.
Neither exec nor ssh sees variables the dev script sets itself: find the
server's pid (ss -ltnp 'sport = :<port>') and check one name with
tr '\0' '\n' < /proc/<pid>/environ | grep -c '^NAME='; never dump it.
`env ls` also shows required names still unset. Names that make a shell,
loader, interpreter or package manager run code (PATH, NODE_OPTIONS, LD_*,
GIT_*, npm_config_*, YARN_*, ...) are refused: the box never takes them
from the control plane. Set them in an [env] load file or run.dev.
Keep secrets out of shell history and the process list: a bare KEY reads its
value from stdin, and --from-file takes KEY=VALUE lines.
--from-file and [env] load read a file the same way: blank lines, # comments
and a leading export are skipped; an unquoted value ends at " #"; single
quotes are literal; double quotes may span lines and take \n \t \" \\
escapes; nothing is expanded, so $ and backticks stay as written.
tesser env set api STRIPE_KEY < ~/.stripe-key
tesser env set api --from-file .env.production
tesser env push
Usage: tesser env push [options] <box_id> [file...]
send gitignored .env* files to a box (every one at the worktree root, or the
files named)
Options:
--yes the user asked for this on a box you did not make
-h, --help display help for command
tesser env set
Usage: tesser env set <service> [KEY=VALUE|KEY...] [--from-file <path>]
set values for every box of a service
Arguments:
service
KEY=VALUE a bare KEY reads its value from stdin
Options:
--from-file <path> KEY=VALUE lines (- for stdin); a value in matching quotes
loses them, nothing else is interpreted
-h, --help display help for command
tesser env unset
Usage: tesser env unset [options] <service> <KEY...>
drop values
Options:
-h, --help display help for command
tesser env ls
Usage: tesser env ls [options] <service>
the names set, and required names still unset
Options:
-h, --help display help for command
tesser exec
Usage: tesser exec [options] [box_id] -- <cmd...>
sync the worktree and run a command on a box (the worktree's workbench when no
box is named)
Options:
--in <service> run in the service's root directory, with its [env] load
values on a workbench
--deps-of <service> give the box the service's dependency ports for the
duration
--force sync even if it would delete most of the files on the box
--yes the user asked for this on a box you did not make
-h, --help display help for command
Runs on the worktree's workbench when no box is named, creating one the
first time. The workbench never runs a dev server; tests, typechecks,
installs and builds belong there. Syncs the worktree first. The remote exit
code is yours. The box stays awake while this runs, so a job longer than your
tool timeout goes in a background task on your side, not nohup on the box.
--deps-of <service> gives the box that service's dependency ports for one
run. Values held by `tesser env set` are in the environment: a service box
gets its service's, a workbench gets every value its repo's services agree
on (a key two of them set differently is left out). On a service box,
every shell gets what its last dev run read from [env] load, for names
nothing else set; on a workbench, exec gets its services' committed [env]
load values, warns about a key two of them set differently and leaves it
unset, and `--in <service>` takes that service's. A command that needs one service's values (a
migration) runs on that service's box: `tesser exec <box_id> -- ...`
(`tesser ls` has the id).
The command sees the same TESSER_* a dev run does:
TESSER_BOX_ID box_<hex>
TESSER_BOX_HOST box-<hex>.localhost, how the box and its peers reach it
TESSER_BOX_URL http://box-<hex>.localhost:<port>, on a service box this
laptop started (the manifest's first port)
TESSER_SLOT which boxes share backing state: `pinned` on a shared
instance, the worktree's cohort on a box this laptop started;
always lowercase [a-z0-9_-], at most 63
tesser dev
Usage: tesser dev [options] [service...|box_id]
start one or more services' dev servers from the current worktree
Options:
--force sync even if it would delete most of the files on
the box
--detach return once the run starts; `tesser wait <box>` then
waits for the port
--sleep-after <duration> the box sleeps after this long idle (30m, 4h), over
your sleep-after
--snapshot <snapshot_id> start a new box from this snapshot of the repo
instead of its current one
--no-snapshot start a new box blank instead of from the repo's
current snapshot
--rerun-setup restart the run and run the manifest's setup even if
its inputs are unchanged
--yes the user asked for this on a box you did not make
-h, --help display help for command
Runs the manifest's setup, then dev, and waits for the primary port. Reuses
the box for (worktree, service). Running it again restarts the server when
it is not running or crashed under a file watcher (how you recover a
crash), or when the manifest, the files setup reads (lockfiles, package.json,
env files) or the env changed; other edits are the dev server's to
hot-reload. `tesser sync <box> --restart` always restarts. Each simultaneous
setup of the same service needs its own worktree.
Setup runs on every start unless the manifest lists setup_inputs (see
`tesser help manifest`); then a start skips it when it already succeeded
with the same inputs, on this box or on the snapshot the box came from, and
the log says so. --rerun-setup restarts and runs it regardless.
Blocks until the primary port is healthy; wait for it to exit, never poll.
With --detach it returns once the run starts; `tesser wait <box>` then
blocks the same way.
Exits 1 with the log tail if the run dies before the port listens, its app
crashes under a file watcher or reloader that keeps running (nodemon, tsx
watch, Django runserver, uvicorn --reload), or another process holds the
port. Usually a missing env var (tesser env --help) or a port that drifted
because the dev server found its port taken. While waiting it prints the
log's last line and its processes' CPU every 30 seconds; raise [health]
timeout only if that line is still progress or the busiest process is work
that finishes (a build, a migration, an install), not the dev server. A new
box is up in seconds, but setup can take many minutes more; do not `rm` a
box that only looks hung.
Its health check is the box's own port. While that waits, its progress
lines and its timeout name a dep that is asleep, exited, or crashed under its
watcher; once it is healthy, dev waits for its deps and says which are not
serving. A box started before the infra it needs lands against a dead port,
and a client that started while nothing was behind its dep can keep a dead
connection (redis loops on EPIPE instead of reconnecting). Once the dep is
up, or after `wire`: tesser sync <box_id> --restart.
When a service's deps are other services in this worktree, start them in one
command, `tesser dev api web`: every box is made, synced and set up at
once, and each dev starts once the services it depends on there are healthy,
so web never boots against a missing api. The boxes, not the command, hold
that wait, so stopping the command strands nothing; --detach returns once
every run has started. A dep on a service started in the same command
reaches that box in place of the shared instance: dev wires it, and the wire
stays until you change it, while a wire you made to another live box is
kept. It prints the box id of each service that came up, one per line, in
the order named. A service whose dep did not come up keeps its box and runs
its setup, but its dev waits until that dep is healthy; the command exits 1,
and the ones that came up keep running. Never stagger separate `dev` runs
with sleeps.
Requests to port P reach the box from 127.0.0.1 with Host: localhost:P, and
a page's Origin arrives as http://localhost:<its port>, whether the browser
used localhost or the box address. So the app's base, auth and CSRF URLs
stay http://localhost:P. An app that uses one URL for all of those and its
own fetches sets box_address = true in its manifest: it then sees Host
$TESSER_BOX_HOST:P, a page's Origin arrives as sent, and its URL is
http://$TESSER_BOX_HOST:P. A curl write with no Origin gets one only when it
sends a cookie, a form body (curl -d without -H Content-Type is one) or no
body; a cookie-less JSON write, like a token login, arrives with none. A URL
only the browser loads from another of the box's ports (an asset or CDN
host, a websocket or HMR host, a static URL prefix) names the box instead:
http://$TESSER_BOX_HOST:<that port>, never localhost. From a page on the box
address, localhost carries none of the page's cookies, and a frame, link,
form or popup, whatever a stylesheet on localhost loads, and a no-referrer
page's classic scripts, stylesheets and images reach whichever box localhost
shows, not this one. Per-IP throttles see 127.0.0.1, or the leftmost
X-Forwarded-For the client sent.
Deps resolve to a wire, else the org's shared instance of that service, else
your own dev box of that service from the same worktree, else nothing:
`dev` names the port when it returns, every connection to it is reset, and
the box's log says so. Only `tesser dev a b` makes wires for you, and a
teammate's box never counts as a same-worktree box (tesser wire --help). A manifest edit does not hot-register;
re-run `dev` after changing one.
The box runs the manifest it was synced, never a command from anywhere
else; a one-off command is tesser exec. Manifests: tesser help manifest.
tesser wait
Usage: tesser wait [options] [box_id|service]
block until a box's dev server is healthy, or exit non-zero with why it never
will be
Options:
--timeout <duration> how long to wait (90s, 9m); default the manifest's
[health] timeout
-h, --help display help for command
Waits on a dev run already started (by `dev --detach`, `sync --restart
--detach`, or a `dev` that timed out) the way `dev` does, wired deps
included: exit 0 once the primary port is healthy, else exit 1 with the
reason and the log tail when setup failed, the dev command exited, its app
crashed under a file watcher, another process holds the port, or the timeout
ran out. It prints where the run is every 30 seconds, including a health
check that keeps answering the same 5xx, and says when its log has
been quiet for 3 minutes while it sits idle. A sync from this laptop still in flight counts as
the run starting, and the timeout runs from its end. With no argument, the worktree's one dev box; a
service name means this worktree's box for it, else the service's shared
instance, else its one staged instance that is up or coming up (a
`make --ensure-running` not yet promoted).
tesser logs
Usage: tesser logs [options] [box_id|service]
the dev server's output; with no id, the current worktree's box
Options:
-n, --lines <n> how many lines (default: 200)
--grep <regex> only lines matching this extended regex, earlier runs
included
--health keep the [health] probe's own request lines
-f, --follow keep following
-h, --help display help for command
The current run's last lines, without GET requests for the [health] path
unless it is /, which are the probe's (--health keeps them). Each
`dev` or restart starts a new log, and so does a run past 10 MB:
~/.tesser/dev.log is the newest, dev.log.1 and dev.log.2 the ones before.
--grep searches all three, oldest first, prefixes the older ones' lines
with their file name, and exits 1 when nothing matches. A service name
means this worktree's box for it, else the service's shared instance.
tesser logs <box_id> --grep 'error|warn' -n 50
tesser sleep
Usage: tesser sleep [options] <box_id>
power a box down; any command targeting it wakes it
Options:
--yes the user asked for this on a box you did not make
-h, --help display help for command
Idle boxes sleep on their own: workbenches after 10 minutes, instance boxes
after 2 hours (`tesser sleep-after` changes yours). A box asleep for 16
hours is removed. Disk and id persist through sleep; any command targeting
the box wakes it in a few seconds (about 35 on EC2). A running dev server
does not count as activity; proxied traffic does. Neither does a job left
running on the box with nohup, setsid, or tmux: run it as `tesser exec` in
the background on your side, and the box stays awake until that command
exits.
A box that hibernated wakes with the same dev process, memory and all,
unless the server stopped answering or the wake updates boxd: either
starts it again. A box that cannot hibernate (an EC2 box in its first
minutes, one still copying in its snapshot home, one on an older image)
shuts down instead, and its wake runs setup and dev as on any start: a new
process, and whatever it held in memory is gone. A dev server that exited before
the sleep stays exited. instance.startedAt in
`tesser status <box_id> --json` is when the current process started.
tesser wake
Usage: tesser wake [options] <box_id>
power a box up and wait until it answers
Options:
-h, --help display help for command
tesser util
Usage: tesser util [options] [box_id]
each service's cpu and memory against its size, to right-size boxes; with a box
id, that box over time
Options:
--since <duration> how far back, like 30m, 12h or 7d (default 7d for the org,
1h for a box; 90d at most)
--json
-h, --help display help for command
With no box id, how the org's boxes used what they paid for: one row per
service (or the workbenches) per size, over the window, most spent first.
`sizes` lists every size's vcpus, RAM, and price per awake hour for this
org (with the AWS bill when boxes run in the org's own account); each step
doubles vcpus and RAM. cpu is % of the size's vcpus; memory is used memory, not
file cache; pressure is the % of time work waited on that resource.
configuredSize the size new boxes of the service get now (null: the
service is no longer registered, or a workbench, which
gets its repo's largest service size, up to large)
smallestFit the smallest size whose RAM keeps memoryGb.max under
80%, and above any size the service ran out of memory
on; one value per service
idleHours awake hours with cpu under 5% the whole time
cpu.hotHours awake hours with cpu at 80% or more
cpu.stalledHours awake hours where work waited on cpu 20% of the time or more
runs.readyP50S tesser dev to the first answered request, median
To right-size an org, read `tesser util --since 14d --json` and decide per
service, adding up its rows' hours. Price a change as the row's awakeHours
at the new size's centsPerHour, halved for a week.
Memory sets the floor: never below smallestFit, which already counts
memory pressure. Past it the box stalls or the OOM killer takes the dev
server. Node and most build tools size their heap from the RAM there is,
so a peak on a big box understates what a smaller one needs: give a
renamed copy of a service (a preview, an experiment) the floor of the
service it copies. A service below its floor goes up, even when the user
asked to cut the bill; it is paying for that in stalls.
CPU decides whether a size above the floor pays: it does when people wait.
Keep or raise it when cpu.stalledHours or cpu.hotHours is 5% of awakeHours
or more, or runs.readyP50S is clearly lower on the bigger size. Otherwise
go down toward smallestFit while cpu.p50 is under 20%: every step down
halves the vcpus, so cpu % doubles. Workbenches run the tests, builds, and
typechecks: bigger is faster there, so take them down only when idle too.
Idle time is usually the bigger lever. idleHours counts quiet cpu, so a
preview someone is reading counts too, but when it is most of awakeHours
the boxes mostly wait out their idle clock (2h by default, per person:
`tesser sleep-after` shows and sets yours), and a shorter one saves more
than any size.
A service no one has used lately (lastAwakeAt), or whose configuredSize is
null, is cheapest removed: ask the user, then `tesser service rm`.
A service's size is the `size` key in its manifest. A workbench takes the
largest one in its repo, up to large, unless `tesser make --size` names
another. A box keeps the size it was made with: one bigger than
configuredSize gets the new size only when it is removed and made again, so
ask before removing anyone's box. Show the user a table first: each service,
configuredSize and the proposal, the numbers behind it, and the $/week
difference. Change only what they agree to, as a commit they review. A week
after it lands, run `tesser util --since 7d` and check cpu.stalledHours,
memoryGb.pressureMax, and runs.readyP50S on what moved.
tesser sleep-after
Usage: tesser sleep-after [options] [duration]
how long your instance boxes sit idle before they sleep; bare form shows it
Arguments:
duration 30m, 4h; 5m to 24h
Options:
--box <box_id> set one box's clock instead, over its owner's
--default back to the default: the org's for you, the owner's for a box
--yes the user asked for this on a box you did not make
-h, --help display help for command
Your own idle clock, per org: every instance box you own sleeps this long
after its last activity instead of the 2 hour default. Workbenches keep
their 10 minutes. Takes effect on your existing boxes immediately, so a
box already idle longer than the new value sleeps now.
`--box <box_id>` (or `tesser dev --sleep-after`) sets one box's clock, any
class, over its owner's. A pool claim starts a box with none.
tesser keep
Usage: tesser keep [options] <box_id>
never let a box sleep or expire on its own; only when the user asks, never for a
long job
Options:
--off back to the idle clock
--yes the user asked for this box to stay up, or for this on a box you
did not make
-h, --help display help for command
Only when the user asks for it. A kept box bills every second it is awake,
until someone turns it off. For a long job, run `tesser exec` as a
background task on your side; for more idle time, `tesser sleep-after`.
An agent is refused without --yes.
A kept box is exempt from the idle clock: it never sleeps on its own and is
never removed for being asleep too long, like a database the rest of the
org depends on.
`keep` wakes the box if it is asleep. `sleep` and `rm` still act
immediately; a kept box put to sleep stays asleep until something targets it.
`keep --off` returns it to the idle clock.
tesser ssh
Usage: tesser ssh (<box_id|service> | --new [--size <size>]) ['<command line>' | -- <cmd...>]
an interactive shell, or a command in ~/workspace (no sync first; after --,
exact argv); a service name means its org default box
Options:
--new make a workbench as `tesser make` does, print its id, ssh in
--size <size> with --new, the workbench's size (choices: "small", "standard",
"large", "xlarge")
-h, --help display help for command
For looking, never editing: the next sync overwrites the box. Files sync
skips (an ignored input, a build's output) go by plain rsync over it, box
paths from ~/workspace: rsync -a -e 'tesser ssh' <box_id>:out/ out/. A command
line starts in ~/workspace, the worktree's root: tesser ssh <box_id> -- ls
packages/api/dist, never -- ls workspace/packages/api/dist. A quoted
command line runs in the box's shell, as with ssh: tesser ssh <box_id>
'git status && git log -1'. After --, the words are exact argv and,
unlike plain ssh, no shell splits or unquotes them: -- bash -c 'a && b',
never -- bash -c "'a && b'"; a script with quotes goes on stdin:
`tesser ssh <box_id> bash <<'EOF'`. A service name instead of a box id
lands on that service's org default, the shared instance any member
can run scripts against: tesser ssh api -- bun run scripts/backfill.ts.
Everything after the box belongs to the command, flags included. A
command line gets the env `tesser exec --help` describes; the
interactive shell starts in ~ and gets all of it but the TESSER_*. From a
terminal, a command line gets a terminal on the box too (ssh -tt). If
ssh asks for an AWS profile, the org runs its boxes in its own AWS
account and no profile is set: an admin sets the org's default with
tesser cloud connect --aws-profile, or this laptop names its own with
tesser cloud aws-profile.
tesser runs ssh with -F /dev/null: ~/.ssh/config and /etc/ssh/ssh_config
never apply to a box.
tesser rm
Usage: tesser rm [options] <box_id...>
remove boxes and their disks; wires that pointed at them are cleared
Options:
--yes the user asked for this on a box you did not make
-h, --help display help for command
tesser share
Usage: tesser share [options] <box_id>
a review link for a box and everything it depends on; anyone in the org opens it
with tesser review
Options:
--ttl <duration> how long the link works (12h, 7d); default 7d
--revoke end every review link for the box
--yes the user asked for this on a box you did not make
-h, --help display help for command
tesser review
Usage: tesser review [options] <link>
open a review link: the box and its deps get addresses on this laptop
Arguments:
link the https://tesser.sh/r#... link, or its token
Options:
-h, --help display help for command
tesser wire
Usage: tesser wire <box_id> [<service> <target_box_id|--shared>]
point a box's <service> dependency at a box, or back to the org's shared
instance; bare form shows every dep
Options:
--shared back to the org's shared instance
--yes the user asked for this on a box you did not make
--json bare form only: every dep as JSON
-h, --help display help for command
How deps resolve
A manifest's [deps] maps loopback ports on the box to other services, so
the app keeps its localhost:… config. Each dep port reaches, in order: the
box it is wired to, else the org's shared instance of that service, else
your own dev box of that service from the same worktree, else nothing:
`dev`, `wait` and `make` name the port, every connection to it is
reset, and the box's log says so. Only `tesser dev a b` makes wires for
you, and a teammate's box never counts as a same-worktree box. `tesser dev web` against the shared api
just works, and so do `tesser dev web` and `tesser dev api` from one
worktree when api has no shared instance.
Two dev boxes from different worktrees or repos
API=$(tesser dev api) in the backend worktree
WEB=$(tesser dev web) in the frontend worktree
tesser wire "$WEB" api "$API" the human opens the address web's dev printed
tesser sync "$WEB" --restart if wire says web ran with api unbacked
tesser wire "$WEB" api --shared done: back to the shared api
When the frontend lives in a repo you are not editing, make a worktree of
it and `dev` from there: git -C ../frontend worktree add /tmp/web-<branch>
origin/main. `dev` reuses the box for (worktree, service), so each
simultaneous setup needs its own worktree.
`wire` returns once this laptop's daemon routes the change, and refuses
a target that is not a box of that service. Bare `tesser wire <box_id>`
shows where every dep points. Removing a box clears every wire that
pointed at it, so those deps fall back to the shared instance, else the
same-worktree box; `tesser rm` names your boxes that lost one. The org's
shared instances never point at anyone's dev box.
Bare `tesser wire <box_id> --json` prints one object per dep: name,
boxId (null when unbacked), source (wired, same worktree, shared,
unbacked), and dangling (the box it is wired to when that routes nowhere,
else null).
Browser-testing a backend change
A backend box alone is not a browser test. Run a frontend box of your own
from a worktree of the frontend repo, wire it to your backend box, leave
unchanged deps on their shared instances, and return the frontend's URL
with the wiring. One frontend cannot show two people different backends.
Unit tests and builds alone never need a frontend.
How a box addresses another box
Two ways, for different questions. A wired dep port is 127.0.0.1:<dep port>
on the box and answers whatever Host header is sent: use it when the app's
config names a fixed port and you want to swap what sits behind it.
http://box-<id>.localhost:<port> works from a box too: every box gets a
door for each peer in the org, so one box can name another directly. Use
it when a single box has to reach many targets, which a dep port cannot
express; one dep is one target. The run command, an exec, and an ssh
command line see their own box as TESSER_BOX_ID, TESSER_BOX_HOST
(box-<hex>.localhost) and TESSER_BOX_URL (first declared port), so a dev
box can hand its address to a shared service, for webhooks say. They get
TESSER_SLOT: which boxes share backing state (queue names, a redis db).
Every shared instance is `pinned`; a dev box is its worktree's folder plus
its owner, so a worktree's cohort shares one slot and nobody else's does,
and a branch switch moves nothing. It is always lowercase [a-z0-9_-], at
most 63 characters. Key shared-infra names on it, never on the
checkout's branch or sha.
The laptop's proxy also serves the org's shared instances, no share link
needed: tesserd adds each one (`tesser service ls` has each default
box), and a browser visit wakes it. Open it on the daemon's port
(7678) and a browser is sent on to the box's own port; curl the
box's port. If box-<id>.localhost resolves to ::1 from a box, that box's
peer doors never installed: `grep box_ /etc/hosts` there should list
every peer in the org, and `journalctl -u tesser-boxd` says why not.
Both boxes need a current agent: `tesser status`, then
`tesser boxd update`.
tesser service
Usage: tesser service [options] [command]
the org's service registrations
Options:
-h, --help display help for command
Commands:
ls each service's shared instances (current; staged = started, not
switched to; draining = replaced, removed with its disk shortly);
worktree manifests the org has never seen show as unregistered
show one service: its repo, and each shared instance's full sha, box,
and the command that prints the manifest it runs
rm forget a service: its shared instances and env values
The manifest format is `tesser help manifest`. `service ls` prints one line per service: ports, the org's default box (-
when none), and each shared instance as state sha power. Manifests in this worktree the
org has never seen show as unregistered. Without --json it parses every
manifest in this worktree and fails on the first bad one, so it checks an
edit before a commit or pin. Run it before `dev` when a dep
might have nothing behind it. `service show <name>` adds the repo and, for each shared
instance, its full sha, its box, and the command that prints the manifest
it runs (the file on the box, which can differ from the commit's). `service rm <name>` unregisters a service and
removes its shared instances and env; dev boxes stay.
tesser service ls
Usage: tesser service ls|list [options]
each service's shared instances (current; staged = started, not switched to;
draining = replaced, removed with its disk shortly); worktree manifests the org
has never seen show as unregistered
Options:
--json
-h, --help display help for command
tesser service show
Usage: tesser service show [options] <name>
one service: its repo, and each shared instance's full sha, box, and the command
that prints the manifest it runs
Options:
--json
-h, --help display help for command
tesser service rm
Usage: tesser service rm [options] <name>
forget a service: its shared instances and env values
Options:
-h, --help display help for command
tesser nuke
Usage: tesser nuke [options]
remove every box in the org, plus every service registration and shared
instance; env values survive
Options:
--force skip the confirmation
-h, --help display help for command