Skip to content

Command line

The laborchestra command comes with the Python package (pip install laborchestra, or without installing: uvx --from laborchestra laborchestra ...).

usage: laborchestra mcp [-h] {serve,install} ...
positional arguments:
{serve,install}
serve a local MCP server (stdio) that forwards to LabOrchestra
install set up an AI client on this computer
options:
-h, --help show this help message and exit
usage: laborchestra mcp serve [-h] --url URL [--token TOKEN] [--ca-file CA_FILE]
options:
-h, --help show this help message and exit
--url URL the LabOrchestra server, e.g. https://lab-pc:5443
--token TOKEN an MCP token (or LABORCHESTRA_MCP_TOKEN)
--ca-file CA_FILE certificate of the lab's own CA (or LABORCHESTRA_CA_FILE)
usage: laborchestra mcp install [-h] --url URL [--token TOKEN]
[--client {claude-code,claude-desktop,all,project}]
[--bridge {python,uvx}] [--project PROJECT] [--claude CLAUDE]
[--desktop-config DESKTOP_CONFIG]
options:
-h, --help show this help message and exit
--url URL the LabOrchestra server, e.g. https://lab-pc:5443
--token TOKEN an MCP token (or LABORCHESTRA_MCP_TOKEN)
--client {claude-code,claude-desktop,all,project}
--bridge {python,uvx}
how Claude Desktop starts the bridge: with this Python, or through uvx
--project PROJECT folder for --client project (default: here)
--claude CLAUDE path of the claude program (default: found on the PATH)
--desktop-config DESKTOP_CONFIG
claude_desktop_config.json (default: where Claude Desktop keeps it)
usage: laborchestra new [-h] {plugin} ...
positional arguments:
{plugin}
plugin a project for a C# plugin (devices that run inside the server)
options:
-h, --help show this help message and exit
usage: laborchestra new plugin [-h] [--url URL] [--token TOKEN] name
positional arguments:
name its name, like a C# class: Camera
options:
-h, --help show this help message and exit
--url URL the server (default: the one on this computer)
--token TOKEN its passphrase (default: read from the server's data folder)
usage: laborchestra worker [-h] [--id ID] [--url URL] [--token TOKEN] [--config CONFIG]
[--describe] [--list-entry-points]
[target]
Run one LabOrchestra device in this process, connected to a server (for a device on another
computer: see the guide Remote workers).
positional arguments:
target path/to/device.py[:Class], module:Class, or entry:<name> (a device an
installed package offers)
options:
-h, --help show this help message and exit
--id ID device id (snake_case)
--url URL
--token TOKEN
--config CONFIG options as JSON
--describe print what the device offers (options, actions) and stop
--list-entry-points print the devices and widgets that installed packages offer, and stop
usage: laborchestra dev [-h] [--id ID] [--url URL] [--token TOKEN] [--setup-vscode] [target]
``laborchestra dev``: runs a device of the server **in this process**, so that it can be debugged and its errors are seen where it runs.
laborchestra dev devices/gauge.py run the device that this file is (also: --id <device> if several use it)
laborchestra dev --setup-vscode write a debug configuration for each Python device into .vscode/launch.json
The server's own worker of that device stops while this runs (a serial port cannot be opened twice) and starts again when it ends, also when
it is killed (the server watches this process). Its options, secrets and saved settings are the device's, and it shows in the dashboard as
"in editor". Only on the server's own computer. The device runs in the Python environment that the server makes for it; started with another
Python, this starts that one (a debugger that starts it there needs no such step: the VS Code configuration names that Python).
positional arguments:
target the device file (or entry:<name> of a package device)
options:
-h, --help show this help message and exit
--id ID the device, if several devices use the file
--url URL the server (default: the one on this computer)
--token TOKEN its passphrase (default: read from the server's data folder)
--setup-vscode write the debug configurations into .vscode/launch.json of the workspace
usage: laborchestra trust [-h] --url URL [--fingerprint FINGERPRINT] [--remove] [--python-only]
options:
-h, --help show this help message and exit
--url URL the server, e.g. https://lab-pc:5443
--fingerprint FINGERPRINT
SHA-256 fingerprint, as the LabOrchestra computer shows it
--remove stop trusting it
--python-only do not change the system's trust (browsers)