~/msb-manager$docs v0.14.0 github

Commands

msbctl --help and msbctl <command> --help are always current. This page explains them: each command's synopsis, what it does, and a table of its options.

Naming the sandbox#

  • name: optional. Inside a registered project folder it defaults to that folder's sandbox. Elsewhere, it's required.
  • name…: optional and repeatable. None, or ., means the current folder's sandbox; several names act on each in turn, and every failure is reported, not just the first.
  • name|.: required, because another argument follows it. . is the shorthand for the current folder's sandbox.

See Everyday use for the rules behind this. A name like sbx-01:webshop, in any of those places, is a sandbox on the remote called sbx-01.

Registering and inspecting#

msbctl add#

output
msbctl add [dir] [--remote HOST]
msbctl add --repo owner/name [--ref REF] [--name NAME] [--guest-path PATH]
[--workspace-disk SIZE] [--identity NAME] [--claude-token NAME] [--autostart] [-y]

Register a project with the setup wizard. Nothing is started. A bare dir resolves under your workspaces folder and is created if missing; a path starting with /, ~, ./ or ../ is taken as written. Without one it asks, defaulting to the current directory. It also asks where the project appears inside the sandbox: /work, the host's own path, or a custom one. See Get started.

With remotes configured and no folder given, it first asks where the sandbox should run: this machine or one of them. On a remote it asks for the repo and the sandbox's name, then runs the host's own add --repo over ssh for the rest, and offers to start it.

With --repo, there's no folder: the sandbox clones the GitHub repo into a disk volume inside itself, and its policy is the repo's own .msb/, fetched at the commit it resolves to now. It shows what the repo asks for (commit, rule groups, rules, secret bindings, image) and asks before registering. At a terminal it also asks for the sandbox's GitHub token, which a private repo needs. Without a terminal, anything not given takes its default. See Sandboxes without a folder.

OptionMeaning
--remote HOSTregister it on that remote instead of asking where; the rest of the arguments are run there
--repo OWNER/NAMEno folder: clone this GitHub repo (or URL) inside the sandbox
--ref REFwith --repo: a branch, tag or commit. Default: the default branch
--name NAMEwith --repo: the sandbox's name. Default: the repo's
--guest-path PATHwith --repo: where the clone appears. Default: /work
--workspace-disk SIZEwith --repo: the clone's volume size, such as 20G; fixed once created
--identity NAMEwith --repo: an [identities] name
--claude-token NAMEwith --repo: a stored Claude token's name
--autostartwith --repo: start it with the other autostart sandboxes
-y, --yeswith --repo: register without asking

msbctl ls#

output
msbctl ls [--refresh] [--porcelain | --picker | --json]

One line per sandbox: name, state, project, pending updates, autostart.

OptionMeaning
--refreshcheck upstream versions first, instead of using the cache
--porcelaintab-separated fields, for scripts
--pickerthe format msb-picker reads
--jsonone JSON document; see below

--json prints {"msbctl": version, "sandboxes": [...]}, each with name, state, source, location, repo, ref, autostart and updates. It lists this machine's sandboxes only, which is what a laptop asks a remote for. A Kandev sandbox's row also has kandev, its record. Another client's sandbox (msbctl managed) has source managed, client, its name, and record, its record, which names the client too.

With --json, ls, show, stop and purge print exactly one JSON document on stdout, everything else going to stderr, and exit 0. On failure they exit 3 with {"error": {"code": …, "message": …}}. The code is not_found for a name with no sandbox under it, else unavailable (or, under a client's key, denied and conflict). Under a client's key they see that client's sandboxes alone: any other name is not_found, and purge reports it absent, as it would a name with nothing under it.

msbctl status#

output
msbctl status [--quick]

One block per sandbox, as shown beside the menu: state, RAM and CPU, identity, image, folder. Then each remote's sandboxes, one line each, asked for as ls asks.

OptionMeaning
--quickskip reading figures from inside each guest, and show the remotes from what ls last cached, with no ssh

msbctl show#

output
msbctl show [name] [--json]

Everything about one sandbox: resources, disks, extra folders, installed versions, environment, every egress rule in the order it's emitted, published ports with their clickable URL, and the identity, keys and secrets bound to it. For a Kandev sandbox it's its record, with agentctl checked live.

OptionMeaning
--jsonthe essentials as one JSON document, with a port_urls map of each port to its URL and git_checkstat (null where it does not apply). For each secret it says whether a value is stored, never what it is

msbctl config#

output
msbctl config

The merged configuration (defaults.toml plus your config.toml), with where each value comes from.

msbctl doctor#

output
msbctl doctor [--json]

Checks that this machine can run sandboxes, one line per check, with the fix for anything that isn't right. It looks at /dev/kvm (and whether you can open it), msb and its version against the ones msbctl is tested on, and msb doctor's own verdict. It also covers git, fzf and a stored GH_TOKEN, free disk under msb's home, and the modes of the config and secrets directories. For the registry, it checks that each entry loads, that its project folder still exists, that an SSH agent is reachable when a sandbox may use a key, and that msb has no sandbox no entry names. Last come host check's hygiene heuristics. It never asks anything and changes nothing.

It exits 1 when a check failed (no KVM, no msb, under 2 GiB free, secrets nothing can read) and 0 otherwise, including with warnings, so a script can gate on it. A remote host's host serve allows it, and the Kandev plugin's key may run doctor --json: for that key the report covers the host and Kandev's own sandboxes only, and names none of the operator's.

OptionMeaning
--jsonprint {"checks": [{"id", "status", "message", "fix"}, …]} with status one of ok, warn or fail, plus ok, msbctl and restricted, and nothing else

msbctl entry#

output
msbctl entry [name]

Open the sandbox's registry entry (~/.config/msb/sandboxes/<name>.toml) in a terminal editor.

Lifecycle#

msbctl start#

output
msbctl start [name…]
msbctl start --autostart

Start a stopped sandbox, or create it if it doesn't exist yet. Creating runs the bootstrap, once.

OptionMeaning
--autostartwith no names: every sandbox whose registry entry says autostart = true and isn't running. The picker runs this when it opens, and so does the unit msbctl host autostart install writes

msbctl stop#

output
msbctl stop [name…] [--json]

Stop it. Everything is kept.

OptionMeaning
--jsonprint {"sandboxes": [...]}, what show --json says of each afterwards

msbctl rebuild#

output
msbctl rebuild [name…]

Destroy and recreate. Needed after changing anything fixed at create time: egress rules, mounts, the image, environment variables. Your files, the Claude state, package caches and container images survive; packages installed by hand don't. Doesn't ask first, unless the project's policy changed since it was approved.

msbctl purge#

output
msbctl purge [name…] [-y] [--json]

Destroy the sandbox and deregister it: the VM, its Claude state, its disk volumes, its secrets file and its registry entry. Your project folder is never touched. It lists exactly what it will delete and asks once per sandbox. Remember to revoke its GitHub token too. A name with nothing registered under it isn't an error: it says "nothing found" and succeeds, so purging twice is fine. A Kandev sandbox loses its VM and its entry; nothing else of msbctl's exists for one.

OptionMeaning
-y, --yesdon't ask
--jsonwith -y, since it can't ask: print {"purged": [...], "absent": [...]}

msbctl rename#

output
msbctl rename name|. new-name [-y]

Give a sandbox a new name. msb can't rename a VM, so this recreates it, like a rebuild; settings, secrets, Claude state, caches and container images all move with it. See Maintaining a sandbox.

OptionMeaning
-y, --yesdon't ask

msbctl move#

output
msbctl move name|. dir [--rebuild]

Point a sandbox at another project folder. dir is read as it is for add. Offers to copy .msb/ across if the new folder lacks it, and re-detects the GitHub repo. The folder is mounted at create time, so this needs a rebuild.

OptionMeaning
--rebuildrebuild now, so it takes effect

msbctl duplicate#

output
msbctl duplicate name|. new-name dir

Register a second sandbox on another folder, with the first one's host-side settings. It copies the registry entry (identity, SSH keys, tokens, extra folders, git push, version pins), the per-sandbox secrets, including keyring items, and the policy approval. It leaves the source sandbox, its VM, its disks and its folder as they are. dir must be an existing folder that no other sandbox uses, and it's read as it is for add. Nothing is written into it, not even .msb/: a checkout of a repo that commits .msb/ brings its own. Not copied: published ports, the agents' state, and the disk volumes. The duplicate gets fresh caches and container storage. repo is re-detected from the new folder. See Maintaining a sandbox.

msbctl resize#

output
msbctl resize [name] [--cpus N] [--memory SIZE] [--root-disk SIZE] [-y]

Change resources and keep the sandbox's state. With no options it asks.

OptionMeaning
--cpus Nneeds a restart, which it asks for
--memory SIZEsuch as 16G; a ceiling, not a reservation. Needs a restart
--root-disk SIZEgrows live; shrinking is refused
-y, --yesrestart without asking

msbctl reclaim#

output
msbctl reclaim [name…]

Give the guest's page cache back to the host. Harmless, and takes about a second.

Working inside#

msbctl shell#

output
msbctl shell [name] [msb exec flags…]

An interactive login shell, with the SSH agent wired up, starting in the subfolder of the project that matches your current directory (under /work, or wherever guest_path puts it). Starts a stopped sandbox; never creates one. Flags after the name go to msb exec as they are (see Passing flags to msb exec).

msbctl exec#

output
msbctl exec name|. [--] command…
msbctl exec [name|.] [msb exec flags…] -- command…
msbctl exec -- command…

Run one command in the sandbox, like shell but non-interactive. exec -- cmd is the short form for the current folder's sandbox.

Passing flags to msb exec#

shell and exec hand any flag they do not use themselves to msb exec unchanged, so everything msb exec --help lists works. Put the flags after the name, and for exec end them with --:

output
$ msbctl shell -u root                      # this folder's sandbox, as root
$ msbctl exec myproject --timeout 5m -- make test
$ msbctl exec -e DEBUG=1 --no-tty -- ./run.sh

-w/--workdir replaces the matching subfolder of the project, and for shell, --no-tty or --stream replaces the terminal it would otherwise allocate.

Changing a sandbox#

msbctl edit#

output
msbctl edit [name]

The setup wizard as a menu of sections, run one at a time against an existing sandbox: name and folder, features and agents, resources, package caches, container storage, extra folders, published ports, egress rules, SSH keys, git push, host editor (the core.checkStat fix), Claude token, models for pi, GitHub token, secrets, identity and autostart, or the files themselves in your editor. "View the CLAUDE.md it gets" shows the instructions its agent is given on the next start. Applies what it can immediately and offers one rebuild at the end for the rest.

msbctl allow#

output
msbctl allow name|. [target…] [--from-observe [--with-dns]] [--rebuild|--no-rebuild]

Add egress rules to the project's extra_rules, and approve that change. Each target is one of:

TargetAllows
hostHTTPS, :443
host:portthat TCP port
host:udp:portthat UDP port
[fd00::5]:22an IPv6 address, in brackets
allow@10.0.0.5:tcp:5432a full rule, as written
OptionMeaning
--from-observealso every host the observation log shows reached and no rule covers
--with-dnswith --from-observe: names seen only as a DNS lookup too, on 443
--rebuildrebuild now, so the rules take effect
--no-rebuilddon't rebuild, and don't ask

With neither --rebuild nor --no-rebuild, it asks on a terminal; off one, it never asks and doesn't rebuild. See Adding a host.

msbctl policy#

output
msbctl policy name|. [show|approve|update [REF]]

The project-layer values the policy pin covers.

ActionDoes
show (default)print them, whether they're the approved ones, and what changed since
approveshow the change and ask; needs a terminal
update [REF]for a sandbox without a folder: fetch the repo's .msb/ at the tip of its ref (or of REF, which becomes its ref), show what that commit changes, and swap it in once approved. A rebuild then applies it; the clone inside the sandbox isn't touched

msbctl observe#

output
msbctl observe name|. [report|on|off] [--rebuild] [-y] [--json]

Observe mode: stop blocking for a while and record where the sandbox goes.

ActionDoes
report (default)read the record back, and print the msbctl allow line for what no rule covers
onstop blocking and record every host the sandbox reaches; asks first
offrestore deny-by-default
OptionMeaning
--rebuildrebuild now, so on or off takes effect
-y, --yesturn it on without asking
--jsonthe report as one document: hosts, ports, coverage, secret blocks

msbctl mount#

output
msbctl mount name|. SRC[:DEST][:ro|rw] [--rw] [--rebuild]

Add an extra host folder. DEST defaults to /mnt/<folder name>. Needs a rebuild.

OptionMeaning
--rwread-write, the same as :rw. Default: read-only
--rebuildrebuild now, so it takes effect

msbctl port#

output
msbctl port name|. [PORT|HOST:GUEST|BIND:HOST:GUEST[/udp]…] [--rm PORT] [--restart|--rebuild]

Publish a host port to a server inside the sandbox, so http://localhost:PORT on this machine reaches it. A bare PORT is the same on both sides. With no ports given it lists them, each tcp port's host side a clickable hyperlink to its URL (on a terminal). No rebuild: an existing sandbox is changed with msb modify and keeps its state. A stopped one has the change when it next starts; a running one on its next start, or now with --restart (on a terminal, msbctl asks). See Reaching a server in the sandbox.

OptionMeaning
--rm PORTstop publishing this one; repeatable
--restartapply it now, restarting the sandbox if it is running
--rebuildrebuild instead, which applies every other pending create-time change too
--rebuildrebuild now, so it takes effect

msbctl secret#

output
msbctl secret add name|.
msbctl secret ls  name|.
msbctl secret rm  name|. VAR
msbctl secret set name|. VAR [--stdin] [--restart]
msbctl secret migrate --to keyring|file [--json]

Tokens the sandbox can use but never see.

ActionDoes
addbind a new variable: offers the presets, or takes your own binding
lslist the sandbox's extra bindings, and whether each has a value stored
rm VARunbind one; substitution stops at once
set VARstore a new value for a variable the sandbox already binds (GH_TOKEN, or one of its secret_binds), from a hidden prompt. A running sandbox that binds it already uses it at once, with no restart; a stopped one from its next start
migratemove every stored value, for every sandbox, into the desktop keyring or back into the files, and set [secrets] store to match
OptionMeaning
--stdinset: read the value from standard input; one trailing newline is dropped
--restartset: restart a running sandbox to apply it now. Needed only when the binding is new to it (its value was stored after it started); a new value for one it has is live without
--to keyring|filemigrate: where the values go
--jsonmigrate: print what moved as one JSON document, never a value

See Credentials & SSH, Scripting and the keyring.

msbctl keys#

output
msbctl keys [name] [--all]

Choose which keys from your SSH agent (and ~/.ssh) the sandbox can list and sign with. Takes effect immediately.

OptionMeaning
--allremove the restriction: every key

msbctl cache#

output
msbctl cache name|. [ls|clear] [key]

Show the package-cache disks (ls, the default), or empty one with clear key, or all of them with clear alone.

msbctl update#

output
msbctl update [name…] [-c component…]

Update components in place, without a rebuild. Versions installed this way are recorded so a rebuild reproduces them. Run msbctl ls --refresh first for npm, gh, gitleaks and bun.

OptionMeaning
-c, --componentsany of claude (the default), pi, npm, gh, gitleaks, bun, apt. pi also updates pi's packages, except a pinned one

The machine and msb-manager itself#

msbctl setup#

output
msbctl setup [--welcome]
msbctl setup --claude-token NAME [--stdin] [--default]
msbctl setup --identity KEY --git-name NAME --git-email EMAIL [--default]

Your machine-level settings as a menu: git identities, coding agents (the [defaults] agents a new sandbox gets ticked), Claude login, model endpoints (for pi), agent tools, your network, new-sandbox defaults, or the config file itself. The options skip the menu; they're how msbctl remote setup copies your settings to a host, and through a restricted key only --claude-token NAME --stdin is allowed.

OptionMeaning
--welcomethe first-time walk-through
--claude-token NAMEstore one Claude token under that name, from a hidden prompt. main is the default one
--stdinwith --claude-token: read it from standard input
--identity KEYadd or change a git identity, without a signing key
--git-name NAMEwith --identity: the name commits carry
--git-email EMAILwith --identity: the email commits carry
--defaultwith either: also make it the default for new sandboxes

msbctl self-update#

output
msbctl self-update [--version vX.Y.Z] [--json]

Upgrade a packaged install to the latest release, or a given one, verifying it the same way the installer does. In a git checkout it tells you to git pull. After a successful install it restarts the Kandev proxy's service if that is running an older release, which cuts its open connections.

OptionMeaning
--version VERSIONa specific release; 0.6.1 and v0.6.1 name the same one. Under host serve, with either key, it may not name a release older than the running one
--jsonprint {"msbctl_version", "updated", "proxy"} once installed, with the installer's output on stderr

msbctl completion#

output
msbctl completion bash|zsh|fish

Print a Tab-completion script for your shell. It completes the verbs, their flags and fixed choices (observe . on, secret migrate --to keyring), and the sandbox names, including HOST:name for each remote's sandboxes. After exec NAME (or past its --), the command is completed by your shell as if typed alone; in bash that takes the bash-completion package, else it offers command names and then files. Nothing is installed for you. Turn it on with one line:

terminal
$ echo 'source <(msbctl completion bash)' >> ~/.bashrc
$ echo 'source <(msbctl completion zsh)' >> ~/.zshrc      # after compinit
$ msbctl completion fish > ~/.config/fish/completions/msbctl.fish

The names are looked up at each Tab from the registry and from what msbctl ls last cached for each remote. A Tab never starts msb or ssh, so a remote shows up once ls has listed it. The verbs and flags are fixed in the script when it's printed. bash and zsh print it again at each new shell. A fish file is written once, so write it again after an upgrade.

Remote hosts#

msbctl host#

output
msbctl host serve [--kandev | --client NAME]
msbctl host authorize "PUBLIC KEY LINE" [--admin | --kandev | --client NAME] [--replace]
msbctl host check [--json]
msbctl host autostart install
msbctl host kandev install | reap | proxy | rotate-lease-key
msbctl host kandev configure [--[no-]enabled] [--serve MODE] [--proxy-listen IP]
[--base-url URL] [--allow-extra ENTRY …]
[--private-name HOST …] [--json]
msbctl host managed configure [--client NAME] [--[no-]enabled] [--serve MODE]
[--proxy-listen IP] [--base-url URL]
[--max-sandboxes N] [--max-cpus N] [--max-memory SIZE]
[--allow-extra ENTRY …] [--private-name HOST …]
[--name-prefix PREFIX] [--env-prefix PREFIX]
[--guest-port PORT …] [--[no-]require-callback]
[--[no-]allow-nested-virt]
[--body-secret-host HOST …] [--json]

For running this machine as a remote host. Under host serve, only check is allowed.

ActionDoes
servethe forced command a laptop's key runs: reads SSH_ORIGINAL_COMMAND, refuses anything outside its allowlist with exit status 126, and runs the rest with MSB_RESTRICTED=1
authorizeadd a key to ~/.ssh/authorized_keys with that forced command. A key that's already there is refused
checkdoctor's report under its older name, in its older JSON shape (check, ok, detail). It always exits 0
autostart installwrite and enable a systemd user unit that runs msbctl start --autostart at boot
kandev reapone pass of the reaper
kandev proxythe TLS proxy
kandev rotate-lease-keyreplace the key its tokens are signed with, honouring the old one for 15 minutes
kandev installwrite and enable a systemd user timer for the reaper and a service for the proxy, and restart the proxy
kandev configureset the [kandev] keys it is given in config.toml, keeping everything else, and only if the result is valid
managed configurethe same for the host-wide [managed] keys, or with --client NAME for that client's [clients.NAME]. A key the host keeps in [kandev] is set there. Refused, with the file unchanged, when the host's keys would no longer check out, or with --client when that client's own table would not (its name_prefix shared with another client's included), or its name_prefix is already the start of a sandbox it does not own, or a new name_prefix would leave the client's own sandboxes under the old one (purge them first). Another client's table that does not check out refuses nothing: it is listed as a problem
OptionMeaning
--adminauthorize: no forced command. Use a FIDO2 sk- key
--kandevauthorize, serve: the Kandev plugin's key. Its line runs host serve --kandev, which admits msbctl kandev verbs and ls, show, stop, purge and self-update with --json, seeing only Kandev's sandboxes. The everyday key runs no kandev verb
--client NAMEauthorize, serve: a client's key, for the client [clients.NAME] configures. Its line runs host serve --client NAME, which admits msbctl managed verbs for that client and ls, show, stop, purge and doctor with --json, seeing only its sandboxes; never self-update, kandev tls or kandev restart-proxy, which are the host's (managed tls install only for the client whose table sets tls = true). The client is the forced command's: a --client naming another in the command is refused. --client kandev is --kandev, and writes the same line. authorize warns when [clients.NAME] is missing, does not check out or is not enabled (the key would answer denied or invalid_config), and writes the line all the same
--replaceauthorize: rewrite the key's existing line instead of refusing
--jsoncheck, kandev configure, managed configure: one JSON document
--max-sandboxes N, --max-cpus N, --max-memory SIZEmanaged configure: the client's caps, or without --client the host's totals over every client
--name-prefix PREFIX, --env-prefix PREFIXmanaged configure --client: the client's sandbox-name prefix (like c-) and agentctl's variable prefix (like CI_)
--guest-port PORTmanaged configure --client: the guest ports a provision publishes when it names none, one per flag (1 to 4)
--require-callback, --no-require-callbackmanaged configure --client: whether a provision must name a callback
--allow-nested-virt, --no-allow-nested-virtmanaged configure --client: whether its provisions may ask for /dev/kvm (allow_nested_virt)
--tls, --no-tlsmanaged configure --client: whether its key installs the proxy's certificate (tls; one client at most, Kandev's while none is given it)
--llm NAMEmanaged configure --client: the whole llms list, one [llm.NAME] endpoint per flag, that its provisions may pick; '' alone empties it
--allow-upstream-ca, --no-allow-upstream-camanaged configure --client: whether its provisions may send a CA for one of their own hosts (allow_upstream_ca, on unless set false)
--log-level LEVELmanaged configure --client: msb's --log-level for the sandboxes it provisions from now on (log_level: error, warn, info, debug or trace); '' unsets it
--body-secret-host HOSTmanaged configure --client: the whole body_secret_hosts list, one host per flag; '' alone empties it
--enabled, --no-enabledkandev configure: [kandev] enabled
--serve MODEkandev configure: proxy, tailscale or none
--proxy-listen IPkandev configure: the address the proxy binds
--base-url URLkandev configure: https://host[:port]
--allow-extra ENTRYkandev configure: the whole allow_extra list, one entry per flag; '' alone empties it
--private-name HOSTkandev configure: the whole private_names list, one host per flag; '' alone empties it

msbctl kandev#

output
msbctl kandev health
msbctl kandev provision|agentctl|start ENV
msbctl kandev expiry ENV --at TIME
msbctl kandev lease ENV PORT
msbctl kandev tls install
msbctl kandev restart-proxy

What the Kandev plugin runs over ssh to keep Kandev's sandboxes on this host. Each prints one JSON document on stdout and exits 0, or 3 with {"error": {"code", "message"}}; secrets, the agentctl binary and its nonce, and the certificate and key for tls install come on stdin. Off until [kandev] enabled = true. Every verb is described on the Kandev hosts page. Only what needs Kandev's own input is here: the plugin lists, inspects, stops and removes Kandev's sandboxes with ls, show, stop and purge and --json, and the reaper and the TLS proxy are host kandev reap|proxy.

OptionMeaning
--at TIMEexpiry: the new expires_at, RFC 3339

msbctl managed#

output
msbctl managed health
msbctl managed provision|agentctl|start ENV
msbctl managed expiry ENV --at TIME
msbctl managed lease ENV PORT
msbctl managed … --client NAME

Protocol 2: the kandev verbs, for any client a [clients.NAME] table in config.toml configures, run over ssh through host serve --client NAME. The client is the key's; --client is needed only by the operator trying a client's verbs at the host, and under a key it may only repeat the key's own. The Kandev key may run these too, as Kandev.

What differs from protocol 1: health answers protocol 2, protocols, the client and its client_settings; a record names its client, and ls and show put it under record. A provision's callback (callback, or its protocol-1 name kandev_api) is optional unless the client sets require_callback: with none, no egress rule names it and nothing is pinned in the guest's /etc/hosts, which would stop secret substitution for that name (names on your LAN). A client's callback must be admitted by its allow_extra: by an address, CIDR or address:port entry covering its address (for a name, the one it resolves to on the host), or by a hostname pattern only if that address is public or the name is in the client's private_names; otherwise invalid_config. * admits any address given as one, private and reserved included; for a name it counts as a pattern. A name nothing could admit (no pattern or * matches it, and no IPv4 address, CIDR or address:port entry at its port) is refused without being looked up. Kandev's stays required and unchecked. guest_ports may name 1 to 4 guest ports to publish (Kandev's stay its four, so under the Kandev key any others are refused). agentctl's environment and nonce use the client's env_prefix, and its binary goes to /opt/NAME/agentctl. A secret may name the only headers it is filled in, and start of a running sandbox with its secrets hands msb the new values live. A provision may pick operator endpoints its table grants (llms) and send a CA for one of its own hosts (upstream_ca). tls install is the key's of the one client whose table sets tls = true (the proxy's certificate). restart-proxy and self-update are not here: they act for the whole host.

OptionMeaning
--at TIMEexpiry: the new expires_at, RFC 3339
--client NAMEwhich client; at the host only, or the key's own

msbctl remote#

output
msbctl remote add NAME user@host
msbctl remote setup NAME
msbctl remote ls
msbctl remote test NAME
msbctl remote rm NAME

The other machines this one drives; the menu's remote hosts does the same. Once one is added, NAME:sandbox addresses a sandbox there for every verb, and ls shows every host. See Remote hosts.

ActionDoes
addrecord [remotes.NAME] in config.toml. At a terminal it then runs setup; otherwise it prints the msbctl host authorize line to run there and tests the connection
setuplook at the host over ssh and offer, one question each, what's missing: msb and msbctl at this machine's versions, the kvm group, autostart, your git identities, Claude tokens (sent on stdin), and last restricting this machine's key to host serve (with a warning first when that key is the one with a shell there). Then it tests
lslist them
testrun the host's doctor (host check on a host whose msbctl predates it), show each check, and warn about a failed one, an unrestricted key or a version mismatch
rmforget it; the host isn't touched

Environment variables#

VariableEffect
MSB_CONFIG_DIRconfig directory (default ~/.config/msb)
MSB_STATE_DIRstate directory (default ~/.local/state/msb)
MSB_NO_AUTOSTART=1the picker doesn't start autostart sandboxes
MSB_MANAGER_SKIP_ATTEST=1installer and self-update: skip the provenance check
MSB_MANAGER_REPO, MSB_MANAGER_BASE_URLinstaller: another repository, or a mirror (file:// works; needs --version)