# kosa8 model serve

Serve a model on the local gateway until interrupted

## Usage

```
kosa8 model serve NAME
```

## Flags

| Flag | Type | What it does | Default |
|---|---|---|---|
| `--backend` | string | inference runtime: auto (llamay if installed, else kosa8's own engine), llamay, or engine | `auto` |
| `--sandbox` | string | the sandbox whose agent this gateway serves (clients may also send X-Kosa8-Sandbox) |  |
| `--session` | string | AI session id the audit records belong to (default: a new one) |  |

## Example

```
  kosa8 model serve qwen2.5-7b
  kosa8 model serve qwen2.5-7b --sandbox dev
```

---
Source: https://docs.kosa8.com/reference/model-serve/
