> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opencomputer.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# oc config

> CLI configuration

Manage CLI configuration. Settings are persisted to a local config file.

For an interactive local setup, prefer [`oc login`](/reference/cli/auth). Use
`oc config set api-key` for a separately managed key.

## `oc config set <key> <value>`

Supported keys: `api-key`, `api-url`.

```bash theme={null}
oc config set api-key sk-1234...
oc config set api-url https://app.opencomputer.dev
```

Setting `api-key` explicitly clears CLI-login management metadata, so a later
`oc logout` cannot revoke a manually supplied key.

***

## `oc config show`

Display current configuration. The API key is masked (first 4 and last 4 characters shown).
