> For the complete documentation index, see [llms.txt](https://docs.ox.security/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ox.security/ox-cloud/ox-runtime-sensor/install-ox-runtime-sensor-on-linux-host.md).

# 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](https://docs.ox.security/ox-cloud/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](https://docs.ox.security/ox-cloud/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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
