opc --version prints the protocol (opc.v1) and schema (computer-api.v1) it speaks.
Install
~/.local/bin/opc, without sudo and without editing shell startup files. Run it again to update. Supported: macOS, Linux, and Windows under WSL 2.
The macOS builds are not signed. If macOS blocks the first run:
Authentication
opc stores the key in ~/.opencomputer/config.json (mode 0600) with the API URL it was issued for:
OPENCOMPUTER_API_KEY overrides the file (for scripts and CI). The key in the file is used only when the file’s apiUrl matches the API URL in use.
Endpoint configuration
opc uses HTTP for single reads and writes, and the WebSocket to follow a session live (the interactive screen, attach, watch, wait) and for shell.
Commands
A session argument is an id, a prefix of one,- for the last session used on this machine, or a Slack thread link.
Send options
Foropc [message], opc -p and, where they apply, opc new and opc send.
Global options:
--timing, --no-color, -q/--quiet, -v/--verbose.