Update teaport
The teaport update --check command compares the device with the release manifest and names the parts that differ; it changes nothing. teaport update installs a new brain, engine, or model by itself, through the installer’s narrower paths: install.sh --only brain installs the brain package alone, and install.sh --only engine updates the engine alone. You can run those yourself too. A change to anything else takes a full installer run. install.sh --rollback brain and install.sh --rollback engine put the previous one back.
Before you begin
Section titled “Before you begin”- An SSH connection to the device: every command on this page runs on it.
- A device with teaport installed.
teaport update --checkreads/opt/teaport/manifest.json, the manifest the installer wrote, and exits with an error if the file is missing.
Check for updates
Section titled “Check for updates”To see which parts of the installation differ from the release manifest:
-
Sign in to the device over SSH.
-
Run the check:
Terminal window teaport update --checkThe command fetches a fresh copy of the release manifest, compares it with the stored one, and prints a line for the version and for each tracked part: the engine release, the brain package, the plugin version, the OpenClaw version, and the model files.
->marks a part thatteaport updateinstalls;==marks one that matches;!=marks one that differs but isn’t offered, such as an older release, or a part only a fullinstall.shrun installs. The brain counts only when the release’s package is newer than the installed one. The check ends withup to date.when nothing differs, or says when the channel names an older release than the device has. Otherwise it ends with achanged:list, thenteaport update installs:with the parts the next section installs, andneeds a full install.sh run:with the rest. It changes nothing on the device.
Apply an update
Section titled “Apply an update”To install what the check found:
-
Run the command without
--check:Terminal window teaport update -
The command prints the same comparison. When the engine, the models, or the brain changed, it asks
Install it now?. Typey.
The update runs as the teaport-update service, and the command prints its output until it ends. The user that runs the brain can start that service without a password; anyone else is asked for an administrator’s password. To install without the question, for example from a script, run teaport update --yes.
The service fetches the installer of the release, at the release tag that the manifest names. It never runs an installer from a branch, or one from before teaport update existed. When the engine or the models changed, it runs install.sh --only engine; when the brain changed, it then runs install.sh --only brain. Each run downloads first. An update never goes back: when the channel you pick names an older brain or an older engine than the device has, teaport update installs nothing from it, and teaport update --check says so. To go back on purpose, use install.sh --rollback. Before it swaps in the new engine or brain, it waits until nobody is talking to the device: no phone call, no Talk session, and no conversation with the device’s microphone. After an hour of conversation, the run stops before the swap and keeps what it downloaded, so the next try is quick. Each run puts the previous engine or brain back by itself if the new one doesn’t come back healthy, as the next sections describe.
On a device that an older installer set up, the first run of this version’s installer rebuilds /opt/teaport and /var/lib/teaport as root’s, whether that run is an update or a manual install.sh; the installer reference says what that keeps. The kept engine rollback copies are not kept, and the next downloads start over.
If the engine’s license is newer than the one you accepted, the engine update stops and asks for a terminal. Run install.sh --only engine from the one-line install in a terminal, accept the license, and then run teaport update again.
The device updates from its own channel, TEAPORT_UPDATE_CHANNEL in /etc/teaport/brain.env. A change to the plugin or to the OpenClaw version needs a full installer run, described in Update everything.
To stop following the update, press Ctrl+C: the update goes on. To see how the last update went:
teaport update --statusThe command prints running, done, failed, or interrupted, for a run that a power cut stopped, with the step and the reason. The full output is in /var/lib/teaport-update/log and in journalctl -u teaport-update.
Update only the brain
Section titled “Update only the brain”The brain is a package, teaport-brain, that the project builds in CI. Nothing is built on the device. The package holds the brain’s Python environment (/opt/teaport/brain), the teaport command (/usr/bin/teaport), and the helpers that the configuration page, Wi-Fi setup, and the owner’s login run as root.
From a checkout of the teaport repository, update the source and install the package the release manifest names:
git pull && ./install.sh --only brainOn a device without a checkout, append the flag to the one-line install:
bash <(curl -fsSL https://get.teaspoon.tech/teaport) --only brainTo install a package file that you have, for example a build from a pull request, name it in TEAPORT_BRAIN_DEB:
TEAPORT_BRAIN_DEB=/path/to/teaport-brain_VERSION_arm64.deb ./install.sh --only brainThe run downloads the package and checks its sha256, keeps a copy in /var/cache/teaport, and installs it with apt-get. It renders the units that run brain code (teaport-brain, plus the audio bridge and the Wi-Fi setup when the device has them), restarts teaport-brain, and checks that the brain comes back. If the brain does not come back healthy, the run installs the package that was installed before and fails. If apt-get cannot install the package at all, for example because another package manager holds the lock for more than two minutes, the run stops with the device as it was and restarts nothing.
The teaport-brain unit waits for the brain to report that it is serving, so a restart fails when the new brain never gets ready. The swap restarts the local audio bridge with the brain when the teaport-local-audio service is active; the brain’s health alone decides whether the swap stays.
A Talk session in progress ends at the restart. A phone call stays connected at the gateway, and the brain rejoins it with a short notice that it lost the connection.
Nothing else changes: no engine download, no license prompt, no system packages beyond the package’s own dependencies, and no edit to /etc/teaport. A brain change that needs a new setting there ships in a full run instead.
On a device that still runs the retired teaport-sip-brain unit, the run stops that unit before the swap and removes it after; the SIP gateway keeps serving, and the new brain connects to it. The unit’s drop-in tuning moves into /etc/teaport/brain.env.
Update only the engine
Section titled “Update only the engine”To install a new engine release without a full run, run the installer with --only engine. From a checkout of the teaport repository:
git pull && ./install.sh --only engineOn a device without a checkout, append the flag to the one-line install:
bash <(curl -fsSL https://get.teaspoon.tech/teaport) --only engineThe engine comes from the release manifest, and the teaport-engine unit comes from the checkout. The run downloads only the files whose sha256 differs from the manifest, out of the engine’s binary, its pronunciation dictionary, its part-of-speech tagger, its Mandarin dictionary and its AI watermark weights (both from engine 1.7), THIRD_PARTY_NOTICES.txt, and its two models. It downloads them beside the live files, so the engine keeps serving, and checks them as a full run does. If a download is interrupted, the next run continues it where it stopped.
Then the run keeps a copy of the live engine for a rollback, moves the new files in, renders teaport-engine.service, and restarts the engine. The brain reconnects to it. The run checks that the engine listens on its port within three minutes, stays up, loaded its pronunciation dictionary, and, from engine 1.7, loaded its AI watermark. If the engine does not come back healthy, the run puts back the previous engine with its models and its unit, removes the keys it added to engine.env, and fails.
If the run stops while it moves the new files in, it puts the previous engine back. If a power cut stops it there, the next run of the installer does that first. The installer runs one at a time: a second run started while one is running stops right away with another install.sh is running on this box.
The engine takes about a minute to load its models after a restart, and a Talk session or a phone call in progress loses the engine. When the engine’s files, its unit, and engine.env are already current and the engine is running, the run checks the engine and doesn’t restart it.
/etc/teaport/engine.env gains only the keys it lacks. A value that is already in the file stays, so a KOKORO_RESERVE_FPT that you tuned survives the update. A full run writes the installer’s values over it.
The run asks you to accept the engine license only when its version differs from the one you accepted. It installs no system packages: it checks that espeak-ng, libopenblas.so.0, and libcudnn.so.9 are present, and stops when one is missing. Nothing else changes: no brain build and no other unit.
If a drop-in changes the engine’s unit, for example one that a manual deployment left in /run, the run names it and leaves it in place. Remove it if you don’t need it, and then run sudo systemctl daemon-reload.
Update everything
Section titled “Update everything”Run the installer with no component flag:
./install.shThe full run repeats the installation and downloads only the artifacts that differ. It installs the brain package the way the brain-only run does, and after every unit and env file is written, it restarts the engine and the brain in one step and checks that they come back. A full run has no automatic rollback; roll the brain or the engine back by hand afterward.
Roll back the brain
Section titled “Roll back the brain”To put the previous brain package back, run the rollback on its own:
-
On the device, run:
Terminal window ./install.sh --rollback brain
The run installs the newest other package kept in /var/cache/teaport, restarts the brain, and checks it comes back. The teaport command and the root helpers come with the package, so they go back together with the brain. The package that the run replaces stays kept, so running the rollback again undoes it.
The installer accepts two components, brain and engine, and --only and --rollback do not combine in one run.
The brain-only update rolls back on its own when the brain fails its health check. A full run does not; use the rollback by hand there.
Roll back the engine
Section titled “Roll back the engine”To put the previous engine back, run the rollback on its own:
-
On the device, run:
Terminal window ./install.sh --rollback engine
The run takes the newest engine kept in engine.rollback/ in the install root and makes it the live engine again, with the unit it ran under and any model it kept. It keeps the live engine there first, moves the kept files back, restarts the engine, and checks that it comes back. To undo the rollback, run it again.
The engine-only update rolls back on its own when the engine fails its check. A rollback doesn’t: if the engine doesn’t come back, the run stops and says so. A full run doesn’t roll back either; use the rollback by hand there.
Choose a release channel
Section titled “Choose a release channel”A channel is a manifest. The repository ships two: stable.json, the default, and beta.json, which has the same shape and placeholder values until the first beta release is cut.
Both the installer and teaport update --check read the URL or local path in TEAPORT_MANIFEST_URL, https://get.teaspoon.tech/manifest/stable.json by default. To follow the beta channel, name the beta manifest:
TEAPORT_MANIFEST_URL=https://get.teaspoon.tech/manifest/beta.json ./install.shThe installer takes its channel from that variable alone; teaport update passes the device’s channel to the installer it runs. teaport update --check also takes --channel stable or --channel beta for one run. The brain checks every day too: set TEAPORT_UPDATE_CHANNEL=beta in /etc/teaport/brain.env to make beta the channel it and the command look at, and TEAPORT_UPDATE_CHECK_SECS=0 to turn the daily check off. The brain sees TEAPORT_MANIFEST_URL only when it is in /etc/teaport/brain.env; exported in a shell, it changes the command and not the daily check.
Retained releases
Section titled “Retained releases”The installer keeps the newest three brain packages in /var/cache/teaport, plus the installed one, and removes the rest after each install. A rollback goes back to the newest other package in that directory.
A run that changes the engine’s files first keeps the engine they replace in engine.rollback/ in the install root: its files, the unit it ran under, its entry from the installed manifest, and any model the run replaces. Each copy is numbered, so the newest copy is the one with the highest number, whatever the device’s clock says. The installer keeps the newest two and removes the rest. A run that changes no engine file keeps nothing. A copy that holds a model takes that model’s disk space until the installer removes the copy; the speech-to-text model is about 4.4 GB.