> ## Documentation Index
> Fetch the complete documentation index at: https://opensandbox-oc-s-762ac928075c46d2828bcb22.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI Reference

> Every command, subcommand, and flag

## Global Flags

These flags apply to all commands.

<ParamField query="--api-key" type="string">
  API key for authentication. Env: `OPENCOMPUTER_API_KEY`
</ParamField>

<ParamField query="--api-url" type="string">
  Control plane URL. Env: `OPENCOMPUTER_API_URL`
</ParamField>

<ParamField query="--json" type="boolean">
  Output as JSON
</ParamField>

## Commands

<CardGroup cols={2}>
  <Card title="oc agent" icon="robot" href="/reference/cli/agent">
    Manage agents, channels, and packages
  </Card>

  <Card title="oc sandbox" icon="box" href="/reference/cli/sandbox">
    Manage sandbox lifecycle
  </Card>

  <Card title="oc exec" icon="terminal" href="/reference/cli/exec">
    Execute commands inside a sandbox
  </Card>

  <Card title="oc shell" icon="rectangle-terminal" href="/reference/cli/shell">
    Interactive terminal access
  </Card>

  <Card title="oc checkpoint" icon="camera" href="/reference/cli/checkpoint">
    Manage sandbox checkpoints
  </Card>

  <Card title="oc patch" icon="file-code" href="/reference/cli/patch">
    Manage checkpoint patches
  </Card>

  <Card title="oc preview" icon="globe" href="/reference/cli/preview">
    Manage preview URLs
  </Card>

  <Card title="oc config" icon="gear" href="/reference/cli/config">
    CLI configuration
  </Card>
</CardGroup>
