> For the complete documentation index, see [llms.txt](https://docs.sonarsource.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/sandbox-runtime.md). Agents can also search and read this documentation through its [MCP server](https://docs.sonarsource.com/~gitbook/mcp).

# Setting up the sandbox runtime

Install the gVisor sandbox runtime, or Kata Containers on OpenShift, for the agent runtimes. This page is for SonarQube Server 2026.5.

Every agentic job runs in its own container, and that container is sandboxed. The sandbox is the control that keeps code influenced by a large language model away from your host, and it's required for production. Run without it only for evaluation, see [#without-sandbox](#without-sandbox "mention").

{% hint style="info" %}
See [Before you start](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/before-you-start.md) first. You need your hosts or cluster nodes to meet the architecture and platform requirements before you install the sandbox runtime.
{% endhint %}

{% hint style="info" %}
For an air-gapped installation, get the gVisor files as described in [#air-gapped](#air-gapped "mention") instead of running the download commands on this page. The rest of this page, including node selection, Service mesh, and OpenShift, still applies.
{% endhint %}

SonarQube Server uses [gVisor](https://gvisor.dev/) as the sandbox runtime, in the form of its `runsc` runtime handler. gVisor intercepts system calls in user space instead of passing them to the host kernel, so a job that tries something destructive affects only its own sandbox.

gVisor uses its Systrap platform by default, which needs no hardware virtualization. That means you do not need `/dev/kvm`, so the sandbox runs on standard cloud instances and on hardened nodes where nested virtualization is disabled.

On OpenShift, gVisor is not available, and the agent runtimes are sandboxed with Kata Containers instead. See [#on-openshift](#on-openshift "mention").

## Why per-job isolation <a href="#why-per-job-isolation" id="why-per-job-isolation"></a>

| Risk                                                 | What the sandbox does about it                                                                                                                                                                          |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| A job runs a destructive command                     | The damage is contained in the sandbox. Writes to the root filesystem stay in the sandbox's writable layer and are capped in size. Only the mounted project, output, and storage folders reach the host |
| A job tries to exfiltrate source code or credentials | Restricts outbound access to an explicit list of destinations, and blocks everything else                                                                                                               |
| A job consumes unbounded resources                   | Applies CPU, memory, and process limits per container. The Orchestrator fails a job that exceeds its time limit                                                                                         |
| A job attempts to escape onto the host               | Handles system calls in user space, behind a second restrictive system call filter                                                                                                                      |

Because each job gets its own container, container isolation is job isolation. There's no sharing between concurrent jobs to reason about.

## Fail-closed behavior <a href="#fail-closed" id="fail-closed"></a>

There's no silent fallback to an unsandboxed container. If a service requests the sandbox runtime and it's not available, the container does not start. Running without a sandbox is always an explicit choice, see [#without-sandbox](#without-sandbox "mention").

| Situation                                                                    | Result                                                                                                                                                                                                         |
| ---------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The sandbox runtime is not registered                                        | The container refuses to start, reporting an unknown runtime                                                                                                                                                   |
| The runtime is registered but the image architecture does not match the host | The container crashes on start with `exec format error`                                                                                                                                                        |
| On OpenShift, the Kata `RuntimeClass` is missing                             | The Helm chart fails to install. If you set `OpenShift.skipAgentRuntimeClassCheck` to `true`, the chart installs, but the agent runtime pods are rejected with `RuntimeClass "kata" not found` and never start |

If jobs do not start, this is the first thing to check. See [Troubleshooting](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/troubleshooting.md).

## On Kubernetes <a href="#on-kubernetes" id="on-kubernetes"></a>

On Kubernetes, gVisor is installed on the nodes and selected per pod through a `RuntimeClass`. The Helm chart creates the `RuntimeClass` and sets it on the agent runtime pods for you.

You have two ways to get `runsc` onto the nodes. If your platform provides its own sandbox instead, see [#another-runtime](#another-runtime "mention").

### Provisioning the nodes yourself <a href="#provisioning-yourself" id="provisioning-yourself"></a>

This is the recommended approach for production. Install `runsc` and `containerd-shim-runsc-v1` on the nodes that run agentic jobs, configure containerd with the `runsc` runtime handler, then deploy with the chart's installer turned off:

```yaml
gvisor:
  enabled: true
  installer:
    enabled: false
```

The chart still creates the `RuntimeClass`. Its name is `gvisor` and its handler is `runsc`, unless you changed `gvisor.runtimeClassName` or `gvisor.handler`.

Use this approach when your platform team manages node configuration, or when your cluster policy does not allow privileged workloads. On a node that cannot reach `storage.googleapis.com`, copy the files as described in [#air-gapped](#air-gapped "mention"), install them, then continue at [#containerd](#containerd "mention").

On managed Kubernetes services, use the provider's own mechanism instead of installing gVisor by hand. On Google Kubernetes Engine, use GKE Sandbox, see [#another-runtime](#another-runtime "mention").

On each node that runs agentic jobs:

1. Download gVisor release `20260706` for the node's architecture, verify it, and install it. These steps were tested on x86-64 and ARM64. `uname -m` prints `x86_64` or `aarch64`.

   ```bash
   V=20260706
   ARCH=$(uname -m)
   URL=https://storage.googleapis.com/gvisor/releases/release/$V/$ARCH
   curl -fsSL -o runsc "$URL/runsc"
   curl -fsSL -o runsc.sha512 "$URL/runsc.sha512"
   curl -fsSL -o containerd-shim-runsc-v1 "$URL/containerd-shim-runsc-v1"
   curl -fsSL -o containerd-shim-runsc-v1.sha512 "$URL/containerd-shim-runsc-v1.sha512"
   sha512sum -c runsc.sha512
   sha512sum -c containerd-shim-runsc-v1.sha512
   chmod a+rx runsc containerd-shim-runsc-v1
   sudo mv runsc containerd-shim-runsc-v1 /usr/local/bin/
   ```
2. Write `/etc/containerd/runsc.toml`. These are the chart installer's settings: the host network stack, and a 50 GB cap on the job's root filesystem.

   ```toml
   [runsc_config]
     network = "host"
     overlay2 = "root:self,size=50g"
   ```
3. Register the handler in `/etc/containerd/config.toml`. Add the `runtimes.runsc` block that matches the `version` line at the top of that file. The handler name must match `gvisor.handler`.

   When the file has no `version` line and `containerd --version` reports 2 or later, use `io.containerd.cri.v1.runtime`. With containerd 1.x and no `version` line, add `version = 2` as the first line of the file and use `io.containerd.grpc.v1.cri`. Without that line, containerd 1.x silently ignores the `io.containerd.grpc.v1.cri` block.

   Config `version = 2` or earlier uses the plugin `io.containerd.grpc.v1.cri`:

   ```toml
   [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runsc]
     runtime_type = "io.containerd.runsc.v1"
   [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runsc.options]
     TypeUrl = "io.containerd.runsc.v1.options"
     ConfigPath = "/etc/containerd/runsc.toml"
   ```

   Config `version = 3` or later uses the plugin `io.containerd.cri.v1.runtime`:

   ```toml
   [plugins."io.containerd.cri.v1.runtime".containerd.runtimes.runsc]
     runtime_type = "io.containerd.runsc.v1"
   [plugins."io.containerd.cri.v1.runtime".containerd.runtimes.runsc.options]
     TypeUrl = "io.containerd.runsc.v1.options"
     ConfigPath = "/etc/containerd/runsc.toml"
   ```
4. Confirm the handler is in the parsed file, then restart containerd. The matching line must name the plugin for that version:

   ```bash
   sudo containerd --config /etc/containerd/config.toml config dump | grep -A3 'runtimes.runsc'
   sudo systemctl restart containerd
   ```
5. The chart schedules agent runtimes onto nodes labeled `gvisor.enabled=true`. The installer applies that label, and with the installer off you apply it yourself:

   ```bash
   kubectl label node <node-name> gvisor.enabled=true
   ```

### Using the chart installer <a href="#chart-installer" id="chart-installer"></a>

The chart can install gVisor for you with a DaemonSet. This is convenient for self-managed clusters and for evaluation.

```yaml
gvisor:
  enabled: true
  installer:
    enabled: true
```

{% hint style="warning" %}
The installer is privileged. It runs with host access to change the containerd configuration on each node, which requires a namespace that permits privileged pods, and permission to read and modify every node object in the cluster. The installer is on by default, so review it against your cluster policy before you deploy the chart.
{% endhint %}

The installer downloads and verifies `runsc` from `https://storage.googleapis.com/gvisor/releases/`, writes the sandbox configuration, registers the runtime handler with containerd, and validates the configuration. It restarts containerd on each node where `runsc` is not already loaded. If any step fails, it restores the previous containerd configuration. It labels a node as ready for sandboxed workloads only when containerd is healthy after the restart and, where `crictl` is installed, when `crictl` lists the `runsc` handler. In an air-gapped cluster, turn the installer off and follow [#air-gapped](#air-gapped "mention").

The installer is only for self-managed nodes that run containerd. It does not work on CRI-O or on managed nodes with an immutable operating system. Do not use it on a managed service that provides its own mechanism. `gvisor.installer.containerdConfigPath` sets the containerd configuration file it changes, `/etc/containerd/config.toml` by default.

### Choosing which nodes run jobs <a href="#node-selection" id="node-selection"></a>

By default, the chart schedules agentic jobs onto nodes labeled for gVisor, and the installer targets all nodes. To confine jobs to a subset of your cluster, label those nodes and set a node selector. To install on every node, leave the installer's node selector empty.

{% hint style="danger" %}
A `RuntimeClass` is cluster-scoped, so its name must be unique across the cluster. If you run more than one SonarQube Server release in the same cluster, give each one a different `runtimeClassName`. Otherwise the second release fails to install, because the name is already owned by the first.
{% endhint %}

For the full list of values, see [Deploying with a Kubernetes or OpenShift installation](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/deploying-with-kubernetes-or-openshift-installation.md).

### Using another sandbox runtime <a href="#another-runtime" id="another-runtime"></a>

If your platform provides its own sandboxed `RuntimeClass`, the chart can use it instead of gVisor. For example, AKS Pod Sandboxing provides Kata Containers through `kata-vm-isolation`:

```yaml
gvisor:
  enabled: false
agentRuntimeSandbox:
  enabled: true
  runtimeClassName: kata-vm-isolation
```

On Google Kubernetes Engine, GKE Sandbox provides the `gvisor` `RuntimeClass`:

```yaml
gvisor:
  enabled: false
agentRuntimeSandbox:
  enabled: true
  runtimeClassName: gvisor
```

GKE already schedules these pods onto a GKE Sandbox node pool. Do not install `runsc` on the nodes, and do not apply the chart's `gvisor.enabled` node label.

The chart does not create this `RuntimeClass`, and it refuses to install when `agentRuntimeSandbox.enabled` is `true` and `agentRuntimeSandbox.runtimeClassName` is empty. It also adds no node selector for it. If only some nodes support the `RuntimeClass`, set `hunterAgent.nodeSelector` and `remediationAgent.nodeSelector` so the agent runtimes run on those nodes. This is not needed on GKE. See [Deploying with a Kubernetes or OpenShift installation](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/deploying-with-kubernetes-or-openshift-installation.md#sandbox).

## On OpenShift <a href="#on-openshift" id="on-openshift"></a>

gVisor is not available on OpenShift. CRI-O cannot use the `runsc` runtime, and the chart's gVisor installer supports containerd only. On OpenShift, the Helm chart runs Hunter Agent and Remediation Agent runtimes with Kata Containers instead, through a `RuntimeClass` that the OpenShift sandboxed containers operator provides.

### Installing the OpenShift sandboxed containers operator <a href="#openshift-operator" id="openshift-operator"></a>

Install the OpenShift sandboxed containers operator before you deploy the chart. The chart does not create the `RuntimeClass`, and the installation fails if it's missing.

Choose the `RuntimeClass` that matches your worker nodes:

| Worker nodes                                                                                           | `RuntimeClass`                |
| ------------------------------------------------------------------------------------------------------ | ----------------------------- |
| Bare-metal Red Hat Enterprise Linux CoreOS (RHCOS) workers, on premises or on AWS bare-metal instances | `kata`                        |
| Cloud VMs on AWS, Azure, or Google Cloud                                                               | `kata-remote`, with peer pods |

For the setup steps on bare metal and with peer pods, see the [OpenShift sandboxed containers documentation](https://docs.redhat.com/en/documentation/openshift_sandboxed_containers/).

### Setting the Helm values <a href="#openshift-helm-values" id="openshift-helm-values"></a>

```yaml
OpenShift:
  enabled: true
  agentRuntimeClassName: kata
  skipAgentRuntimeClassCheck: false
```

| Value                                  | Description                                                                                                                                                                                                                                  |
| -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OpenShift.enabled`                    | Set to `true` to enable OpenShift. The chart then ignores the `gvisor.*` values and does not deploy the gVisor installer, so you do not need to change them                                                                                  |
| `OpenShift.agentRuntimeClassName`      | The `RuntimeClass` for the agent runtimes. Defaults to `kata`. Set it to `kata-remote` for peer pods                                                                                                                                         |
| `OpenShift.skipAgentRuntimeClassCheck` | Defaults to `false`, so the chart checks that the `RuntimeClass` exists. Set it to `true` when the installing credentials cannot read cluster-scoped `RuntimeClass` objects, or when the `RuntimeClass` is created together with the release |

{% hint style="danger" %}
An empty `OpenShift.agentRuntimeClassName` turns off the sandbox: the agent runtimes run under the cluster's default container runtime, and the chart installs without an error. The only signal is a warning in the post-install notes. This is one of the exceptions to the fail-closed behavior described on this page, see [#without-sandbox](#without-sandbox "mention"). It is not recommended.
{% endhint %}

For the rest of the OpenShift configuration, see [Customizing Helm chart](https://docs.sonarsource.com/sonarqube-server/server-installation/on-kubernetes-or-openshift/customizing-helm-chart.md#enabling-openshift).

## Service mesh <a href="#service-mesh" id="service-mesh"></a>

This section applies to Helm chart deployments, on both Kubernetes and OpenShift.

The chart does not inject the standard Istio sidecar into the sandboxed agent runtimes, so by default they stay outside the service mesh. To add them to the mesh, set `istio.meshSidecar.enabled` to `true` in addition to `istio.enabled`. This requires Kubernetes 1.29 or later. The agent runtimes then get their own mTLS identity.

This also requires a network plugin that enforces NetworkPolicies. Without one, the agent runtime's own port stays reachable on the pod network without authentication.

## On Docker <a href="#on-docker" id="on-docker"></a>

On a Linux host running Docker Engine, install gVisor on the host and register `runsc` as a Docker runtime. The agent runtime containers then request it by name.

{% hint style="info" %}
Registering a Docker runtime changes the Docker daemon configuration and requires a daemon restart. Membership of the `docker` group is not enough: you need root access on the host.
{% endhint %}

To install gVisor and register it with Docker:

1. Download the `runsc` binary and its checksum, verify the binary, and install it. These steps were tested with gVisor release 20260706 on Ubuntu 24.04, on x86-64 and ARM64. On a host that cannot reach `storage.googleapis.com`, copy the files as described in [#air-gapped](#air-gapped "mention"), then continue at step 2.

   ```bash
   V=20260706; ARCH=$(uname -m)
   URL=https://storage.googleapis.com/gvisor/releases/release/$V/$ARCH
   curl -fsSL -o runsc $URL/runsc
   curl -fsSL -o runsc.sha512 $URL/runsc.sha512
   sha512sum -c runsc.sha512
   chmod a+rx runsc && sudo mv runsc /usr/local/bin/
   ```
2. Register `runsc` in `/etc/docker/daemon.json`. If the file already exists, add the `runtimes` entry to it instead of replacing the file.

   ```json
   {
     "runtimes": {
       "runsc": {
         "path": "/usr/local/bin/runsc",
         "runtimeArgs": ["--network=host", "--overlay2=root:self,size=50g"]
       }
     }
   }
   ```
3. Restart Docker, and check that a container starts under gVisor. The output includes `Starting gVisor...`. Restarting Docker stops the running containers unless `live-restore` is enabled.

   ```bash
   sudo systemctl restart docker
   docker run --runtime=runsc --rm alpine dmesg
   ```

{% hint style="info" %}
Prefer the latest stable gVisor release over the `runsc` package from the Ubuntu repositories, for better compatibility. For other ways to install gVisor, see the [gVisor installation guide](https://gvisor.dev/docs/user_guide/install/).
{% endhint %}

The `runtimeArgs` in step 2 set how the sandbox behaves:

* The sandbox uses the host network stack, set with `--network=host`. Without it, containers on a user-defined network cannot resolve each other's names. Isolation between the job and your network still comes from the outbound restrictions described in [Before you start](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/before-you-start.md)
* The sandbox provides a bounded writable overlay, set with `--overlay2=root:self,size=50g`, which caps how much disk a job can use on its root filesystem. Docker's own controls cannot cap it. The overlay does not cover mounted folders, such as the storage subfolder a runtime mounts when you use a shared filesystem

Keep the gVisor version consistent across your hosts and your cluster nodes. When you update it in one place, update it everywhere in the same change.

## On a ZIP installation <a href="#zip" id="zip"></a>

When SonarQube Server runs from the ZIP file on the same machine as Docker, install `runsc` on that machine as described in [On Docker](#on-docker), in `/usr/local/bin`, not in `<sonarqubeHome>`, the folder where you unpacked the ZIP.

On a machine that cannot reach `storage.googleapis.com`, copy `runsc` as described in [#air-gapped](#air-gapped "mention"), then register it with Docker as in [#air-gapped-docker](#air-gapped-docker "mention").

## Air-gapped installation <a href="#air-gapped" id="air-gapped"></a>

In an air-gapped environment, download the gVisor files on a machine with internet access, copy them to each machine that runs the agent containers, and install them in `/usr/local/bin`.

Kubernetes nodes need `runsc` and `containerd-shim-runsc-v1`. Docker hosts, including a ZIP installation, need `runsc` only. OpenShift does not use these files. Download gVisor release `20260706` once per architecture. Copy the `gvisor-20260706-x86_64` directory to each `x86_64` machine, and the `gvisor-20260706-aarch64` directory to each `aarch64` machine. On each machine, check the checksums, then install the binaries as described for your installation: [#air-gapped-kubernetes](#air-gapped-kubernetes "mention"), [#air-gapped-openshift](#air-gapped-openshift "mention"), [#air-gapped-docker](#air-gapped-docker "mention"), or [#air-gapped-zip](#air-gapped-zip "mention").

The gVisor `apt` repository, and the release tarball that also contains `gvisor-bin/`, are documented in the [gVisor installation guide](https://gvisor.dev/docs/user_guide/install/). These steps use the files in this table:

| File                              | Where it's installed                                                                               |
| --------------------------------- | -------------------------------------------------------------------------------------------------- |
| `runsc`                           | Each Kubernetes node and each Docker host, at `/usr/local/bin/runsc`                               |
| `runsc.sha512`                    | Checksum for `runsc`. Verify it, then delete it                                                    |
| `containerd-shim-runsc-v1`        | Each Kubernetes node, at `/usr/local/bin/containerd-shim-runsc-v1`. A Docker host does not need it |
| `containerd-shim-runsc-v1.sha512` | Checksum for the shim. A Docker host does not need it                                              |

On a machine that can reach the internet, download `runsc` for one architecture. The directory name is `gvisor-20260706-x86_64`, or `gvisor-20260706-aarch64` when `ARCH` is `aarch64`. For a Kubernetes node, also download the shim. Skip the two `containerd-shim-runsc-v1` lines for Docker and for a ZIP installation.

```bash
V=20260706
ARCH=x86_64
URL=https://storage.googleapis.com/gvisor/releases/release/$V/$ARCH
mkdir -p "gvisor-$V-$ARCH"
cd "gvisor-$V-$ARCH"
curl -fsSL -o runsc "$URL/runsc"
curl -fsSL -o runsc.sha512 "$URL/runsc.sha512"
curl -fsSL -o containerd-shim-runsc-v1 "$URL/containerd-shim-runsc-v1"
curl -fsSL -o containerd-shim-runsc-v1.sha512 "$URL/containerd-shim-runsc-v1.sha512"
```

Set `ARCH=aarch64` and repeat for each ARM64 machine. Copy each directory to the matching machines. On each machine, verify `runsc` before you install:

```bash
sha512sum -c runsc.sha512
```

On a Kubernetes node, also verify the shim:

```bash
sha512sum -c containerd-shim-runsc-v1.sha512
```

### On Kubernetes <a href="#air-gapped-kubernetes" id="air-gapped-kubernetes"></a>

On each node that runs the agent runtime pods, install the copied `runsc` and `containerd-shim-runsc-v1` in `/usr/local/bin`. Do not download them on the node:

```bash
chmod a+rx runsc containerd-shim-runsc-v1
sudo mv runsc containerd-shim-runsc-v1 /usr/local/bin/
```

Leave the chart installer off, because it downloads `runsc` from the internet. Deploy with:

```yaml
gvisor:
  enabled: true
  installer:
    enabled: false
```

Then write `/etc/containerd/runsc.toml`, register the `runsc` handler, and label the node, starting at [#containerd](#containerd "mention"). Skip the download commands, because you already copied the files.

### On OpenShift <a href="#air-gapped-openshift" id="air-gapped-openshift"></a>

OpenShift does not use these files. Follow [#on-openshift](#on-openshift "mention").

### On Docker <a href="#air-gapped-docker" id="air-gapped-docker"></a>

On the machine where Docker runs the agent containers, install only `runsc`, in `/usr/local/bin/runsc`. Then add the `runtimes` entry to `/etc/docker/daemon.json` and restart Docker, as in step 2 of [On Docker](#on-docker):

```bash
chmod a+rx runsc
sudo mv runsc /usr/local/bin/
```

The check `docker run --runtime=runsc --rm alpine dmesg` needs the `alpine` image to already be present on that machine.

### On a ZIP installation <a href="#air-gapped-zip" id="air-gapped-zip"></a>

Install the copied `runsc` and register it with Docker as described in [#air-gapped-docker](#air-gapped-docker "mention"), on the machine where SonarQube Server and Docker run.

## Evaluating without a sandbox <a href="#without-sandbox" id="without-sandbox"></a>

For evaluation only, the Docker Compose bundle generator can run the agent runtimes with `--sandbox runc`, Docker's default runtime. The runtimes then get no isolation beyond a regular container, and nothing caps how much disk a job uses. Use it only where you cannot install a sandbox runtime, for example on Docker Desktop on macOS or Windows. Do not use it in production. For the steps on Windows, see [Deploying on Windows](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/deploying-on-windows.md).

On Kubernetes, setting `gvisor.enabled` to `false` without enabling `agentRuntimeSandbox`, see [#another-runtime](#another-runtime "mention"), runs the agent runtimes under the cluster's default container runtime, and the chart installs without an error. On OpenShift, an empty `OpenShift.agentRuntimeClassName` has the same effect, see [#openshift-helm-values](#openshift-helm-values "mention"). Do not use either in production.

## Next step <a href="#next-step" id="next-step"></a>

With the sandbox runtime registered, provision shared storage. See [Setting up shared storage](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/shared-storage.md).

## Related pages <a href="#related-pages" id="related-pages"></a>

* [Before you start](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/before-you-start.md)
* [Deploying with a Kubernetes or OpenShift installation](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/deploying-with-kubernetes-or-openshift-installation.md)
* [Troubleshooting](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/troubleshooting.md)


---

# 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.sonarsource.com/sonarqube-server/server-installation/ai-agents/sandbox-runtime.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.
