The easy way: bma up
With the bma command line, bma up signs the computer in through the dashboard, registers it as a machine, prepares your coding harnesses and installs a service that keeps it connected: no token to copy. The steps below are the manual path for your own executor.
Register the machine
token; store it now, it is not shown again.
Connect the executor
Run the executor on the machine with the token inBMA_MACHINE_TOKEN and the API origin as --executor-url (or BMAD_EXECUTOR_URL), for example https://api.beeos.ai:
The executor is
bma-executor; machine templates install it as bmad. To embed the hand in your own app instead, use bma-executor-sdk.
One executor per computer: a second connection with the same machine id replaces the first (close code 4004).
Use it
A BYO machine appears inGET /v1/machines with source_kind byo. Tools of a session run on it when the session’s environment points at it. Pause and resume, desktop and terminal work as for cloud machines (see Remote desktop & terminal). Machines that cannot mount the session files fill the same paths by copying files in; see Files & outputs.
Revoke access with POST /v1/machines/{machine_id}/executor_tokens/{token_id}/revoke, or remove the machine with DELETE /v1/machines/{machine_id}.
A session cannot mix cloud and BYO machines: it is rejected at creation (400).