# Connect Steery

With Steery, your person answers questions and approves actions on their phone. A `steery`
binary on this machine sends the questions and checks the answers.

Server: `https://steery.dev`. If your person gives another server, use `--url` or `STEERY_URL`.

## How to run this

You are the installer. Read this whole page. Then do every step yourself, in order.
Do not stop between the steps. Your person taps twice in the whole installation. A machine
with no Secure Enclave or TPM needs a third tap: a key in a file needs its own consent
(`steery setup --detect` says: `custody.file_consent_required`). Make each tap one tap,
not a task:

1. **Pick the harnesses** — from a list you show. Use buttons or numbers, never typing.
   A pick of a harness that is not installed is also the yes to its vendor's installer.
   It needs no tap of its own.
2. **Confirm a sign-in** in the browser tab that opens in front of them. One click.
   (First time only.)

You do all the other work, and none of it needs your person. You install, detect,
configure, create keys, start the runtime and check that it works. Setup ends when its harnesses,
runtime and signer are set up. Rules:

- **Never hand a command to the person to run.** If a step needs them, it needs a click or
  a choice. Ask for exactly that.
- **Never end your turn with the installation unfinished.** A wait is not the end. The
  commands below wait for the person themselves: you pass `--wait-secs` and let them
  block. So you have nothing to poll and no reason to come back without an answer. Exit
  code `2` of `steery setup` means *the person's move, then run me again*. It is never a
  reason to stop. A person who takes their time is also not a reason to stop. `install.sh`
  is not `steery setup`: it exits only `0` (done) or `1`, never `2`. Exit `1` is a fault to
  fix (its stderr says why), with one exception. When the script ran `steery setup` itself
  and setup returned its `2`, the exit is still `1`. Then setup's own sentence says whose
  move it is, and the last line on stdout is `next: <the command to run again>`. You run
  `--install-only` and drive `steery setup` yourself, so you read setup's `2` directly.
- **Ask with options, never with an open question.** When your harness can show
  choices (buttons, a menu, a picker), use them. Otherwise, list numbered options and ask
  for the number. Never ask them to type a name or a path.
- **Never work around a refusal.** Every `steery` error says how to fix it. Fix that.
- **File what goes wrong, at the moment it goes wrong.** File these:
  1. A `steery` command that fails in a way its message did not predict.
  2. A step that stuck.
  3. An exit code that does not agree with this page.

  Run `steery bugs put` at that moment, before the fix and before the next step. Run it
  whether or not you get past the problem. Put the command, its exit code and its output in
  `context`. Replace secrets with `[redacted]`. Then continue. The command works from the
  first step, before setup has run: it signs the person in if necessary. Nobody hears
  about a bug that you planned to file at the end.
- **Every step, every time.** A machine that already has Steery goes through the same
  page. The current binary replaces the old one, the person chooses the harnesses
  again, and setup checks all of it. Setup skips the sign-in: the machine already has
  its key and proved that path when it got the key. So a re-run costs the person one
  tap. At the end, you still tell them what is set up.

The whole installation takes two or three minutes when you do not stop.


## 1. Install the binary

macOS and Linux.

```sh
curl -fsSL https://steery.dev/install.sh | sh -s -- --install-only
steery --version
```

Run this **even if `steery` is already installed**. Do not compare versions first. The
script installs the published build every time and replaces the installed one. So the
machine has the current build before anything else happens. The script checks the SHA-256
first and never uses `sudo`. It puts `steery` in its own folder under
`~/.local/bin/.steery/` and runs it (`steery --version`). Only then does it move
`~/.local/bin/steery`, a link into that folder, onto the new binary. A failed download, or
a binary that does not run here, leaves the installed binary as it was. When the system
said why a binary does not run, the script says it too. The cause can be a C library too
old for it, or no C library, as on Alpine.

Then the script adds the programs through which Steery reaches harnesses and machines:
the drivers and the adapters. It adds them from their sources with `steery programs add
--yes`. With no source given, this command adds Steery's own (https://github.com/steery-dev/drivers and
https://github.com/steery-dev/adapters). For each program, it:

1. downloads the build for this computer,
2. checks its SHA-256,
3. starts it once to check it,
4. records it under `~/.config/steery/programs/`.

`--install-only` stops after that. You do the rest of this page.

**If it exits `1` after the binary went in, the programs were not added.** The script
names each source that it cannot add, with the cause. Usually the cause is that GitHub's
release downloads cannot be reached. The script still tries the other source. The run
ends with exit `1`, names the source and prints no `next:` line. Fix the network and run
the same command again. Or add the programs with `steery programs add --yes` (by the full
path below). Do not go on to `steery setup` without them. When setup finds them missing,
it tries Steery's own two sources once more. But it only says what it could not add. Then
it stops at the first step that needs a driver, `no driver for it here`.

If `steery --version` fails, `~/.local/bin` is not on `PATH`. The script says so on stderr
(`… is not on your PATH`). Its last line on stdout, `next: <full path> setup`, names
the binary. Use that full path in place of `steery` for the rest of this page. Add
the directory to the person's shell profile (`~/.zshrc` or `~/.bashrc`) yourself.

## Where the work runs

Every machine in Steery is one kind of thing:

- It joins Steery the same way.
- It is **Personal** (its person's) or **Shared** (a workspace's).
- You switch between the two on steery.dev's **Machines** page, for every machine, this one too.

Machines differ in what runs their work. `steery setup --adapter <id>` sets that:

- **This computer** (`--adapter local`, the default): agents run here, in the harnesses
  you set up below. Nearly every installation is this kind.
- **An adapter's hosts** (`--adapter daytona`, `--adapter opensandbox`, `--adapter boat`, or any adapter
  added with `steery programs add` that makes hosts): this computer only joins the
  machine to Steery. Every session runs in its own host, which the adapter makes at the
  provider. No agent runs on this computer. Setup writes nothing into its harnesses, and
  the runtime starts no turn here. The harnesses are set up inside each host, so `--harness`,
  `--install` and step 2 do not apply.

If your person has not said, ask them, as options:
"Should agents run on this computer, or in Daytona, OpenSandbox or Boat hosts?"
Without `--adapter` at a terminal, setup asks the same question itself. You run setup with
no terminal, so you ask it. A machine that was set up before keeps its choice unless
`--adapter` names another.

Each adapter has its own settings. It declares them in its `initialize`. Give each one with
`--setting NAME=VALUE`, or with `--setting NAME`, which takes the value from your environment.
**Give a secret as `--setting NAME` with the variable exported**, never as `NAME=VALUE`.
Then the secret is in no command line, no transcript and no log. Before setup keeps
anything, it checks the settings with the provider: it lists the hosts labelled with this
machine's key. A refusal is exit `4` with the provider's own line, which never holds the
secret. Setup keeps the settings at 0600 in `~/.config/steery/machine.json` and never
prints them again.

`--source image:<ref>` or `--source snapshot:<name>` sets what each host is made from. It is
an image or snapshot that your person prepared, with their harness in it, set up as they
want it. Without `--source`, the adapter uses its own default, where it has one. Then the
first set-up of each host installs each missing harness whose driver names an installer.

Each adapter's settings, its default source and its provider's limits are in its section of
the [adapters README](https://github.com/steery-dev/adapters#daytona): `daytona`,
`opensandbox` and `boat`. Read the section of the adapter that your person picked.

Below are the full commands, which ask nothing. The sign-in of step 3
is the same for every one of them. Follow that step with these flags.

**This computer:**

```sh
curl -fsSL https://steery.dev/install.sh | sh -s -- --install-only
steery setup --adapter local --harness <ids> --browser --wait-secs 900
```

**This computer, with the work in an adapter's hosts**, here Daytona's. Give each setting
that its README section marks required, and each secret from your environment:

```sh
curl -fsSL https://steery.dev/install.sh | sh -s -- --install-only
export DAYTONA_API_KEY=…   # from your person, never echoed back
steery setup --adapter daytona --setting DAYTONA_API_KEY --browser --wait-secs 900
# optional: more --setting NAME=VALUE from its README section, and --source snapshot:<name>
```

When the hosts of a machine run no harness, the machine says why for each host. Then
Steery gives its person a session that builds the source that the hosts need.

`install.sh` takes the same `--adapter`, `--setting` and `--source` and gives them to
setup. This is for a person who runs it at a terminal, or a script that runs it whole.

**Daytona's, OpenSandbox's or Boat's cloud, with no computer at all.** Your person adds that
machine on steery.dev's **Machines** page:

1. **Add machine**.
2. *Daytona cloud*, *OpenSandbox cloud* or *Boat cloud*.
3. The settings.
4. A name.
5. Personal or Shared.

Steery's server runs the machine. It keeps its settings sealed and never gives them to a
computer. Nothing is installed, and this page does not apply. When your person wants that,
tell them so, and stop here.



## 2. Detect the harnesses and ask which to set up

```sh
steery setup --detect
```

This command prints `{custody, harnesses, places, signers, this}` as JSON and writes
nothing. The harnesses are those that this machine's drivers plan for. Each harness reports
`harness`, `label`, `short`, `tint`, `mark`, `binary`, `version`, `root`, `notes`,
`refusal`, `usable`, `configured`, `on` and `install`. `custody` reports `availability`,
`backend`, `reason` and `file_consent_required`. `signers` is `null` until this machine
holds a sign-in.

Show the usable harnesses. Beside them, show each harness that is not installed here and
has `install` set. `install.about` is its vendor's own installer, with the exact command
that it runs (`install.argv`). With no harness at all, setup still enrolls the machine.
You can attach harnesses later.

**A harness older than its driver supports is not usable.** Each driver reads its
harness's version and says the oldest version that it works with. An older harness reports
`usable: false`. Its `refusal` is the line to say to your person: it names the version that
the harness needs and how to update it. Setup writes nothing for that harness. A run that
names it (`steery setup --harness <id> …`) fails with that line. A run that names no
harness prints the line as a note and sets up the rest. Update the harness and run setup
again to set it up. When a version did not answer, the driver claims nothing and never
refuses the harness for its version. On a machine already set up, an older harness reads
Missing on every surface, with the same line, until it is updated.

When hardware custody is unavailable, ask for explicit consent before you add
`--custody file`. A recorded file-custody choice needs no second consent.

Now ask your person — **always, including on a machine that is set up already**:

1. Show every usable harness as an option.
2. Pre-select the `configured` ones and the one that you are.
3. Say which one you are: your person most wants Steery in the harness that runs this installation.
4. Show each installable harness too, not pre-selected. Say that its vendor's installer
   installs it first, and give the command that the installer runs.
5. Use your choice UI if you have one. Otherwise, use a numbered list.
6. Name each harness by its `label`.

Example: detect found three usable harnesses, the first one runs you, and one harness is
installable:

> Steery can be set up in these: **<label>** (that's me), **<label>**, **<label>**.
> **<label>** isn't installed: I can install it with its vendor's own installer, which runs
> `<install.argv, exactly as detect printed it>`. All of them? Or pick.

Ask for one answer. Do not ask anything else about harnesses. Setup sets up exactly the
harnesses that they choose. Setup gives back a harness that was set up before and is not
chosen now. Each chosen harness receives its MCP entry, canonical skill and supported
hooks. A pick of a harness that is not installed is the person's yes to its installer.
Only then, pass `--install` below.

## 3. Sign in and set up — one command that waits

```sh
steery setup --harness <ids> --browser --wait-secs 900
```

`<ids>` is the `harness` of each harness the person chose, as detect printed it, separated by commas.
With these flags, one command does the work of a polling loop:

- `--install` installs each chosen harness that is not on this machine. It uses the vendor's
  own installer before all other steps, and keeps the output in `~/.config/steery/logs/install-<harness>.log`.
  Give it only when the person chose a harness that is not installed. Without it, setup refuses
  a named harness that is not installed, and names the installer it would run.

- `--browser` opens the sign-in page on the display of this machine. The tab then opens in
  front of the person, and the person only confirms. Give it on every machine except where no display
  is in front of the person (a server, a container, CI). There, give the person the link yourself.
- `--wait-secs 900` sets how long setup waits for the person to confirm the
  sign-in. Setup polls, so you do not poll.
  Fifteen minutes is the correct time for a person who is at the machine. Without the flag,
  and with nobody at this terminal, setup also waits 900 seconds. `--wait-secs 0` gives
  each step back to you immediately.

Setup does these steps in this order:

1. It puts the reader key of this machine in the chosen custody.
2. It signs the person in.
3. It creates the key of this machine.
4. It writes into each chosen harness, and removes Steery from each harness not chosen.
5. It starts the runtime.
6. It checks all of it.

Setup writes nothing into a harness before this machine can answer on the address it writes.
Thus, when setup stops at the step of the person, each harness stays exactly as it was.

The driver of a harness plans what goes into it (`setup/plan`). Steery writes
exactly that plan and records it:

- The **MCP entry**: the harness reaches Steery through it.
- The **skill**: it tells the agent of the harness what to do with Steery.
- **hooks** on the lifecycle events of the harness, where the harness has them.
- Steery's **plugin**, where the harness loads code.

With these, the phone of the person can show the state of each of their sessions.
A session works, waits on a call, asks them a question, or is finished. A harness can also need more
from the person. Examples are a step inside the harness before its hooks run, or
a file of their own in front of Steery's entry. The driver of the harness says this in its
`notes`. Detect prints each note, and setup prints it again as `<label>: <note>`. Tell each note to your person.

The plugin can do more than a hook table, and it draws nothing. Nothing of Steery shows
inside a harness, and your person answers on Steery's own surfaces. The plugin holds one door to the runtime: a
WebSocket to `ws://127.0.0.1:<port>/door` on the runtime's own loopback listener.

1. Through the door, the plugin tells what the session does, when it changes.
   It tells its moments, its current tool call, an open dialog, its model and its context left.
2. The runtime gives the plugin the words the person threw. The harness takes them as the
   next input of that person. When it is idle, the input is a new turn. While it works, the input is a steer between tool calls.
3. When the door is down (the runtime has not started yet, or restarts), the process of the harness keeps
   each moment in order. It sends the moments when the door is back. Steery places each moment at the time it happened.
4. The door accepts one release only. It refuses a copy of the plugin from another Steery.
   Within seconds, the session moves onto the copy that this runtime wrote.
5. A new session loads the plugin. A session that is already open moves onto a newer copy within
   seconds, and can use Steery's tools immediately.

Each hook runs `steery hook <harness> <event>`. A plugin tells the same moment through its
door instead. The hook writes one small file under
`~/.config/steery/` and tells what the session does. Some moments stop the harness to ask its own
person: a permission, a question, a plan. In a session that Steery started, the hook raises that
moment as a request. When an answer comes, the hook gives that answer to the harness in its own words.
Steery only tracks a session that you started:
its harness asks you itself, and Steery raises no request for it. In all other cases (for example, the
server does not answer, or no answer comes in time), the hook prints nothing and exits 0. The
harness then asks its person exactly as it would without
Steery: a hook never refuses a tool call by itself. `steery setup --disable --harness <id>`
removes the hooks and all other Steery parts. The person's own hooks on those
events stay exactly where they were.

Exit `0` means that local setup is complete. Exit `2` means that the sign-in still needs the person.

**Say the one line that gets the click, then run it.** The command blocks, so tell the person
before it starts, not after:

> I'm opening a Steery sign-in page in your browser — confirm it there and I'll take it
> from there.

Then run the command and let it block. Do not narrate. Do not poll. Do not ask the person to tell you
when they finish: you will see it. When the fifteen minutes end, setup prints the
link and the code as JSON and exits `2`. Then show them to the person again and run
the same command:

```json
{"sign_in": {"url": "https://steery.dev/oauth/device?user_code=…", "code": "2SZD-9TJ4", "expires_at": 1789310085}}
```

The code is valid for 10 minutes. When you run setup again before the code expires, setup uses the same code.
After the code expires, setup starts a new one. Each attempt, also a resumed attempt, writes the same `sign_in` shape to
stderr before it waits. Setup never prints the secret polling credential. Setup uses the sign-in once, to create the key of this
machine. After that, the machine uses its own key, and the person does not sign in
for it again.

**No phone enrolled yet?** Setup does not wait for a phone. It finishes, and tells that the
person should install Steery on their iPhone or the Mac app. Tell the person this in one line:

> Steery needs your phone to answer: install the Steery app from
> https://testflight.apple.com/join/Px7xdt92 and sign in there.

### Anything else

Each other non-zero exit is an error, and its message tells the fix. Read the message, do the fix, and run
setup again. The common errors are at the bottom of this page.

## 4. What to tell them

Setup does not exit `0` before it checks its work. Before that exit, it does these checks:

1. It reads each harness file back and compares it with what it wrote.
2. It calls the local MCP service at the same URL that it wrote into
   those harnesses, and asks the service for its tools.
3. It asks the supervisor if `steery run` is running.

Setup prints the results under `Checked:`. When a check fails, setup exits `4`
and gives the reason. Fix it and run setup again. Setup stops there: it raises nothing on the
phone of the person.

Then tell your person, in a few lines, which harnesses are set up. Also tell them that the runtime
runs, and that the local MCP service answered. On a Mac,
tell them that Steery is now in their menu bar, and that the menu shows what waits.

**Tell them to start new sessions.** A harness reads its MCP entry when a session
starts. Thus each session that is already open in a harness you just set up does not have Steery yet.
This session can be one of them. Tell the person which harnesses, and tell them that the next
session in each harness will have Steery.

Open the installed skill and read it now: `skills/steery/SKILL.md` under your harness's own
directory. It tells how each session keeps its record on the phone of your
person from now on: its title, workstream, chapters and lines. Steery itself tells a session how to ask your
person, wait for the answer and park. It tells this only to a session that Steery's words
steer, when they steer it.

## The runtime

`steery run` is the resident process. It is the same binary. It does six things.

**Connects your agents to your person.** The local MCP service that your harnesses call runs
inside this process. It raises the requests of the agents. It returns the signed responses that the server
recorded, and it checks each signature there.

**Says what this machine is working on.** When the sessions that the runtime can see change, it sends them.
It also sends them at least every five
seconds, so your person sees them in the app. The driver of each harness lists the sessions and reads their transcripts
(`sessions/list`, `sessions/read`). The driver reads what each session does, its turns, calls and tokens, and what its person typed.
The runtime does not send a session that nothing touched for three days.

**Starts a turn only for a throw.** The server delivers a throw to this machine.
A throw is words for a session, or for a new session. The words come from your person in the app, or from a send that they set up.
The runtime checks the work of the throw with the server. Then it starts or continues
the turn through the driver of the harness. Nothing else here starts a turn or writes into a
session. Your person answers the questions that your agents raise, and the agent that
asked acts on the answer.

**Summarizes a session, if and only if your person says so.** The summary starts in one of two ways:

1. Your person taps **Share with others…** beside a session in the app.
2. An agent that Steery started runs `steery shares put`.

That puts a suggestion in a queue, and does nothing else. Then the runtime does these steps:

1. It finds the session on this machine.
2. It plans the read on the session's own harness, model and thinking level.
3. It raises an ordinary request that names the session, that reader and where a draft would go.
4. It waits.

The runtime reads no line of the transcript before the server holds the signed answer of your person
to that request. **Summarize and share** starts the summary.
**Don't read it** withdraws all of it.

The result is a redacted summary. Steery publishes it as a page, with one unlisted link on the
answer that let this machine write it. A deleted page ends the link. A revoke of the share
before then cancels a summary that is still in progress, and kills the summarizer. It also discards a
summary that finished a moment too late. The transcript itself never leaves this machine.

Steery marks an interrupted summary as failed (for example, the machine slept, or the runtime restarted).
Steery never runs it again by itself. Only your person can ask for it again.

The summarizer is the session's own harness. It reads only that one session.
It starts as its driver says, and the driver switches off all that it can switch off. It reads
on the model and thinking level that your person chose in the Share sheet. Without a choice, it uses the model and level
that the session uses now. The driver tells what the start leaves open, for example MCP servers that it
cannot cut off. The question that asks you names this, beside the
harness, model and thinking level. It is not a reason to refuse the share. Some harnesses cannot summarize
their sessions: a harness whose driver has no reader, or a harness that is turned off on this machine.
For them, `shares get` tells why. When the harness does not answer, the share fails and tells
so. Steery tries no other harness.

The runtime finds a harness where its driver looks for it, on the `PATH` that the driver started
with. When the runtime starts, and every 30 minutes after that, it asks your login shell for its `PATH` (`$SHELL -i -l`) in the
background. It never asks while a call waits. When the `PATH` changes, it starts
the driver again. Thus it finds a harness that you install in a place your login shell reaches,
and you do not run setup again. `steery install` writes the supervised unit with
the `PATH` of the shell where you ran it.

**Uses at most a share of this machine's CPU.** One limit applies to all that the runtime starts.
That is the agents that it continues, forks or starts, and the builds and tests that they run. The default limit is 70%
of the CPU that this machine gets. It counts only the cores that the runtime can use, and
each quota that a container, pod or slice sets above it. On Linux, the limit is a hard cap
(`CPUQuota` on its systemd slice).
The processes also yield to all other work of the machine.
On a Mac, launchd has no cap, so the processes only run at a lower priority. At a
terminal, setup asks for the share each time, beside the harnesses. It shows approximately how many
cores each choice gives. In all other places, the share stays the same. `--cpu <PERCENT>` on
`steery setup` or `steery install` sets the share without a question. Steery keeps it in
`~/.config/steery/runtime.json`. A service that runs work for each caller (for example, the docker
daemon) runs that work outside this limit.

**Shows what is waiting, in the Mac menu bar.** On a Mac with a desktop in front of it,
the same process puts a small menu in the menu bar.
The menu has Steery's own face, and shows:

- how many requests wait for an answer.
- how many sessions this machine can see.
- when the machine last reported.

Each count opens the items that it counts: the requests, and the
sessions grouped by the harness that runs them.
Each item goes to the dashboard page for exactly that item, already filtered to it. There is
no command for the menu, and there is nothing to launch: the menu is `steery run`, the one process that you already
started. Thus nothing extra must start, and nothing extra can stop. A machine with
no desktop (a server, a container, a session that you reached through ssh) runs the same runtime
without the menu. That is not a failure, and there is nothing to fix.

In the same menu, your person renames this machine and quits Steery.
You cannot run either one for them as a command.

**The machine's name** is the line at the top of the menu: the name that `steery setup` found
for this machine. When the person clicks it, a box opens with that name in it.
The text that they type replaces the name in all places where Steery shows this machine.
These are the dashboard, their phone, and each request that the machine raises. Only the name changes. The key of this machine
does not change, so nothing must be set up again. The menu shows the new name when the
server accepts it. The person can do the same
thing on the page of the machine in the dashboard. That is the only other way. There is no
command for it. Do not look for one, and do not rename the machine of the person for them.

**Quit Steery…** does more than stop this process, so it asks first and tells what it
does. Quitting also removes the launchd supervision, so Steery does not start again at
login. The local HTTP MCP service and the reports stop with it. Stdio
connections are separate processes that their harnesses start. When the person quits and then wants Steery again, they
open Steery from Applications, and it asks to install the service again. When they open it on a Mac
that has no service, it asks the same question. That install is the same as step 3.

Calls that the runtime already accepted get a limited time to finish. An agent that
waits on a question gets the current state of the question, which can still be open. The agent does not
wait for the person before Steery can quit. While the runtime stops, it accepts no new calls.
It does not keep a summary in progress, or another model process, running.

```sh
steery run                     # the foreground, when you want to watch it
steery uninstall               # stop the supervised one
steery install                 # put it back
steery install --cpu 50        # put it back, using at most half of this machine's CPU
steery setup ... --no-service  # set up without supervising, for a container that runs it
```

## Later

**A new phone.** The person installs the Steery app on the phone and signs in. The phone
enrols itself and answers from then on. Nothing on this machine changes.

**Another harness, or one fewer.** Do step 1 again, all the way through. The person picks
from the list, and Steery sets up what they pick. `steery setup --harness <ids> …`
names the same thing from the command line: exactly those harnesses, and Steery gives
back any other. With `--install`, Steery first installs a harness that is not installed,
with its vendor's installer.

**Undo.** `steery setup --disable --harness <id>` removes what Steery wrote into that
harness and restores what it replaced.

**Upgrade, check, or repair.** A supervised machine keeps itself on the published
build. It looks every five minutes and installs what is newer, the way step 1 does:

1. It puts a new `steery` beside the old one.
2. It runs the new one first.
3. Then it moves the one link, so a failed update leaves the old one running.
4. It rewrites each harness's MCP entry, skill and hooks for the binary it just installed.

Some programs come from a source that names its latest release (a repository, or a
manifest's URL). The machine brings each of them up to that release the same way, and
keeps its settings. `steery programs update` does it now. The machine gets the build
that its server gives. Each release serves its own `latest.json`, so a new build and its
server go live in one switch. The machine looks the moment its event stream comes back
onto that server. `steery version` says which build this is, which build the server gives,
and whether auto-update is on;
`steery version --auto off` stops it, and
`steery version --update` installs now without waiting. Each look also reads the server's
`runtime_minimum`. When it is newer than this binary, two things happen:

1. The server serves this machine nothing. Every surface reads it Missing, "Steery 6.0.6
   on Kasras-Air is older than this server needs: it is updating".
2. The machine installs the published build at once, whatever the auto-update setting.

Step 1 again does the same by hand. It installs the current build, and the person
picks the harnesses. Setup brings them up to that binary, restarts the runtime and checks
all of it. The old runtime stops accepting new calls. It finishes accepted request
waits with an immediate read of the same request. Those reads share a 30-second
deadline. Five seconds of it are for delivery, and the supervisor allows another five
for cleanup. The new runtime then starts at the same local address. An agent whose
question is still open can continue to wait on the same id. It must not raise another
copy. New calls are unavailable during that handover. A machine that was fine ends
the same way. It costs the person the one tap that picks the harnesses.

## A cloud machine

A Daytona, OpenSandbox or Boat machine in the provider's cloud needs no computer. A member
adds it on steery.dev's **Machines** page (**Add machine** → *Daytona cloud*, *OpenSandbox
cloud* or *Boat cloud*). Steery's server runs it and keeps its settings sealed there. Each
session runs in a host of its own:

1. Steery makes the host when the session starts.
2. The host stops when it has had no turn and no door for a while.
3. The host starts again when the session is used.

Steery puts these in a host: `steery`, its programs and each harness's MCP entry, skill
and hooks. So no Steery key is ever in a host. When a host is gone from the provider, the
session loses its backing. Steery then asks the person on the phone what to do with it. A
computer set up with `--adapter` (above) runs its hosts the same way.

A member can rename any machine, computer or cloud, make it shared or personal, or remove
it, on the same page. A member also changes a cloud machine's settings there.
Removing a cloud machine deletes its hosts at the provider.

The image or snapshot is yours, with your harness in it set up as you set it up. When there
is none, the adapter's default applies, as its section of the
[adapters README](https://github.com/steery-dev/adapters#daytona) says. Steery adds these to
each host, and nothing else:

- `steery`;
- the programs added on the computer or server that runs the machine;
- each harness's MCP entry, skill and hooks.

So no Steery key
is ever in a host. For each program, Steery takes the build that its source published for
the host's system and checks its SHA-256. Steery does not carry a program with no such
build, and its harness reads Missing in that host, "no build of <id> for <target>". When a
host has another set, the machine does these steps:

1. It streams this set into the host over the host's channel.
2. It runs it there (`steery --version`, `steery programs check`).
3. Only then does it move `~/.local/bin/steery` onto it.

Then the machine sets up each harness found in the host, once per set. Each harness points
at the host's own `steery host serve`. The machine carries the connections of
`steery host serve` home. The machine tries again when it cannot reach a provider.

## Commands

Built in: `login logout setup run mcp install uninstall version events programs host
help`.

`steery programs` lists the drivers and adapters added here (JSON). For each one, it shows
the id, kind, release, source, and whether it runs or why not. `steery programs add <source>…`
adds more from one of these sources:

- a GitHub repository (its latest release, followed from then on);
- `<repository>@<tag>` (that release);
- a release manifest's URL;
- a program archive's URL or path;
- a built program's path or a folder of them.

Steery never builds anything on this computer. For each program, Steery does these steps:

1. It downloads the program for this computer and checks its SHA-256.
2. It starts the program once and checks it (`steery programs test <command>` makes the same
   checks on a program you are writing).
3. It prints the program's plan.

At a terminal you answer `y` to add it, and `--yes` adds it
unattended. `--only <id>,…` takes some of a source's programs. You give a driver's settings,
for example an API key, with `--setting NAME=VALUE` or `--setting NAME` (from your
environment). You can also type a secret setting at the terminal. Steery keeps the settings and
starts the driver with them, so it never needs your shell's environment. You give an
adapter's settings to `steery setup --adapter` (above), or on the web where a member adds a cloud machine.
`steery programs remove <id>` takes one away, and `steery programs update` brings the
followed ones to their latest release. When a program changed on disk after you added it,
Steery does not start it until you add it again. Adding it again keeps its settings. `steery programs pack`
writes the release that a program's author publishes (https://github.com/steery-dev/sdk says
how to write one).

Everything else comes from the server: `steery <group> <verb> --field value`. A group with
no verb lists its verbs. A wrong flag prints the right ones. `--json '{…}'` gives the whole
input. Results are JSON on stdout. A field of bytes takes `@path`. The client reads the
file, so a screenshot never passes through a model's context. For example,
`steery blobs put --bytes @/tmp/after.png` prints the URL a request shows it at.

Exit codes: `0` done, `1` the person rejected, `2` still open — someone else's move, run it
again — `4` error.

The skill that setup installs (`skills/steery/SKILL.md`) tells how a session keeps its
record: its title, workstream, chapters and lines. Every install and every auto-update
rewrites the skill for the binary on disk. Steery tells only a Steery-started session how
to ask, build the form, read an answer, park and work beside other sessions. Its hook adds
a short brief once, at its first turn and at every fresh context after. `steery help <part>`
prints each part that the brief names. A Steery-started session asks
with the CLI: `steery cards put`, then it ends its turn. The answer arrives as
its next message. Steery only tracks a session that its person started. Your person's
escalation policies are the conditions under which a Steery-started session asks before it
acts. They are a list on the server, read with `steery workspaces get --fields policies`. When your
person asks you to change them, `steery workspaces put` `policies` keeps the whole text as a draft and
raises a request for its approval. The text is not in force until they approve
its `draft.card` on a signer.

## From an agent (MCP)

`steery run` serves the local HTTP MCP service. `steery mcp` serves the same tools over
stdin and stdout for a harness that starts its connection process. The runtime remains
responsible for session reports. Stdio ends when its input
closes; stdout contains only protocol messages. Every MCP lists the tools that keep a
session's record and nothing else. This is true of this machine's MCP and the hosted one:
`sessions_describe`, `sessions_tag`, `tags_list`, `tags_put`, `usage_get`,
`sessions_query`. Everything else is the `steery` CLI.

To share a session, use `steery shares put` and `steery shares get` and nothing
else. There is no local file to give anybody. `shares put` returns immediately with a
`status` and an `id`. `queued` means that Steery has not asked your person yet.
`shares get --wait` on that id answers with a `url`, its page's link, when Steery has published the
summary. A `failed` share carries the reason in `error`. A `revoked` one means they said no.

An agent publishes what it made (a report, a built folder, a PDF) with `steery pages put
--slug <slug> --title "<title>" --bytes @/abs/folder-or-file`. The client zips a folder here. Its
answer's `url` is the page's link, the same for every version. `steery pages get`, `list` and
`delete` read and end pages.

## From your own chat (Claude, ChatGPT)

A person's own door is `https://steery.dev/mcp/person`. Add it as a connector in Claude
or ChatGPT. It opens the Steery sign-in and lists four tools, the same for every person:

- `inbox_list`: your open requests, cut to what a chat reads.
- `throw`: say what you want. Steery picks the session and holds the words. It shows
  the landing and the closest choices beside it. Nothing is sent.
- `throw_submit`: send the shown landing, or one of its choices.
- `sessions_list`: your sessions.

It is a person's grant, not an agent's: no key, nothing in `keys list`, ended from Agents.
It answers no request. A policy can hold a request for your Go: a throw that a policy
asks about, work on a machine, anything signed. You read such a request in the chat. You
answer it on your phone alone, with your signer, which never leaves the phone. Steery refuses an agent
harness given this URL: agents use `/mcp`.

## Without the binary (the HTTP API directly)

If your agent calls `https://steery.dev/v1` directly, it reads the answer as the server
recorded it. The server checked the signature when it recorded it, and inside a workspace
its members trust the server ([WORKSPACES.md §0.1](specs/WORKSPACES.md)). Act on your own
copy of the request, not the one returned.

## Files

All files are in `~/.config/steery`, mode 0600:

- `key.json` (this machine's key);
- `bearer.json` (sign-in, 10 minutes);
- `pending.json` (a sign-in that waits to be confirmed);
- `custody.json` (where Steery keeps this machine's identity);
- `harnesses.json` (what Steery wrote);
- `raised/` (your copy of each request);
- `shares/` (this machine's own record of each summary it was asked for). Each record
  keeps the session, the harness, model and thinking level that read it, and the request
  that authorized it. It also keeps the draft until the server has it;
- `runners.json` (the harnesses in your order, which are off, the places a new session may
  start in, and whether it works in a worktree);
- `programs/` (each program's record, `<id>.json`, and its executable under `<id>/`);
- `logs/` (each program's standard error and each harness installer's output);
- `run.log`.

When the work runs in an adapter's hosts, there are also:

- `machine.json` (the adapter, its settings, the source that Steery makes its hosts from);
- `hosts.json` (the host of each session);
- `hosts/` (what Steery set up in each).

## If something goes wrong

Every error says how to fix it. None of them is a reason to work around Steery.

- **Steery itself is wrong** — a failed command, an answer that did not arrive,
  a stuck step, or an exit code this page did not predict. File it **then and there**.
  Use `steery bugs put --title "..." --body "..." --context '{...}'`. Put the command,
  its exit code and its output in `context`. Replace secrets, tokens, keys, file contents and
  anything the person wrote with `[redacted]`. The server refuses a report that still
  carries one. Filing needs no setup and works from the first step. Then fix what
  the error says and continue. Filing is never the end of the installation.
- **"this steery does not declare what … answers with"** — the server has an operation
  that this binary does not know. Nothing was sent. Install the
  current release with the procedure above. Keep the existing key.
- **"… belongs to you now"** — a harness file has something that Steery did not write. Show
  your person the file and the line. When they have moved it, run setup again.
- **"Nobody answered within … seconds"** — still open. Do something else. Do not retry.
- **Cannot reach Steery** — the call is refused. Nothing was authorized. Do not proceed.
- **"is not installed here"** — Steery found no executable, and its driver names no
  installer here. `steery setup --detect` shows what it found. Give the person the
  `usable` ones and those with `install`.
- **"its driver is not installed here"** or **"no adapter for this computer's
  processes"** — the programs were not added. Or Steery could not read a source when you
  added them. Run `steery programs add --yes`. It says what it could not read.
- **"changed since it was added"** — a program's file is not what Steery checked when you
  added it. Add it again from its source with `steery programs add <source>`.
- **"not installed here: … add --install"** — a harness that you named is not installed. Ask your
  person whether to install it with the installer named. On a yes, run again with
  `--install`.
- **"its installer exited …"** — the vendor's installer failed. Its whole output is in
  the log that the line names. Say what it said, and set up the rest.
- **"sign-in failed: expired_token"** — the 10 minutes ran out. Run the same
  `steery setup … --browser --wait-secs 900` again. It starts a fresh code and opens it.
- **The app's World is empty** — the runtime is not running. `run.log` in
  `~/.config/steery` says why. `steery run` in the foreground says the same to you and
  exits non-zero. A machine appears only after it has reported.
