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

# Run From Source

> Run ONR locally for development.

## Prepare configs

```bash theme={null}
cp config/onr.example.yaml onr.yaml
cp config/keys.example.yaml keys.yaml
cp config/models.example.yaml models.yaml
```

## Run

```bash theme={null}
go run ./cmd/onr --config ./onr.yaml
```

## Test configs (nginx-like)

```bash theme={null}
go run ./cmd/onr -t -c ./onr.yaml
```

## Reload (nginx-like)

After editing `onr.yaml` / `keys.yaml` / `models.yaml` / `config/onr.conf` or any DSL file it includes (commonly `config/providers/*.conf`, see [config/onr.conf](https://github.com/r9s-ai/open-next-router/tree/main/config/onr.conf)):

```bash theme={null}
go run ./cmd/onr --config ./onr.yaml -s reload
```

This uses `server.pid_file` (default: `/var/run/onr.pid`).
