# oc serve

{% alert type="note" title="Description" %}
Serve the OpenCode AI server locally.
{% /alert %}

## Usage

```term {% anim=true %}
$ caly-xano oc serve [options]
```

## Options

| Flag | Description |
| --- | --- |
| `--port <port>` | Port to run the OpenCode server on (default: 4096) |
| `-d, --detach` | Run the server in the background (detached mode) |
