Secure your fleet
Read this before you connect a second machine, and before you connect any machine that other people can reach, such as a VPS.
What a token can do today
Every access token you mint is a full credential for your account. Tokens can’t be scoped yet. Anyone holding any one of your tokens can, on every agent of yours that is online:
- start sessions and send prompts, in a directory of their choosing;
- approve or deny tool calls, recorded as if you had decided them;
- read every mirrored transcript and every vault document;
- write vault documents, which sync to disk on each of your machines.
Row-level security keeps other users out of your data. It does not limit what your own tokens can do to your own agents. So a token stolen from one machine reaches your whole fleet. The three habits below limit what a stolen token can reach, and how fast you can cut it off.
1. One token per machine
Mint a separate token for each agent under Settings → Access tokens and name it after the machine. If a machine is lost or compromised, revoke its token there. That agent’s next exchange is refused, and the short-lived JWT it already holds expires within five minutes. Your other machines stay connected.
Don’t copy one token to several machines. If it leaks, you can’t tell which machine leaked it, and revoking it disconnects every machine at once. It also undoes the one surface already bound to a single token: a machine’s remote terminal is reachable only from your browser and from the token that machine connected with. With a shared token, every machine that holds it can join the terminal channels of all the others.
2. Keep the risky surfaces off unless you use them
These supabaseBridge settings decide what the web, and therefore any of your
tokens, can do on that machine. Turn each one on only on machines where you
actually use it, and leave it off on exposed hosts:
extensions:
supabaseBridge:
terminalEnabled: false # default: no remote shell from the web
fsBrowserWritable: false # default: the file browser can't write files
fsBrowserRoots: [~/projects] # what the file browser can read (default: where the daemon was started, often your home)
# syncDocuments: false # a host that doesn't need the vault stays out of itterminalEnabledgives the web an interactive shell on the machine. That is remote code execution by design.fsBrowserWritablelets the web write files anywhere underfsBrowserRoots. Keep the roots narrow even when writes are off: they decide what the file browser can read.syncDocumentssyncs the document vault both ways. Vault documents can carry project instructions and launch templates that become part of an agent’s prompt, and a document written from anywhere in your account lands on every machine that syncs.
The fleet tools a profile hands its sessions (sessionTools, sessionSend,
spawnSession) are off by default too. Turn them on per profile, not
everywhere:
profiles:
ops:
extensions: [approval, { supabaseBridge: { sessionTools: true } }]3. No secrets inline in config
Agents read files on the machine they run on. When an agent prints the config
or an .env file, the values go into the transcript. Transcripts are mirrored
to your Supabase project, kept in plain text, and readable with any of your
tokens.
Reference secrets by environment variable instead:
extensions:
supabaseBridge:
pat: env:BOTBANDIT_PAT
telegram:
token: env:BOTBANDIT_TELEGRAM_TOKENThe daemon resolves env: values from its own environment: the shell you
started it from, or your supervisor’s (systemd, launchd) environment. Provider
API keys take the same form, see
secrets in config values.
env: keeps secrets out of the file agents read most often. It doesn’t hide
them from an agent that has a shell, which can still print its environment.
Don’t paste secrets into prompts either. If a secret ever shows up in a
transcript, treat it as leaked and rotate it.