Documentation
¶
Overview ¶
Command bma is the BMA command line (ADR-0102): one static binary that is both the API client and the BYO executor.
API: `bma login`, then a command per operation of the public API, generated from the OpenAPI document (`bma sessions list`, `bma machines get <id>`, ...), plus `bma sessions events stream`, `bma sessions send`, `bma files upload|download`, `bma skills push`, `bma sessions launch -f` (a session from a YAML file), `bma sessions chat|wait|interrupt`, `bma agents apply -f`. Every command takes --json / --format json|jsonl|yaml|table and --query <jq>.
BYO executor: `bma up` signs this computer in through the dashboard (device authorization, no token is copied), prepares the coding harnesses the owner enables (pinned releases, verified), checks the owner's own harness login, and installs a user service that runs the executor (`bma run`); `bma status`, `bma harness`, `bma disconnect`, `bma upgrade`, `bma uninstall`.
Files: ~/.config/bma/config.yaml (CLI profiles, no secrets), the CLI credentials in the login keychain (macOS) or ~/.config/bma/credentials.json (0600); ~/.bma/config.json (the executor, no secrets), ~/.bma/state.json (written by the service), ~/.bma/harnesses/<id>/<version>/; the machine token in the login keychain (macOS) or ~/.config/bma/machine-token (0600).
Exit codes: 0 success, 1 other failure, 2 usage, 3 not authenticated or not permitted (401/403), 4 not found (404), 5 conflict or precondition (409/412), 6 rate limited, server error or network after retries, 7 the followed turn waits for input (requires_action), 8 the turn failed or the session ended, 124 a --timeout passed, 130 interrupted.