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

# Installation

> Install OpenGoat with npm, Docker, or from source.

## Option A: Global npm Install

```bash theme={null}
npm i -g openclaw opengoat
```

Verify:

```bash theme={null}
openclaw --version
opengoat --version
```

## Option B: Docker Runtime

```bash theme={null}
docker build -t opengoat:latest .
docker run --rm -p 19123:19123 -v opengoat-data:/data/opengoat opengoat:latest
```

Open `http://127.0.0.1:19123`.

## Option C: From Source

```bash theme={null}
pnpm install
pnpm build
./bin/opengoat --help
```

When invoking from an agent workspace, use the workspace shim:

```bash theme={null}
sh ./opengoat agent list
sh ./opengoat agent info goat
```

## Runtime Paths

By default OpenGoat stores runtime state under `~/.opengoat`.

Override home path:

```bash theme={null}
export OPENGOAT_HOME=/absolute/path
```

## UI Host and Port

`opengoat start` and `opengoat restart` support:

```bash theme={null}
opengoat start --host 127.0.0.1 --port 19123
opengoat restart --host 127.0.0.1 --port 19123
```
