# Install OX Runtime Sensor on Linux Host

Install the OX Runtime Sensor as a systemd service on a bare or on-premises Linux machine. Use this method when the host is not part of a Kubernetes cluster and is not running on AWS EC2.

## Prerequisites

* Linux with kernel v5.10 and later and BTF enabled (`/sys/kernel/btf/vmlinux` must exist).
* Docker or **containerd** installed and running.
* `sudo` access on the host.
* Outbound HTTPS access to `api.cloud.ox.security`
* [An OX API key](/secure-runtime/ox-runtime-sensor.md).

## Step 1: Install the sensor

1. Run

```
curl -s https://charts.cloud.ox.security/install.sh | sudo OX_API_KEY=<API_KEY> bash
```

2. To group this host under a meaningful name in the OX UI, add `OX_CLUSTER_NAME`:

```
curl -s https://charts.cloud.ox.security/install.sh | \
  sudo OX_API_KEY=<API_KEY> \
       OX_CLUSTER_NAME=<HOST_GROUP_NAME> \
       bash
```

The script auto-detects your container runtime, stores the API key securely in `/root/ox-runtime-sensor/env` (mode `0600`), and starts the `ox-runtime-sensor` systemd service.

## Step 2: Verify

```
curl -s https://charts.cloud.ox.security/install.sh | sudo bash -s -- --status
sudo journalctl -u ox-runtime-sensor -f
```

## [Step 3: Connect to OX Runtime Sensor](/secure-runtime/ox-runtime-sensor.md)

## Configuration reference

| Variable          | Required | Default                                           | Description                                                     |
| ----------------- | -------- | ------------------------------------------------- | --------------------------------------------------------------- |
| `OX_API_KEY`      | **yes**  | —                                                 | API key from the OX Security dashboard                          |
| `OX_CLUSTER_NAME` | no       | system hostname                                   | Name shown in the OX UI to identify this host or group of hosts |
| `OX_API_ENDPOINT` | no       | `https://api.cloud.ox.security/api/agent-service` | OX backend endpoint (do not change unless instructed)           |

## Uninstall

```
curl -s https://charts.cloud.ox.security/install.sh | sudo bash -s -- --uninstall
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ox.security/secure-runtime/ox-runtime-sensor/install-ox-runtime-sensor-on-linux-host.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
