Skip to main content
Releases before 0.1.0 are prereleases. opc --version prints the protocol (opc.v1) and schema (computer-api.v1) it speaks.

Install

The script verifies the release’s checksum and installs to ~/.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:
From source (Rust 1.89 or later):

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

For opc [message], opc -p and, where they apply, opc new and opc send. Global options: --timing, --no-color, -q/--quiet, -v/--verbose.

Exit codes