oc CLI lets you manage OpenComputer sandboxes directly from your terminal — create sandboxes, run commands, open interactive shells, manage checkpoints, and more.
Installation
Sign in
oc login prints a short confirmation code and opens the hosted sign-in page.
Use oc login --no-browser over SSH or when a coding agent is running the
command for you. The CLI stores the resulting credential in
~/.oc/config.json with private file permissions; it never prints the key.
oc login authenticates the local CLI. CI, servers, and SDK applications
should continue to receive an explicit org key through their secret manager and
OPENCOMPUTER_API_KEY.
Credential resolution
An active
--api-key or OPENCOMPUTER_API_KEY override must be removed before
oc login or remote oc logout; oc logout --local can still clear the saved
CLI login. Manually setting an API key remains supported:
Global Flags
Key Workflows
Quick Start
JSON Output & Scripting
All commands support--json for machine-readable output: