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

# Cloud Uplink

> Let Agent Golf run Uplink for your workspace, and send harness telemetry to it with a publishing key.

Cloud Uplink is an uplink instance that Agent Golf runs for your workspace. Your harnesses, or an OpenTelemetry Collector, send telemetry to it over HTTPS with a personal publishing key, and you install nothing.

> [!WARNING]
>
> With Cloud Uplink, your raw telemetry and your session content stay on Agent Golf infrastructure, not on your network.
> To keep them on your network, [install a Self-Hosted Uplink instance](https://docs.agent.golf/uplink/install.md) instead. For the full
> comparison, see [Cloud Uplink or Self-Hosted Uplink](https://docs.agent.golf/uplink/overview.md#cloud-uplink-or-self-hosted-uplink).

## Before you begin

You need these permissions. See [Default roles](https://docs.agent.golf/account/users.md#default-roles) for the roles that include them.

* **View Uplink Instances** to open **Settings > Uplink > Cloud**.
* **Manage Cloud Uplink** to turn Cloud Uplink on or off.
* **View All Publishing Keys** to see every user's keys, and **Manage All Publishing Keys** to revoke them.
* **Connect Your Harness** to create your own publishing key and connect your harness. You do not need access to **Settings > Uplink > Cloud** for this.

The machines where your harnesses or collectors run need outbound HTTPS access on port 443.

## Turn on Cloud Uplink

Cloud Uplink is off until a user turns it on. A new organization starts with Cloud Uplink off. In the **Set Up Uplink** step of the onboarding flow, you choose **Cloud Uplink** or **Self-Hosted Uplink**. When you choose **Cloud Uplink**, the step turns it on for the workspace. See [Onboarding flow](https://docs.agent.golf/getting-started/create-account.md#onboarding-flow).

To turn it on outside the onboarding flow:

1. Open **Settings > Uplink > Cloud**.
2. In the **Status** card, select **Turn On Cloud Uplink**. During the grace after a turn-off, the button is **Turn On and Keep Data**.

The **Status** card shows **On**. The **Uplink** section of the dashboard lists the new instance as **Cloud Uplink**. Agent Golf runs it, so you manage it only on **Settings > Uplink > Cloud**.

## The endpoint

While Cloud Uplink is on, the **OTLP Endpoint** shows in two places: the **Harness Setup** card on **Settings > Uplink > Publishing Keys**, and the **Collector Setup** card on **Settings > Uplink > Cloud**. In production, it is `https://uplink.agent.golf`.

The endpoint accepts OTLP over HTTP with Protobuf (`http/protobuf`) on `/v1/logs`, `/v1/metrics`, and `/v1/traces`. Each request must carry a personal publishing key in the `x-agentgolf-publishing-key` header.

The endpoint also accepts OTLP over gRPC (`grpc`) at `uplink.agent.golf:443` with TLS. Each export must carry the publishing key as the `x-agentgolf-publishing-key` gRPC metadata.

Send the data without compression. The endpoint refuses compressed requests.

## Connect your harness

Each user connects the harnesses on their own machines with a personal publishing key. See [Publishing keys](https://docs.agent.golf/harnesses/overview.md#publishing-keys).

* **With the CLI:** run `agentgolf harness setup <harness>` without `--endpoint`. The command finds the Cloud Uplink endpoint, creates a key, and writes the harness settings. Cloud Uplink must be on. See [Set up with the CLI](https://docs.agent.golf/harnesses/overview.md#set-up-with-the-cli).
* **In the dashboard:** create a key on **Settings > Uplink > Publishing Keys**, keep **Cloud Uplink** selected in the **Harness Setup** card, and copy your harness settings.

Each harness page has its settings: [Claude Code](https://docs.agent.golf/harnesses/claude-code.md), [Codex](https://docs.agent.golf/harnesses/codex.md), [omp](https://docs.agent.golf/harnesses/omp.md), and [GitHub Copilot](https://docs.agent.golf/harnesses/copilot.md).

## Send telemetry through a collector

An OpenTelemetry Collector can forward telemetry from many harnesses to Cloud Uplink. Each harness still sends its user's personal publishing key, and the collector forwards it. The **Collector Setup** card on **Settings > Uplink > Cloud** shows a configuration with your endpoint. See [A collector between the harness and Uplink](https://docs.agent.golf/harnesses/overview.md#a-collector-between-the-harness-and-uplink).

## Verify the setup

1. Start a session in the harness and send a prompt.
2. Open **Sessions** in the dashboard. The session shows in **Recent Sessions**.
3. Open **Settings > Uplink > Publishing Keys**. The **Last Used** column of the key shows a time.

If no session shows, look for an error status in the harness log:

| Status | Cause | What to do |
| - | - | - |
| `401` | The request has no publishing key, the key is wrong or revoked, or none of the key owner's roles includes **Connect Your Harness**. | Check the `x-agentgolf-publishing-key` header and the secret. Create a new key if you lost the secret. Ask an admin to check your role. |
| `403` | Cloud Uplink is off for the workspace, or billing stopped the processing of new data. | Ask an admin to turn on Cloud Uplink, or see [Processing limits](https://docs.agent.golf/account/usage.md#processing-limits). |
| `404` | The endpoint path is wrong. | Use the full signal path, for example `/v1/logs`, in each per-signal endpoint. |
| `413` | The request body is too large. | Send smaller batches. On a collector, lower the batch size of the exporter. |
| `415` | The request is compressed or uses OTLP JSON. | Use `http/protobuf`. On a collector exporter, set `compression: none`. |
| `429` | Cloud Uplink is busy with other requests now. | Wait. A harness that retries sends the data again after the delay in the answer. |
| `502`, `503`, `504` | Cloud Uplink is temporarily unavailable. | Wait. The harness sends the data again. |

Over gRPC, the harness log shows a gRPC status code instead: `UNAUTHENTICATED` for `401`, `PERMISSION_DENIED` for `403`, `UNIMPLEMENTED` for `404` and `415`, `RESOURCE_EXHAUSTED` for `413` and `429`, and `UNAVAILABLE` or `DEADLINE_EXCEEDED` for `502`, `503`, and `504`. A compressed gRPC export gets `UNIMPLEMENTED`: set the compression of the exporter to none.

## Session content

Agent Golf stores an opaque reference for each prompt, response, and tool output. The Cloud Uplink instance keeps the content, and the dashboard gets it from the Cloud Uplink instance through Agent Golf. The users who can show it are the same as for a Self-Hosted Uplink instance. See [Session content](https://docs.agent.golf/dashboard/sessions.md#session-content).

For how the Cloud Uplink instance separates and encrypts each workspace's data, see [With Cloud Uplink](https://docs.agent.golf/getting-started/data-boundary.md#with-cloud-uplink).

## Session history

The Cloud Uplink instance keeps session content for your workspace's **Session Detail** window, and the dashboard shows **Expired** for content that the window deleted. It deletes data only while it runs. For each kind of data and how long it stays, see [Data Retention & Deletion](https://docs.agent.golf/account/data-retention.md#history-retention).

## Usage

Cloud Uplink usage counts on the **Cloud Uplink Instances**, **Cloud Uplink Raw Ingest**, **Cloud Uplink Ingest**, and **Cloud Uplink Storage** meters. Your plan sets which of them it bills, and at what price. See [Meters](https://docs.agent.golf/account/usage.md#meters) and the [pricing page](https://agent.golf/pricing/).

## Revoke a publishing key

Revoke another user's key in the **User Publishing Keys** card on **Settings > Uplink > Cloud**. Cloud Uplink refuses a revoked key within a minute. For your own keys, see [Publishing keys](https://docs.agent.golf/harnesses/overview.md#publishing-keys).

## Turn off Cloud Uplink

1. Open **Settings > Uplink > Cloud**. In the **Status** card, select **Turn Off Cloud Uplink**.
2. Read the confirmation, and select **Turn Off Cloud Uplink** again.

After you turn it off:

* Cloud Uplink refuses telemetry within a minute. Harnesses get `403`.
* The **Status** card shows **Turned Off** and the deletion date.
* The **Uplink** section of the dashboard no longer shows the Cloud Uplink instance or its metrics.
* Until the deletion date, the Cloud Uplink instance continues to delete session content older than the **Session Detail** window. Users can still show the content that the window keeps.
* To keep the data, select **Turn On and Keep Data** before the deletion date. Your publishing keys work again.
* On the deletion date, Agent Golf deletes the raw telemetry, the session content, and its encryption keys. The **Status** card shows **Deleted**.
* On the deletion date, Agent Golf also revokes every publishing key of your workspace, including the keys that your harnesses use with a Self-Hosted Uplink instance. A Self-Hosted Uplink instance refuses the revoked keys within a minute, so those harnesses get `401` there too. The revoked keys leave the key lists, and their **Last Used** time stops changing. Exception: when your organization has a Cloud Uplink instance that is not deleted, the keys of your workspace stay, because they work with that instance.
* For the Cloud Uplink instance of an organization, the deletion revokes only the [keys without a workspace](https://docs.agent.golf/cli/commands.md#keys-without-a-workspace). The keys of each workspace stay.
* The sessions that Agent Golf received stay in the dashboard for the **Session Detail** window, but the dashboard cannot show their content.
* If you turn Cloud Uplink on after the deletion, it starts with no data. Each user creates a new publishing key.

## Move to Self-Hosted Uplink

You can move your workspace from Cloud Uplink to a Self-Hosted Uplink instance at any time, for example when your policy requires that session content stays in your network. Cloud Uplink and a Self-Hosted Uplink instance can run at the same time while you move. One publishing key works with both until the deletion date of Cloud Uplink.

1. Set up a Self-Hosted Uplink instance. See [Set up a Self-Hosted Uplink instance](https://docs.agent.golf/uplink/overview.md#set-up-a-self-hosted-uplink-instance).
   1. Create an Uplink key in **Settings > Uplink > Self-Hosted**.
   2. Install Uplink in your network.
   3. Wait until the instance shows in the **Uplink** section of the dashboard.
2. Set up the [local API](https://docs.agent.golf/uplink/local-api.md) of the instance, so that the dashboard can show the session content that the instance keeps.
3. Ask each user to send the telemetry of their harnesses to the instance. A user runs `agentgolf harness setup <harness> --endpoint <uplink-listener> --replace`, or copies the **Self-Hosted** settings from the **Harness Setup** card on **Settings > Uplink > Publishing Keys**. Change the exporter of each collector that forwards to Cloud Uplink too. See [Connect a Harness](https://docs.agent.golf/harnesses/overview.md).
4. Check that new sessions arrive through the instance. See [Verify the Installation](https://docs.agent.golf/uplink/verify.md).
5. When no harness or collector sends to Cloud Uplink, [turn off Cloud Uplink](#turn-off-cloud-uplink). On its deletion date, Agent Golf revokes the publishing keys of your workspace, also the keys that your harnesses send to the Self-Hosted Uplink instance.
6. After the deletion date, each user creates a new publishing key and runs `agentgolf harness setup <harness> --endpoint <uplink-listener> --replace` again. Give a new key to each collector too. Until then, the Self-Hosted Uplink instance refuses the revoked keys with `401`, and the harnesses lose their data. See [The harness gets HTTP 401](https://docs.agent.golf/uplink/troubleshooting.md#the-harness-gets-http-401).

What the move does not change:

* Agent Golf does not copy raw telemetry or session content from the Cloud Uplink instance to the Self-Hosted Uplink instance.
* The sessions that Cloud Uplink received stay in the dashboard for the **Session Detail** window. Users can show their content until the deletion date of Cloud Uplink. After that date, the dashboard cannot show their content.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.