Binding is a one-way pairing: a single Buttress server can only belong to one workspace at a time. Bound servers reject unauthenticated connections with WebSocket close code
1008.
Prerequisites
- The Buttress server is installed locally (see Installation)
- BRICKS CLI is installed
- You are signed in to your workspace:
bricks auth login <passcode>
Bind a server
Run the binding command from the same machine that runs the Buttress server. The CLI auto-detects the local server id and writes a smallstate.json that the server reads at startup.
What gets written
The state file lives at~/.bricks-cli/buttress/state.json by default. Override the directory with --state-dir <path>.
workspace.issuerPublicKeyis the Ed25519 public key for your workspace — the server uses it to verify every incoming access token.serverKeyPairis a per-server Ed25519 announce keypair generated locally on everybind. The public half is registered with the cloud (so launchers can verify signed UDP discovery packets) and the private half stays on disk; signed announcements are described in LAN auto-discovery.
bricks buttress bind mints a new announce keypair and rotates the registered public key. Any stale launcher cache pointing at the old key stops trusting the server until it picks up the new key from the cloud.
Inspect bindings
bricks buttress status prints the local state file alongside the workspace-side list of bound servers.
--json for machine-readable output:
{ "local": <state.json or null>, "remote": <[{ serverId, name, boundAt, lastSeenAt }, …]> }.
Unbind
Removing the binding clears the workspace’s record of the server and deletes the local state file.Issue a long-lived access token
Foundation launchers obtain short-lived tokens automatically through the BRICKS cloud. For headless callers — CI scripts, CTOR agents, ACP bridges — mint a long-lived access token once and reuse it.Authorization: Bearer <token> header or as ?access_token=<token> on the WebSocket URL.
Troubleshooting
Next steps
LAN auto-discovery
How Foundation devices locate bound servers on the LAN.
Use from Foundation
Configure offloading on individual LLM/STT bricks.