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
tesser: persistent cloud boxes for dev servers, tests, and builds; the code stays local
tesser exec -- pnpm test tests, typechecks, builds on the workbench
BOX=$(tesser dev web) a dev server; give the human the URL it prints
tesser sync "$BOX" ship edits; --restart for a new dependency
tesser logs "$BOX" -f dev server output
tesser browser "$BOX" <<'JS' screenshots, page checks: JS on stdin next to the box's Chrome
tesser rm "$BOX" when the worktree is done
Rules
Run the smallest check: tests and typechecks need only `exec`.
`dev`, `sync --restart` and `wait` block until healthy or exit with why: run them in the foreground or your tool's background task (not `&`), never a poll loop. Past your tool's time limit on one command: `dev --detach`, then `tesser wait <box> --timeout 9m`.
A long job is `tesser exec` in your tool's background, or `exec --detach` then `tesser wait <job_id> --timeout 9m`; never nohup or tmux on the box: it sleeps under a job nothing waits on.
The repo's pinned Node is on PATH; never source nvm or fnm.
Edit and commit locally. Leave boxes, shared instances and data you did not make alone; seed your own uniquely named tenant (org, workspace) in the app. `cloud`, `daemon install`, `keep`, `use` are the human's.
Signed out: `tesser login`, send the human its link, `tesser login --wait`.
No .agents/skills/tesser in the repo yet: read all of `tesser help setup`.
Failing: `status`, `logs`, `wire <box>` in turn; one failed recovery, stop.
Sharp edge: tesser feedback "<what you ran, what happened, what you expected>"
Commands (tesser <command> --help)
make create a box and print its id
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
sync copy the worktree to a box
pull copy paths from a box back to the worktree
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
logs the dev server's output
sleep power boxes down; any command targeting one wakes it
fork new boxes booted from a copy of a fleet box's disks; the box keeps running
browser drive the box's headless Chrome with JS on stdin
ssh a shell, a command in ~/workspace, or rsync's -e to copy files
rm remove boxes and their disks
wire point a box's dependency at another box
service the org's service registrations
also: version, licenses, logout, whoami, org, member, grant, cloud, ci, gateway, skill, setup, manifest, boxd, daemon, use, local, pool, update, wake, util, review, top, usage, spend-limit, keep, sleep-after, wait, nuke, away, attach, send, home, threads, runner, share, feedback, login
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
Goes out even with telemetry off, with the context telemetry sends: CLI version, OS, agent harness and session, device id, the org and member. Leave out secrets and customer data.
tesser feedback "exec said the box was asleep, then hung for 3 min"
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 or a Cursor cloud agent 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
`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 (only admins change them)
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
Anyone in the org lists them; only admins change them. `member add service:<name>` makes a service account, a member that never signs in and holds tokens and grants: `member token create <membership_id> --name ci --expires 30d` mints one, printed once.
An alias pins an issuer claim to a member, for when the claim is not their email: `member alias set <membership_id> https://app.devin.ai requesting_user_email <email>`. Boxes made through a grant are then recorded as made for that member.
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 lets id tokens from one issuer, whose claims match its pins, be exchanged for a tesser token acting as a service account (default: one named after the issuer). It is not a secret. A person who wants an agent to act as themselves gives it their own token: tesser login --token.
tesser grant create cursor --pin team_id=<cursor team id>
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 '*'
It prints the `tesser login oidc` line for that issuer. The CLI proves and exchanges again when the token nears expiry. `grant rm` stops new exchanges; minted tokens last an hour at most.
For an org on its own AWS, `--aws-role <arn>` names a role the agent assumes with the same proof, through AWS profile tesser-<org>. `grant rm` does not end that access; the role's trust policy does.
tesser grant create
Usage: tesser grant create [options] <cursor|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
cursor, 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)
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. Set the account up with the Pulumi program at https://github.com/tesser-sh/pulumi-selfhost, then the connect line the program prints (tesser cloud connect --account <id> --actuator <role> --region <region> ...) checks it end to end and moves the org there. tesser cloud check reruns the checks.
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
--actuator <role> the IAM role the actuator runs as in that account
--region <region>
--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 and sleeping fleet boxes
--fleet <host-role-arn> run boxes as microVMs on metal hosts in your
account, as this role
--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
--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
--actuator <role> the IAM role the actuator runs as in that account
--region <region>
--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 and sleeping fleet boxes
--fleet <host-role-arn> run boxes as microVMs on metal hosts in your
account, as this role
--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
--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 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 ci
Usage: tesser ci [options] [command]
GitHub Actions jobs on tesser boxes: the connected GitHub organizations and the
latest jobs
Options:
--json
-h, --help display help for command
Commands:
connect print the link that connects a GitHub organization to this org
(admins only)
disconnect stop running a GitHub organization's jobs (admins only)
GitHub Actions jobs on tesser boxes. An admin connects a GitHub organization once: `tesser ci connect` prints a link for the human, who opens it as an owner of that organization and installs the tesser GitHub App. After that a job runs on tesser when its workflow says:
runs-on: tesser-4vcpu 1, 2, 4, 8 vcpu, 4 GB of memory per vcpu; bare `tesser` is 2
Each job gets its own new box (Ubuntu 24.04 x64, Docker, passwordless sudo), removed when the job ends and billed for the seconds it was up, like any box. `tesser ci` lists the connected organizations and the latest jobs, and a queued job says what it is waiting for. An admin can `tesser ssh <box_id>` into a job while it runs.
A job starts from the disk its last successful run left: the checkout, the home directory, the tool cache, and Docker's images and layers, so installs and builds redo only what changed. Nothing in the workflow changes, except that actions/checkout deletes untracked files such as node_modules unless it has `clean: false`. A run on a branch saves that branch's disk and a pull request saves its own; both start from the default branch's when they have none, and a pull request from a fork never gets one. `tesser ci` shows the snapshot each job started from, or why it started cold. `runs-on: tesser-4vcpu-no-snapshot` starts a job on a clean disk, and `tesser snapshot rm <snapshot_id>` drops one.
tesser ci connect
Usage: tesser ci connect [options]
print the link that connects a GitHub organization to this org (admins only)
Options:
--wait block until someone opens the link and connects
-h, --help display help for command
tesser ci disconnect
Usage: tesser ci disconnect [options] <github_org>
stop running a GitHub organization's jobs (admins only)
Options:
-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. Admins only: `gateway set` serves them at https://box-<id>.<host>/ instead, from a Worker in your Cloudflare account behind Cloudflare Access. Other ports are at box-<id>--<port>.<host>. A box is served only while it has a live share (tesser share <box>).
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, org-global. Facts only: secret values live in `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: small|standard|large|xlarge
box_address = true optional: the app's address is box-<id>.localhost:P
apt = ["libpq5"] optional: Ubuntu packages, installed on every start
from_snapshot = "base" optional: base.snapshot.toml instead of default.snapshot.toml; false for none
[run] required
setup = "pnpm install" optional: only what its snapshot's setup doesn't do; sh -e (no pipefail), before dev on every start
dev = "pnpm dev" the server; must listen on the primary port
[health] optional
path = "/healthz" probed on the primary port
timeout = "90s" how long dev waits for the port
[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, paths relative to root
files = [".env.local"] the only gitignored files sync ships
load = [".env.example", ".env.local"] KEY=VALUE files the box's env
gets, later files win, `env set` over all
required = ["DATABASE_URL"] names `tesser env set` must hold
A dep can be any service in the org, from any repo; pointing it at one box of that service takes `tesser wire`. A dep port cannot be one of the service's own ports. A box from a snapshot keeps only /home and docker's images and volumes: system packages go in apt; background processes and kernel, network and mount changes go in dev.
# default.snapshot.toml, shared by every box; per-box steps go in the manifest
setup = "pnpm install" top level, not [run]; runs in root (default ".")
env = { load = [".env.example"], NODE_ENV = "production" } optional
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` update the box's agent to the control plane's version first; the dev server keeps running. `boxd update` does it on purpose. `tesser status` shows the version a box runs.
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 in this worktree, with the worktree and its uncommitted work, to your runner box, so they keep going with the laptop closed. As /away in Claude (`tesser skill install away`) they move once the turn ends. Until `tesser home`, this copy refuses to sync. The runner needs `tesser runner login` once.
tesser attach
Usage: tesser attach [options] [thread]
open a thread that is away in this terminal
Options:
-h, --help display help for command
Ctrl-\ detaches; the thread keeps running. /home in it brings the worktree home. 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, edits, and sessions here (`claude --resume <id>` continues each). A thread still working is left alone unless --now. Edits made here meanwhile are saved to a patch first.
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 on TESSER_DAEMON_PORT (7678), logging to <state dir>/daemon.log. `daemon install`, the human's call, makes it a login service.
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 with PORT set to a free port (vite, astro, wrangler and expo get --port/--host) and Host: localhost:<port>. `tesser use local-<name>` puts it on bare localhost:<port>. It ends with <command>.
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 instead of the one nearest
this commit
--no-snapshot start blank
-h, --help display help for command
A workbench (no service) or an instance box for a service, ready in seconds from the snapshot nearest its commit (tesser snapshot --help). --size: standard is 2 vCPU and 8 GB, each step doubles; a manifest's `size` is its service's default, and a workbench takes its repo's largest, up to large.
--ensure-running <sha> runs the org's shared instance of the service at that commit, waits for it to be healthy, switches the org to it, and prints one line starting with the box id. Your own box of the service, if it has the same size, becomes that instance. Every other instance drains and is removed with its disk a minute later. --restart reruns setup and dev in place.
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
A claim starts from a snapshot while it fills in. Unclaimed pool boxes go an hour after the last make they could serve, 6 hours at most.
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 taken right after a snapshot file's base setup; a new box starts
from the one nearest its commit
Options:
-h, --help display help for command
Commands:
create make every snapshot the manifests take at a commit that lacks one,
on a throwaway box each, and wait for them; run it again to wait
on a run already going on this machine
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]
make every snapshot the manifests take at a commit that lacks one, on a
throwaway box each, and wait for them; run it again to wait on a run already
going on this machine
Options:
--sha <commit> the commit to snapshot (default HEAD)
-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
The last column is the worktree each box came from. For this worktree's box of a service, `tesser status <service> --json` instead.
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
Trust the instance column (none, exited, or running and healthy), not presence. A dep line says whether the box behind the port serves. A service name means this worktree's box for it, else its shared instance.
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, included usage too. At it, the boxes it covers sleep and won't launch or wake until an admin raises it or the month resets. --aws counts awake time at on-demand EC2 prices. Never change one unless the user 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 the box holds another repo or would lose most of its
files
--yes the user asked for this on a box you did not make
-h, --help display help for command
Respects .gitignore: a gitignored env file reaches the box only through the manifest's [env] files or `tesser env push <box>`. A service name means this worktree's box for it.
Ignored paths on the box (node_modules, .next, caches) survive every sync and --restart. To clear one:
tesser exec <box_id> --in <service> -- rm -rf .next
tesser sync <box_id> --restart
The box's repo is a shallow mirror of HEAD; commit locally.
tesser pull
Usage: tesser pull [options] [box_id] <path...>
copy paths from a box's ~/workspace back to the same place in this worktree;
with no id, from the worktree's workbench
Options:
--force replace files that are newer here with the box's copies
-h, --help display help for command
For build output, generated files, a lockfile an install changed. A file that is newer here is kept and named, and nothing here is deleted. A box path outside ~/workspace goes through rsync:
rsync -a -e 'tesser ssh' <box_id>:/tmp/out/ out/
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
nuke delete every env value of every service in the org
help display help for command
`env push` sends gitignored files to one box (default: every gitignored .env* at the worktree root). `env set` holds values every box of the service gets in each dev run, exec and ssh shell, shared instances included: admins only, and ask the human first. A value only your box needs goes in a gitignored file you `env push`, then `sync <box> --restart`.
An app with no env loader lists its files in the manifest's [env] load; a shared instance and a snapshot load only committed ones. Exec and ssh don't see what the dev script sets itself; check one name on the server, never dump it: tr '\0' '\n' < /proc/<pid>/environ | grep -c '^NAME='
A bare KEY reads its value from stdin, keeping it out of shell history:
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 env nuke
Usage: tesser env nuke [options]
delete every env value of every service in the org
Options:
--force skip the confirmation
-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
--detach start the command and print a job id; `tesser wait
<job_id>` then streams it and exits with its code
--force sync even if the box holds another repo or would lose
most of its files
--yes the user asked for this on a box you did not make
-h, --help display help for command
With no box named, runs on the worktree's workbench (made the first time): tests, typechecks, installs and builds, never a dev server. Syncs first; the remote exit code is yours. After --, several words are exact argv, unsplit; one quoted line runs in the box's shell: -- 'a && b'. A job longer than your tool's timeout goes in your tool's background task, or --detach then `tesser wait <job_id>`; never nohup on the box.
A workbench starts from the `default` snapshot nearest its commit, setup already run: install from the lockfile only when there is none or the lockfile changed. For heavy builds, `tesser make --size large|xlarge` gives the worktree a bigger workbench.
A workbench gets the `env set` values and committed [env] load files its repo's services agree on; --in <service> takes that service's. A command that needs one service's env (a migration) runs on its box: `tesser exec <box_id> -- ...` (`tesser ls` has the id).
The command sees TESSER_BOX_ID, TESSER_BOX_HOST (box-<hex>.localhost), TESSER_BOX_URL (a service box's first port) and TESSER_SLOT (`pinned` on a shared instance, else the worktree's cohort; key shared-infra names on it).
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 the box holds another repo or would
lose most of its files
--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 instead of the
one nearest this commit
--no-snapshot start a new box blank
--yes the user asked for this on a box you did not make
-h, --help display help for command
Reuses the box for (worktree, service), runs the manifest's setup, then dev, and blocks until the primary port is healthy. Run again, it restarts only when the server is down, or the manifest, setup's inputs (lockfiles, package.json, env files) or env changed; other edits hot-reload. `tesser sync <box> --restart` always restarts.
On failure it exits 1 with the reason and the log tail, usually a missing env var (tesser env --help) or a server that drifted off its port. It prints progress every 30s; a slow setup is not a hung one, so never `rm` it. Past your tool's time limit: --detach, then `tesser wait <box>`.
`tesser dev api web` starts services that depend on each other together, wires them to each other, and starts each once its deps are healthy. One box id per line on stdout. Never stagger separate `dev` runs with sleeps.
A dep port reaches a wire, else the org's shared instance, else your box of that service from this worktree (tesser wire --help).
The app sees Host: localhost:P, and a page's Origin as http://localhost:P, so keep its base, auth and CSRF URLs on localhost (or set box_address = true in the manifest). A box page's localhost:<port> scripts, fetches and HMR reach its box; links, frames, forms, new tabs and cookies don't: name http://$TESSER_BOX_HOST:<port> for those.
Re-run `dev` after a manifest edit. Manifests: tesser help manifest.
tesser wait
Usage: tesser wait [options] [box_id|service|job_id...]
block until dev servers are healthy, or exit non-zero with why they never will
be; with a job id, until that `exec --detach` command ends
Options:
--timeout <duration> how long to wait (90s, 9m); default the manifest's
[health] timeout, none for a job
-h, --help display help for command
Waits on a dev run already started (`dev --detach`, `sync --restart --detach`, or a `dev` that was stopped) the way `dev` does: exit 0 once healthy, else 1 with the reason and the log tail. With no argument, every dev box in this worktree; a service name means this worktree's box for it, else its shared instance. Name several to wait on them together; it exits 1 if any fails.
A job id from `exec --detach` streams that command's output since the last wait and exits with its code; 75 means --timeout came first and it is still running. The box stays awake while a wait is on it, and sleeps as usual when none is.
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 the [health] probe's requests. Each start begins a new log; --grep also searches the two before it and exits 1 on no match. A service name means this worktree's box for it, else its shared instance.
tesser logs <box_id> --grep 'error|warn' -n 50
tesser sleep
Usage: tesser sleep [options] <box_id...>
power boxes down; any command targeting one wakes it
Options:
--yes the user asked for this on a box you did not make
-h, --help display help for command
Idle workbenches sleep after 10 minutes, instance boxes after 2 hours (tesser sleep-after); one asleep 16 hours is removed. Any command targeting a box wakes it in seconds. A running server or a nohup/tmux job is not activity: run a long job as `tesser exec` in your tool's background. A wake keeps the dev process when the box hibernated, else reruns setup and dev.
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 fork
Usage: tesser fork [options] <box_id>
new boxes booted from a copy of a fleet box's disks; the box keeps running
Options:
-n, --count <n> how many (1-10) (default: 1)
-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, one row per service (or workbenches) per size, most spent first. cpu is % of the size's vcpus; memory is used, not cache; pressure is % of time work waited. `sizes` lists each size's vcpus, RAM and price.
configuredSize the size new boxes get (null: unregistered or a workbench)
smallestFit smallest size keeping memoryGb.max under 80%, above any
size the service ran out of memory on
idleHours awake hours with cpu under 5%
cpu.hotHours awake hours with cpu at 80% or more
cpu.stalledHours awake hours where work waited on cpu 20% of the time
runs.readyP50S tesser dev to the first answered request, median
To right-size, read `tesser util --since 14d --json` and decide per service:
Never below smallestFit, even to cut the bill; a renamed copy of a service gets its floor.
Above it, keep the size when cpu.stalledHours or cpu.hotHours is 5% of awakeHours or more, or runs.readyP50S is clearly lower on it; else step down while cpu.p50 is under 20%. Workbenches only when idle too.
When idleHours is most of awakeHours, a shorter sleep-after saves more.
Unused lately or configuredSize null: ask, then `tesser service rm`.
Show the user each service's size, the proposal, the numbers and the $/week difference (awakeHours at centsPerHour, halved). Change only what they agree to, as a commit to the manifest's `size`; existing boxes keep theirs until remade. A week later, check `tesser util --since 7d`.
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 instance boxes in this org sleep this long after their last activity, instead of 2 hours, starting now. Workbenches keep 10 minutes. --box (or `dev --sleep-after`) sets one box's clock.
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: a kept box bills every second it is awake and never sleeps or expires on its own. For a long job, run `tesser exec` in your tool's background; for more idle time, `tesser sleep-after`.
tesser browser
Usage: tesser browser [options] <box_id>
run JS from stdin next to the box's headless Chrome; tabs and globals stay for
the next call
Options:
--timeout <duration> stop the snippet after this long (default 60s)
--yes the user asked for this on a teammate's box; shared
instances need none
-h, --help display help for command
The snippet runs on the box next to Chrome, prints what it prints and what it
returns, and exits; a throw exits 1 with the page. Tabs, the current tab and
top-level let/const stay for the next call. localhost:<port> is the box's dev
server; its box-<id>.localhost urls work too. Relative files it writes and
names, like screenshots, land in a new folder it prints.
tesser browser <box_id> <<'JS'
await newTab("http://localhost:3000/login")
await fillInput("#email", "dev@example.com"); await click("button[type=submit]")
await waitForElement("main h1"); await captureScreenshot("after.png")
await pageInfo()
JS
Helpers (raw CDP underneath; times in ms):
newTab(url) gotoUrl(url) waitForLoad() waitForElement(sel, { timeout, visible })
pageInfo() url, title, visible text, open dialog, clickables with x,y
click(sel) clickAtXy(x, y) fillInput(sel, text) typeText(text) pressKey("Enter")
scroll(dy) js("expr" | fn, ...args) cdp(method, params) handleDialog(accept)
captureScreenshot(path, { full }) listTabs() switchTab(id) closeTab(id)
A dialog blocks the tab until handleDialog. Driving Chrome does not keep the box awake.
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. A command line starts in ~/workspace, the worktree's root, with exec's env. A quoted one runs in the box's shell, after -- too; several words after -- are exact argv; a script with quotes goes on stdin: tesser ssh <box_id> bash <<'EOF'. A service name means its shared instance. `tesser pull` copies paths back; send files sync skips with rsync:
rsync -a -e 'tesser ssh' assets/ <box_id>:assets/
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
A dep port reaches, in order: the box it is wired to, the org's shared instance of that service, your own box of that service from this worktree, else nothing: connections are refused and `dev` stops before setup. Only `tesser dev a b` makes wires for you.
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 web's address
tesser wire "$WEB" api --shared done: back to the shared api
For a frontend repo you are not editing, `dev` from a worktree of it: git -C ../frontend worktree add /tmp/web-<branch> origin/main. To browser-test a backend change, wire your own frontend box to your backend box and hand over the frontend's URL.
Bare `tesser wire <box>` shows every dep (--json: name, boxId, source, dangling). `tesser rm` clears the wires to a box it removes.
A box reaches any peer at http://box-<id>.localhost:<port>, for one box with many targets. Shared instances are on this laptop's proxy too (`tesser service show <name>` has their boxes).
tesser service
Usage: tesser service [options] [command]
the org's service registrations
Options:
-h, --help display help for command
Commands:
ls this repo's services and their deps: ports, default box and shared
instances (staged: not switched to yet; draining: being removed)
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
`service ls` parses every manifest in this worktree and fails on the first bad one, so it checks an edit. Manifests the org has not seen show as unregistered. The format is `tesser help manifest`.
tesser service ls
Usage: tesser service ls|list [options]
this repo's services and their deps: ports, default box and shared instances
(staged: not switched to yet; draining: being removed)
Options:
--all every service in the org
--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, service, shared instance and snapshot in the org, and wipe
what tesser kept about every box it ever had; billing records stay, env values
stay until `tesser env nuke`
Options:
--force skip the confirmation
-h, --help display help for command