Uplink is the Agent Golf service that receives the OpenTelemetry data of your agent harnesses: Claude Code, Codex, omp, and GitHub Copilot. You run it in your network as a Self-Hosted Uplink instance, or Agent Golf runs it for your workspace as Cloud Uplink. A Self-Hosted Uplink instance keeps session content, such as prompts, responses, and sensitive tool details, in your network. It sends session data to Agent Golf.
This repository holds the releases of Self-Hosted Uplink. If you do not want to run Uplink yourself, use Cloud Uplink.
You need an Agent Golf workspace. Sign up at app.agent.golf/register. See Create an Account.
- Linux:
amd64orarm64with glibc 2.34 or later. - macOS: 26 or 27 on Apple silicon.
- Docker and Kubernetes:
linux/amd64orlinux/arm64.
Uplink does not support Windows, Intel Macs, or Linux distributions with musl libc, such as Alpine Linux. See Supported systems.
The uplink instance needs outbound access to api.agent.golf on port 443 and to the Agent Golf data connection on port 7422.
The OTLP listeners do not authenticate the sender. They check only the form of a publishing key, and refuse revoked keys. Keep ports 4318 and 4317 on a private network, and never expose them to the internet.
The binary binds its OTLP/HTTP listener to 127.0.0.1 by default and leaves OTLP/gRPC off. To receive OTLP/HTTP from harnesses on other hosts, set OTLP_HTTP_HOST. In the container image and the Helm chart, both OTLP listeners bind all interfaces. The default ClusterIP Service of the chart is reachable only in the cluster. See Listeners and default binds and Secure the OpenTelemetry listener.
Each release has three forms:
- The
uplinkbinary, from the install scripthttps://get.agent.golf/uplink. - The container image
ghcr.io/agentgolf/uplink:<version>. - The Helm chart
oci://ghcr.io/agentgolf/charts/uplink, with chart version<version>.
The commands in Start Uplink install and start each form.
On Linux and macOS, install cosign first. By default, the install script stops when cosign is not in PATH. It checks the cosign signature of SHA256SUMS, then checks the archive against SHA256SUMS. These checks do not verify the install script itself. To check the script before it runs, use the verified install.
Set UPLINK_VERSION to install that version instead of the latest release. Set UPLINK_INSTALL_DIR to install into another directory. The default is /usr/local/bin when it is writable, else ~/.local/bin. For the other script settings, see Install Uplink.
An Uplink key (agu_...) starts an uplink instance. The key that you create here belongs to your workspace. You need the Manage Uplink Keys permission.
- In the dashboard, open Settings > Uplink > Self-Hosted.
- In Keys That Start Uplink Instances, enter a Key Name, for example the host or the cluster.
- Select Create Uplink Key.
- Copy the secret. Agent Golf cannot show it again.
To create the key from a terminal, see Install Uplink.
Use the commands of the Uplink Instance Setup card on Settings > Uplink > Self-Hosted. Replace <uplink-key> with your key. Replace <version> with the number of the latest release, without the leading v.
These commands put the Uplink key in your shell history, and the Docker command also puts it in the container settings. For ways to keep it out, see Install and start Uplink. Never put a key in a repository.
Docker:
docker run -d --name uplink --restart on-failure \
-e AGENTGOLF_UPLINK_KEY=<uplink-key> \
-p 4318:4318 -p 127.0.0.1:4319:4319 \
-v uplink-state:/data/.ag-uplink \
ghcr.io/agentgolf/uplink:<version>Docker publishes port 4318 on all addresses of the host, so allow it only from your private network.
Kubernetes:
kubectl create namespace uplink
kubectl --namespace uplink create secret generic uplink-key \
--from-literal=uplink-key=<uplink-key>
helm install uplink oci://ghcr.io/agentgolf/charts/uplink --version <version> \
--namespace uplink \
--set uplinkKey.existingSecret=uplink-keyLinux / macOS:
If the install script tells you to add its install directory to PATH, add it before you run uplink.
curl -fsSL https://get.agent.golf/uplink | sh
export AGENTGOLF_UPLINK_KEY=<uplink-key>
uplinkThis runs Uplink in your shell. Uplink needs a restart policy, so on a Linux server, run Uplink as a systemd service.
The uplink instance shows in the Uplink section of the dashboard sidebar after its first health report. If it does not show, see Verify the Installation and Troubleshoot Uplink.
Each user connects their own harness with a personal publishing key (agk_...). The harness sends the key in the x-agentgolf-publishing-key header, so Agent Golf links the sessions to the user. A publishing key is a credential: keep it in the harness settings or a secret store, never in a repository. You need the Connect Your Harness permission.
For the CLI or dashboard setup below, use the OTLP/HTTP base URL of your uplink instance: a URL that the harness can reach, normally on port 4318, without a /v1/... path. Use http://127.0.0.1:4318/ only when the harness can reach the listener at that address and TLS is off. With an http endpoint on a host that is not loopback, the harness sends the key in plain text. Instead, turn on TLS on the uplink instance, and use an https endpoint. See Network. For the VS Code local agent of GitHub Copilot, use its separate gRPC setup instead.
Install the agentgolf CLI on the machine where the harness runs. See Install the CLI. For a new setup, the command below signs you in when needed and creates a personal publishing key. It writes the settings of Claude Code, Codex, and GitHub Copilot, and prints the settings of omp.
For another harness, replace claude-code with codex, omp, or copilot (GitHub Copilot). Replace the endpoint with your base URL. For an http endpoint on a host that is not loopback, the command needs --allow-insecure-endpoint.
agentgolf harness setup claude-code --endpoint 'http://127.0.0.1:4318/'For omp and copilot, the command prints export lines. Apply each set of lines only in the shell that starts its own harness, as the omp or GitHub Copilot page tells you.
Or in the dashboard:
- Open Settings > Uplink > Publishing Keys.
- Enter a Key Name.
- Select Create Publishing Key.
- Copy the secret.
- In Harness Setup, select Self-Hosted if Cloud Uplink is on.
- Enter that base URL in OTLP Endpoint of Your Uplink Instance.
- Select your harness in Harness.
- If a setup snippet shows
<publishing-key>, replace it with your publishing key before you apply the snippet. - Follow the setup steps that the card shows for your harness.
Restart the harness after you change its settings. To check the connection, run a task in the harness. Then open Sessions in the dashboard. If no session shows, see Troubleshoot Uplink. See Connect a Harness.
This table is a summary. Put -help after a command to show its flags, for example uplink backup -help. Run uplink backup and uplink restore with the same user and settings as the uplink instance. See State directory and Check the credential.
| Command | Result |
|---|---|
uplink |
Start the uplink instance. |
uplink -version |
Show the version. |
uplink -help |
Show the flags of the uplink instance. |
uplink auth create-key -name "<name>" |
Sign in one time, create an Uplink key, and print its secret. |
uplink auth login -key |
Sign in one time, create an Uplink key, and save it in the uplink-key file that the uplink instance reads. To name the key, add -name "<name>". Without it, the key gets the host name. |
uplink auth status |
When it finds a key source, show the source and the Agent Golf API URL. Check only that the key starts with agu_, without a call to Agent Golf. Never print the key or change anything. Exit with an error when there is no such key. |
uplink auth logout |
Revoke the Agent Golf sign-in in the local credentials file, and remove the file. |
uplink backup -to "<dir>" |
While the uplink instance runs, write a backup of the store directory to a new directory outside it. The backup holds no Uplink key and no credentials file. |
uplink restore -from "<dir>" |
Stop the uplink instance. If the old store directory exists, move it away. Restore a backup made with uplink backup into an empty or missing store directory. |
This table lists the main settings. Each setting is an environment variable. Some also have a flag, which overrides the variable. The defaults are those of the binary. Configure Uplink describes more settings.
| Variable | Flag | Default | Purpose |
|---|---|---|---|
AGENTGOLF_UPLINK_KEY |
Empty | The Uplink key. | |
AGENTGOLF_UPLINK_KEY_FILE |
-uplink-key-file |
Empty | A file that holds the Uplink key, for example a mounted Secret. |
AGENTGOLF_WORKSPACE_ID |
-workspace-id |
Empty | Stop when the key does not belong to this workspace. Leave it empty for the key of an organization. |
OTLP_HTTP_HOST, OTLP_HTTP_PORT |
127.0.0.1, 4318 |
The OTLP/HTTP listener for your harnesses. | |
OTLP_TLS_CERT_FILE, OTLP_TLS_KEY_FILE |
Empty | Turn on TLS on the OTLP listeners. | |
OTLP_ADMIN_HOST, OTLP_ADMIN_PORT |
127.0.0.1, 4319 |
/healthz, /readyz, and /metrics. |
|
UPLINK_STORE_DIR |
-store-dir |
~/.ag-uplink/prod/jetstream |
Where Uplink keeps session data. |
UPLINK_LOG_LEVEL |
-log-level |
info |
error, warn, info, debug, or trace. |
Full documentation starts at Uplink Overview. To upgrade, see Upgrade Uplink.