Installer reference
The installer is the install.sh script at the root of the teaport repository. It installs the engine, the models, the brain, and the systemd units on a Jetson Orin running JetPack 7.2 with CUDA 13, as the release manifest describes. The OpenClaw plugin is optional. The installer is idempotent: rerunning it repairs the existing installation.
For a first install, follow Install teaport. This page documents the installer itself.
Two ways to run the installer
Section titled “Two ways to run the installer”The one-line installer
Section titled “The one-line installer”To install teaport without a checkout, run:
bash <(curl -fsSL https://get.teaspoon.tech/teaport)That URL serves a bootstrap script. A piped script arrives as a single file, and the installer needs the whole repository, so the bootstrap clones the teaport repository in a temporary directory, runs install.sh from the clone, and removes the clone when the installer exits. What it clones is what the release keys signed:
- The bootstrap carries the release keys, the same lines as
manifest/allowed_signers. It downloads the channel’s release manifest and its signature, and checks them withssh-keygenagainst those keys. The manifest must name the channel. - From the checked manifest, it takes the repository, the release tag, and the commit (
brain.repo,brain.tag,brain.commit). The repository must beTeaspoon-AI/teaport, and the tag on the server and the clone must both be at that commit. - It runs the clone’s
install.shagainst the manifest it checked, with the signature next to it, so the installer checks it again.
When a check fails, the bootstrap stops and runs nothing it downloaded. All the checks come before it fetches the repository except two: that the fetched tag is at the commit, and that the checkout is. It needs git, curl, ssh-keygen (the openssh-client package), and python3; without one, it prints the apt-get command to run and stops. The bootstrap is signed too: Install teaport shows how to check it before you run it.
These environment variables apply only to the one-line form:
| Variable | Default | Purpose |
|---|---|---|
TEAPORT_CHANNEL |
stable |
The release channel to install, stable or beta. |
TEAPORT_MANIFEST_URL |
https://get.teaspoon.tech/manifest/CHANNEL.json |
Where the bootstrap reads the manifest and its .sig: a URL, a file:// URL, or a path, such as a local mirror. The bootstrap checks it all the same. |
TEAPORT_REPO |
https://github.com/ followed by the manifest’s brain.repo |
The Git URL to clone, such as a mirror. The clone must still be at the manifest’s commit. |
TEAPORT_REF |
None | For development only: install this branch or tag as the server has it, with no release signature checked. The bootstrap prints a warning when it is set. |
Every other argument and environment variable passes through to install.sh unchanged:
bash <(curl -fsSL https://get.teaspoon.tech/teaport) --dry-runFrom a checkout
Section titled “From a checkout”Clone the repository and run the installer from the clone:
git clone https://github.com/Teaspoon-AI/teaport.gitcd teaport./install.shThe checkout is the source: the brain, the plugin, and the unit templates come from the tree the script runs in.
You do not need to be root. As a regular user, the installer runs each privileged command under sudo; as root, it runs the command directly. Either way, /opt/teaport and /var/lib/teaport belong to root, and the installer writes there only as root. When root runs it for another user, named in TEAPORT_USER, that user’s own part of the work, such as their secrets folder, runs as them. teaport update runs the installer this way.
Command-line flags
Section titled “Command-line flags”The parser exits with status 2 on an unknown argument, a missing value, --only together with --rollback, a TEAPORT_LICENSE_MODE other than off, warn or on, and a --license-file that isn’t there or that comes with --only brain or a rollback. The two component flags also take an equals form, for example --only=brain. The component of --only must be brain, engine or license, and the component of --rollback must be brain or engine.
| Flag | Argument | What it does |
|---|---|---|
| (none) | None | Installs or repairs everything: the engine, the models, the brain, the systemd units, and, when the install includes it, the OpenClaw plugin. |
--only |
brain |
Installs the teaport-brain package, the one the manifest names or the file in TEAPORT_BRAIN_DEB, renders the units that run brain code, restarts the brain unit, and puts the previous package back on its own if the brain does not come back. No EULA prompt, no system packages beyond the package’s own dependencies, no engine download, no env rewrite. |
--only |
engine |
Downloads the engine files that differ from the manifest beside the live ones and checks the models, keeps the live engine for a rollback, swaps the new files in, renders the engine unit, restarts the engine, and puts the previous engine back on its own if the engine does not come back. Adds only the keys engine.env lacks. No system packages, no brain build, no other unit. |
--only |
license |
Asks for or renews the engine license key of the installed engine, or installs the one that --license-file names. No manifest, no download, no restart: the engine reads a new key at its next connection. See The engine license key. |
--rollback |
brain |
Installs the newest other brain package kept in /var/cache/teaport, with the teaport command and root helpers that come in it, and keeps the package it replaces. |
--rollback |
engine |
Puts the newest kept engine back, with the unit it ran under, and keeps the engine it replaces. |
--dry-run |
None | Prints every action, privileged ones included, instead of running it. |
--accept-eula |
The license version | Accepts the engine license without the prompt. The version must be the one the license’s title names; a bare --accept-eula or another version stops the installer. See The engine’s license. |
--email |
Your email address | Who accepts the engine license. Without a terminal, --accept-eula needs it; on a terminal, the installer asks for it if you leave it out. --name is still accepted from older scripts and ignored. |
--license-id |
A license ID | Accepts the engine license for use under that Teaspoon AI license. Without it, the acceptance is for personal use. |
--license-file |
A license key file | Installs the engine license key that Teaspoon AI sent you, after the engine checks it on this device, in place of asking the license server for one. It goes with a full run, --only engine, or --only license. See The engine license key. |
-h, --help |
None | Prints the usage text from the header comment and exits. |
A full install writes every unit and env file and restarts the engine and the brain in one step. It has no automatic rollback, but --rollback brain and --rollback engine still work after it.
Environment variables
Section titled “Environment variables”The installer honors the overrides in this table; the default applies when the variable is unset. TEAPORT_CHANNEL, TEAPORT_REPO, and TEAPORT_REF belong to the one-line form alone.
| Variable | Default | Controls |
|---|---|---|
TEAPORT_MANIFEST_URL |
https://get.teaspoon.tech/manifest/stable.json |
The release manifest URL, or a local path. Its signature, the same name with .sig added, must verify; see the signed release manifest. |
TEAPORT_MANIFEST_UNSIGNED |
0 |
1 installs from a local manifest, an absolute path or a file:// URL, that has no signature next to it. It doesn’t apply to a URL, and a signature that is there is still checked. |
TEAPORT_PREFIX |
/opt/teaport |
The install root. The brain package installs only to /opt/teaport: an install of it with another value stops. |
TEAPORT_ETC |
/etc/teaport |
The directory for the non-secret env files. |
TEAPORT_BRAIN_DEB |
None | Install the brain from this teaport-brain package file instead of the one the manifest names. |
TEAPORT_PLUGIN_SRC |
None | Install the plugin from this local directory instead of npm. |
TEAPORT_ACCEPT_EULA |
None | The engine license version to accept without the prompt, as --accept-eula. |
TEAPORT_EMAIL, TEAPORT_LICENSE_ID |
None | Who accepts the engine license, as --email and --license-id. |
TEAPORT_LICENSE_FILE |
None | An engine license key file to install, as --license-file. |
TEAPORT_LICENSE_MODE |
None | off, warn, or on, exactly: written to engine.env as VOX_LICENSE_MODE, how strictly the engine checks its license key. Unset, engine.env keeps the value it has, and with none the engine uses its build default, warn. See The engine license key. |
TEAPORT_ALLOW_NON_JETSON |
0 |
1 skips the Jetson and L4T gate, for development and dry runs. |
TEAPORT_ENABLE_BRIDGE |
0 |
1 installs the Discord voice bridge and enables its unit. |
TEAPORT_BRIDGE_GUILD_ID, TEAPORT_BRIDGE_FOLLOW_USER_ID |
None | The bridge’s Discord guild and followed user. |
TEAPORT_BRIDGE_SRC |
None | Install the bridge from this local directory instead of cloning. |
TEAPORT_ENABLE_LOCAL_AUDIO |
0 |
1 enables the local microphone and speaker bridge, a USB mic array. |
TEAPORT_LOCAL_AUDIO_DEVICE |
hw:CARD=Array,DEV=0, the device in .env |
The ALSA device for the local audio bridge. |
TEAPORT_ALLOW_STALE_SOURCE |
0 |
1 installs from a checkout that is behind its upstream. The checkout supplies the units and rules; the brain is the package. |
TEAPORT_USER |
The user who runs the installer | Whose installation it is: the user the units run as. When root runs the installer for another user, that user’s part of the work runs as them. |
TEAPORT_WAIT_IDLE_SECS |
0 |
Before --only brain or --only engine restarts anything, wait up to this many seconds for nobody to be talking to the device, then stop with nothing changed. teaport update sets it. |
TEAPORT_NEWER_ONLY |
0 |
1 makes --only brain stop rather than install a brain package older than the installed one. teaport update sets it; going back is --rollback brain. |
TEAPORT_OPENCLAW_HEAP_MIB |
1536 |
The host OpenClaw gateway’s JS heap limit. |
TEAPORT_MEMORY_EMBED_MODEL |
baai/bge-m3 |
The OpenRouter embedding model that the installer gives the host OpenClaw’s memory search. See OpenClaw memory search. |
TEAPORT_HOST |
teaport.local; teaport-ab12.local when another device already answers to that name |
The front door’s name, a host name of lowercase ASCII letters, digits, hyphens, and dots. Capitals are lowercased. A re-run keeps the name an earlier run chose, unless another device answers to it or it is not a host name. |
TEAPORT_TLS_CERT, TEAPORT_TLS_KEY |
The certificate an earlier run was given, else none | Your own certificate and key for the front door, in place of the device’s own. Set both empty to go back to the device’s own. See Use your own certificate. |
TEAPORT_REGENERATE_CA |
0 |
1 replaces the device’s own certificate authority, on every run where it is set. See Replace the device’s certificate. |
OpenClaw memory search
Section titled “OpenClaw memory search”With OpenClaw on the device, the installer gives OpenClaw’s memory search an embedding model, so that the agent finds a memory from a question in other words or in another language, not only from the same words. The model is baai/bge-m3 on OpenRouter. The installer uses the OpenRouter account that OpenClaw already has, or else the one you gave for the language model. It sets the model only when OpenClaw’s memory search has no provider. A provider that you chose, including none for keyword search only, stays. When the installer set the model with the key that you gave for the language model, and you later replace that key, the next run of the installer gives memory search the new key and rebuilds the index with it. If you changed the key in that setting yourself, for example to an environment variable, the installer leaves it as it is.
The installer then rebuilds OpenClaw’s memory index. If the index cannot be built, for example because the key has no credit, the installer removes the setting again and memory search stays keyword-only. The next run of the installer tries again.
While OpenRouter is unreachable, OpenClaw’s memory search returns an error instead of results. The language model is unreachable at the same time when it also runs on OpenRouter.
The front door’s certificate
Section titled “The front door’s certificate”The front door serves the browser page and the pairing links over HTTPS. By default
the certificate comes from the device’s own certificate authority, which each phone
and laptop must trust one time. The authority is named for the device:
Teaport ab12 Local Authority, where ab12 is the end of the device’s Wi-Fi address.
A phone or laptop lists it with the year it was made, for example
Teaport ab12 Local Authority - 2026 ECC Root.
The certificate the front door serves under that authority lasts one year and is renewed after about eight months. The OpenClaw app remembers that exact certificate, so after each renewal it reports Gateway certificate changed: select Review certificate, then Trust certificate. The authority itself does not change, so nothing needs to be installed again.
Use your own certificate
Section titled “Use your own certificate”If you have a certificate for the front door’s name, from your own domain, a reverse proxy, or Tailscale, the installer can serve it instead. Phones and laptops then trust the front door without a step of their own, and the pairing pages leave that step out.
-
Put the certificate, with its full chain, and its key in PEM files on the device. The
caddyuser must be able to read both. -
Run the installer with the name and both paths:
Terminal window TEAPORT_HOST=teaport.example.com \TEAPORT_TLS_CERT=/etc/teaport/tls/fullchain.pem \TEAPORT_TLS_KEY=/etc/teaport/tls/key.pem \./install.sh
The installer stops before it installs anything if a path is not absolute, the key
does not belong to the certificate or has a passphrase, or the certificate does not
cover the name. It stops later, after it installs Caddy, if the caddy user cannot read
the files. It warns when the certificate expires within 7 days. The pairing link must
fit the QR code on the device’s screen: with a name longer than 36 characters, the
installer warns, and the device does not offer to pair a phone or laptop by voice.
A name that does not end in .local is not published over mDNS. Your DNS must resolve
it to the device.
A re-run keeps the certificate, so you set the variables one time. To go back to the
device’s own certificate, run the installer with both set and empty:
TEAPORT_TLS_CERT= TEAPORT_TLS_KEY= ./install.sh.
Renewal is up to you. Replace both files, then reload Caddy:
sudo systemctl reload caddy.serviceReplace the device’s certificate
Section titled “Replace the device’s certificate”The device keeps its certificate authority across re-runs, so the phones and laptops
that trust it keep working. To make a new one, under the device’s current name, run
the installer one time with TEAPORT_REGENERATE_CA=1; each run with it set makes
another new one. The installer keeps the old authority
and its certificates beside the new ones, with a .bak- and date suffix.
The engine license key
Section titled “The engine license key”The engine checks a license key at startup and again every 24 hours: /etc/teaport/license.json, a file that Teaspoon AI signs for this device’s ID. The device ID is what voxtral --device-id prints, a hash of the GPU’s ID and the Jetson module’s serial number. The key holds a license ID, its tier, the device ID, its dates, and a signature, and no personal data.
After the engine download, a full run and --only engine ask the license server for the key, before the engine restarts. The request carries IDs only: the acceptance ID from your acceptance of the engine license, or on a device that Teaspoon AI installs, its factory record, and the device ID. A device that already holds a key renews it with the key’s license ID. The installer runs brain/teaport_brain/license_key.py from its checkout as root for this, and it computes the device ID as the user that runs the engine, with the settings in engine.env. The server signs a personal key for one year when you accepted the license for personal use, and a key of the appliance tier on a device that Teaspoon AI installs. When it can’t sign keys yet or refuses one, the installer says why, with the licensing contact that the server names, and goes on: the engine runs without a key under its default, warn.
Before a new or renewed key goes in, the engine checks it on this device. A key that the engine refuses never replaces a key that it accepts: the device keeps its key, and teaport status and teaport doctor say so. When the device holds no key that the engine accepts, the new key goes in even if the engine can’t verify it yet. When the device ID reads differently but the engine still accepts the key that the device holds, the device keeps that key and asks for nothing. A license.json that is a symbolic link is a key installed by hand, and the device never replaces it.
A key that Teaspoon AI sends you by hand, such as a commercial license key, goes in with --license-file:
./install.sh --only license --license-file ~/TS-2026-0042.jsonThe installer copies the file next to license.json, has the engine check it as the user that runs the engine (voxtral --license-status --license-file), and moves it into place only if the engine says that it’s valid on this device. Otherwise it stops with the engine’s reason, and the key on the device doesn’t change. A full run and --only engine check the file before they change anything: with the installed engine, or, on a device without an engine that can check it, with the engine that the run downloads, right after the download. The device never replaces a commercial key, and never sends it anywhere.
| File | Owner and mode | What it is |
|---|---|---|
/etc/teaport/license.json |
root, the group of the user that runs the engine, 640 | The key, payload and signature and nothing else. |
/etc/teaport/license-link.secret |
root, 600 | On a Teaspoon AI device, the link secret that came with its key from the factory, which links the key to its owner. Only root can read it. |
/var/lib/teaport/license-key.json |
root, 600 | What the last request for the key got and, on a device that Teaspoon AI installs, which factory record’s link secret the device wrote, with the secret’s hash. |
/var/lib/teaport/license-key-status.json |
root, 644 | The same without the factory record, for teaport status and teaport doctor. No secret and no personal data. |
The installer writes each file whole: a new file next to it, created with its final mode, then renamed into place. The package never ships or owns them, so an update, a removal, or a purge of the package leaves them as they are. teaport-license-renew.timer renews the key every day, and so does every teaport update.
TEAPORT_LICENSE_MODE sets how strictly the engine checks the key, as VOX_LICENSE_MODE in engine.env:
| Value | Without a valid key |
|---|---|
warn |
The engine runs and says that it has no valid key. It’s the build default. |
on |
The engine refuses to start and exits with status 78, which teaport-engine.service doesn’t retry, and it refuses new sessions when its key stops being valid. |
off |
The engine doesn’t check the key. |
The engine reads any other value as on, so the installer writes only these three, and teaport doctor reports any other value in engine.env. A full run writes TEAPORT_LICENSE_MODE over the value in engine.env. --only engine adds it only when engine.env has no VOX_LICENSE_MODE, and --only license never writes it.
Files and directories
Section titled “Files and directories”A full install creates the paths in this section. TEAPORT_PREFIX, TEAPORT_ETC, TEAPORT_SECRETS_DIR, and TEAPORT_STATE relocate the install root, the env directory, the secrets directory, and the state directory.
/opt/teaport/
The install root. It holds the engine in bin/, the model directories models/voxtral/ and models/kokoro/, the bridge/ tree, and the brain’s Python environment in brain/. Root owns it and everything the installer keeps in it; the services read it as the user that runs them. The one exception is bridge/, the Discord bridge’s dependencies, which belongs to that user. A symbolic link or a separate mount at /opt/teaport or /var/lib/teaport is not supported: the installer stops and says so.
An older installer gave these files to the user that runs the brain. On such a device, the first run of this installer rebuilds /opt/teaport and /var/lib/teaport as root’s, next to the old ones, from what it can check, swaps them in, and removes the old ones:
- The engine binary, its notices, and every file in
bin/g2p/,bin/watermark/,models/voxtral/, andmodels/kokoro/come along when each is a regular file that belongs to that user, or is root’s, readable by everyone and writable by root alone, with no special permission bits or extended attributes (root’s come along unchanged), and is not a download in progress (a.partfile); the next engine update checks the ones the manifest names against it. - The brain package’s files come along when they match the checksums that dpkg recorded for the package. Of its symbolic links, only the Python environment’s own come along, each with the one target it has:
bin/pythonto the system’spython3,bin/python3andbin/python3.12topython, andlib64tolib. Nothing else inbrain/comes along. If something the package needs was left out, the nextinstall.sh --only brainputs it back, and until theninstall.sh --only engineand--rollback enginestop and say so, because the engine’s restart restarts the brain too. - The engine’s kept rollback copies don’t come along; the next engine update keeps a new one.
bridge/, and anything else of that user’s at the top of/opt/teaport, moves over as it is and stays theirs. Hidden entries there, whose names start with a dot, don’t move over; they go with the old tree.
/var/cache/teaport/
The brain packages the installer has installed, one teaport-brain_VERSION_ARCH.deb each. It keeps the newest three, plus the installed one, and removes the rest after an install. --rollback brain installs the newest other package in this directory.
/opt/teaport/engine.staged/ and engine.rollback/
A run downloads the engine files and models that differ from the manifest into engine.staged/, moves them into place after all of them verify, and then removes the directory. A download that is interrupted stays there, and the next run continues it. Before the run moves the files in, it keeps the engine they replace in engine.rollback/: its files, any model it replaces, the unit it ran under, and its manifest entry, in a numbered directory that also names the time and the release. --rollback engine puts the newest one back. The newest two stay on the device. engine.swapping exists only while a run moves files in or back; if a run stops there, the next run puts the kept engine back first.
/etc/teaport/
The non-secret configuration. The installer writes engine.env and brain.env here, group-readable with mode 640.
~/.config/teaport/
The secrets directory, created with mode 700. The installer seeds persona.md when it is absent and never overwrites it, and keeps the openclaw_token and discord_bot_token files at mode 600.
/var/lib/teaport/
Download space: release archives and the brain package the manifest names. It also holds engine.release, the engine release the installer last put live, which teaport update reads so that it never installs an older engine. The installer creates it, owned by root. The first run on a device that an older installer set up keeps only the record and text of the engine license you accepted, and the notes on the journal and network settings; downloads are fetched again.
The lock that keeps a second run of the installer from starting while one is running is /run/teaport-install.lock.
/var/lib/teaport-update/
The last teaport update run: run.json, its state, and log, its output. The teaport-update unit creates the directory; root owns it, and the files are readable by the group of the user that runs the brain.
/usr/local/lib/teaport/
Root-owned helpers that run outside the brain: the Wi-Fi setup helper and its captive DNS configuration. The brain package does not install anything here.
/usr/bin/teaport and /usr/lib/teaport/
The teaport-brain package installs the teaport command at /usr/bin/teaport, and the helpers that run as root in /usr/lib/teaport/: config_apply.py, which the configuration page runs through sudo; wifi_apply.py, through which Wi-Fi setup and the configuration page make every change to NetworkManager, and which takes only Wi-Fi requests; login_apply.py, through which the Wi-Fi setup page and the settings create the owner’s login, one time only, on a device that ships ready to set up; license_accept.py and license_link.py, through which they record the owner’s acceptance of the engine license and link it to the device’s license key, while setup is unfinished; update_apply.py, which the teaport-update unit runs to install a newer release; manifest_sig.py and allowed_signers, the check of a release manifest’s signature and the keys it accepts; license_key.py, which asks for and renews the engine license key as root, from its daily timer, and which no sudo rule names; and sudoers-sync, which writes the grants of the user that runs the brain: the sudo rules for the five sudo helpers, and the polkit rule /etc/polkit-1/rules.d/50-teaport-update.rules, which lets that user start teaport-update and nothing else. Where the Wi-Fi setup polkit rule is installed, it also rewrites that rule from the package’s copy, so that it lets the user scan for Wi-Fi networks and nothing else. The files are owned by root. The package also installs the licence texts of what it ships, with the third-party summary and where the source of the LGPL parts is, in /usr/share/doc/teaport-brain/. Open-source licenses lists them.
sudoers-sync writes one rule per helper into /etc/sudoers.d/teaport-config. Each rule lets the user that runs the brain run that one script as root, with the system Python, and nothing else:
USER ALL=(root) NOPASSWD: /usr/bin/python3 /usr/lib/teaport/config_apply.py *USER ALL=(root) NOPASSWD: /usr/bin/python3 /usr/lib/teaport/wifi_apply.py *USER ALL=(root) NOPASSWD:NOLOG_INPUT: /usr/bin/python3 /usr/lib/teaport/login_apply.py *USER ALL=(root) NOPASSWD:NOLOG_INPUT: /usr/bin/python3 /usr/lib/teaport/license_accept.py *USER ALL=(root) NOPASSWD: /usr/bin/python3 /usr/lib/teaport/license_link.py *Where the installed sudo is classic sudo, the login helper’s rule also says NOLOG_INPUT: what it reads is the owner’s new password, which sudo must not keep where its input logging is on. The license helper’s rule says it too, for the owner’s email address. With sudo-rs, which has no input logging and doesn’t accept the tag, both rules leave it out, for example USER ALL=(root) NOPASSWD: /usr/bin/python3 /usr/lib/teaport/login_apply.py *. The package runs sudoers-sync after every install and upgrade, and the installer runs it again after it renders the brain’s unit. Security model describes what each helper accepts.
The package also installs teaport-license-owner.timer, enabled by the package itself on every device. Two minutes after start-up, then every 15 minutes, it runs teaport-license-owner.service as root, which sends an owner’s acceptance that waited for the device to be online, then links it to the device’s license key. The service runs only on a device whose setup is unfinished, that has an acceptance waiting to be sent, or whose last link hasn’t been confirmed yet; on any other device it does nothing.
It also installs teaport-license-renew.timer, enabled the same way and started when the package is installed. Every day, and 20 minutes after start-up, it runs teaport-license-renew.service as root, which renews the engine license key, or asks for one when the device has none yet. See The engine license key.
The package also installs the user documentation, these pages as Markdown, in /usr/share/teaport/docs/, and docs-wiki-sync in /usr/lib/teaport/. With OpenClaw on the device, the installer turns on OpenClaw’s memory wiki and runs docs-wiki-sync, which writes one wiki page for each section of the documentation, so that the agent can look up how to set up or fix teaport. Each update of the package refreshes those pages, as the user that runs the brain. Your own wiki pages are not changed, and a plain memory search does not return the documentation.
/var/lib/teaport-owner/
The owner’s login marker, pending, and the setup marker for the engine license, license-pending, in a folder only root can open. Neither the installer nor the package creates them: the step that prepares a device for shipping writes them, login_apply.py removes pending when it creates the owner’s login, and license_link.py removes license-pending when the owner’s acceptance of the engine license is linked to the device’s license key, which finishes setup. A device that you install yourself never has it. It is outside /var/lib/teaport, so the installer’s rebuild of that folder, an update, a rollback, and removing the package all leave it alone.
Smaller system configuration lands outside these trees: a journald drop-in, a systemd-resolved drop-in, a sysctl drop-in (/etc/sysctl.d/60-teaport-multihome.conf) so that Ethernet and Wi-Fi on one subnet each answer ARP only for their own addresses, and the polkit rule that lets the user that runs the brain scan for Wi-Fi networks, and nothing else.
systemd units
Section titled “systemd units”The installer renders the templates in systemd/*.service.in into /etc/systemd/system/, as root-owned files with mode 644.
teaport-engine.service
The speech engine: Voxtral for speech-to-text and Kokoro for text-to-speech. Rendered on every install and enabled. It doesn’t restart a start that the engine refused for want of a valid license key, exit status 78.
teaport-brain.service
The voice pipeline. The brain serves Talk and the phone line’s front end. Rendered on every install and enabled.
teaport-sandbox-recover.service
NemoClaw sandbox recovery at boot. Rendered and enabled only when the install has a NemoClaw sandbox.
teaport-discord-bridge.service
The Discord voice bridge. It runs on the host, owns the media leg, and pipes audio to the brain’s /talk endpoint. The installer renders it when TEAPORT_ENABLE_BRIDGE=1 or a bot token is already present, and enables it; the unit starts only after the guild, followed user, and token are configured.
teaport-sip.service
The SIP front end for phone calls. Rendered on every run, never enabled by the installer: the unit carries a ConditionPathExists on the SIP configuration, and teaport sip configure is what registers a trunk and turns it on. A repair re-renders the unit and leaves its enabled state alone. The gateway binary itself comes from the separate teaport-sip repository. While it renders the SIP unit, the installer also removes a leftover teaport-sip-brain unit from older installs.
teaport-local-audio.service
The local microphone and speaker bridge for a USB mic array, piping audio to the brain’s /talk endpoint. Rendered on every install but inert until .env exists. TEAPORT_ENABLE_LOCAL_AUDIO=1 seeds that file and enables the unit; a repair without it leaves the enabled state alone, so a bridge the operator disabled stays off.
teaport-wifi-setup.service
The Wi-Fi setup flow: a temporary setup network and a page where a phone enters the password. The brain starts it when the user asks for setup. Rendered when NetworkManager and iptables are present; never enabled by the installer. It runs as the run user. Its changes to the Wi-Fi, such as the setup network and joining your network, go through wifi_apply.py under sudo.
teaport-wifi-setup-net.service
The root side of Wi-Fi setup: the rule that sends port 80 on the setup network to the page, and the captive DNS file. It starts before teaport-wifi-setup.service and stops after it, however that ends. It loads no settings file: the settings in /etc/teaport are written on the run user’s behalf, so no command that runs as root takes its environment from them. The brain package installs it in /usr/lib/systemd/system, and the installer also renders it into /etc/systemd/system.
Teaspoon AI appliances come with an OLED face; this installer does not install it, and leaves one that is already on the box alone.
The installer also enables avahi-daemon and caddy.