Before you install
- An Agent Golf workspace. See Create an Account.
- The Manage Uplink Keys permission, to create the Uplink key. See Default roles.
- A Docker host, a Kubernetes cluster, or a supported Linux or macOS host.
- On a Linux or macOS host, cosign in a directory of
PATH. The install script uses it to check the release signature, and stops without it. - A persistent, encrypted disk for the state directory.
- Outbound access to
api.agent.golfon port 443 and to the Agent Golf data connection on port 7422. See Network. - Inbound access to port 4318 from the machines where your harnesses run.
Supported systems
Windows, Intel Macs, and Linux distributions with musl libc, such as Alpine Linux, are not supported. Uplink supports an operating system release only while its vendor gives it full support.
Every release is on the Uplink releases page. The latest release is always at the same link.
Create an Uplink key
An Uplink key (agu_...) starts an uplink instance without a person signing in. The key belongs to your workspace, so the instance keeps running when a person leaves. Many uplink instances can use the same key.
Create the key in one of these ways:
- In the dashboard. Open Settings > Uplink > Self-Hosted. In the Keys That Start Uplink Instances card, enter a Key Name, for example the cluster or host that runs Uplink, and select Create Uplink Key. Copy the secret, then select Hide Secret. Agent Golf keeps only a digest and cannot show the secret again.
-
With
uplink auth create-key -name <name>. The command prints only the secret, so you can pipe it straight into a secret store. For example, to put the key in a Kubernetes Secret in a newuplinknamespace: -
With
uplink auth login -key. Run it where Uplink runs, with the same user, environment, and volume: in the container, in the pod, or on the host. The command names the key after the host, or after-name, and saves it in theuplink-keyfile in the state directory. A waiting uplink instance finds the file and starts. You do not restart it.
- The command prints a sign-in URL and a code.
- Open the URL in a browser where you are signed in to Agent Golf. On Approve a Device, confirm that Device Code matches the code in the terminal. Approve only codes from commands that you started.
- Select the workspace in Workspace, then select Approve.
- If your account has more than one organization, or more than one workspace in the organization, the terminal asks which one to use. Enter the number.
How Uplink reads the key
- Uplink reads the key from
AGENTGOLF_UPLINK_KEY, from the file inAGENTGOLF_UPLINK_KEY_FILE, or from theuplink-keyfile in the state directory. Uplink does not start with both variables set. See Uplink key. - Uplink reads a key file again before it gets each access token, so a changed file or Secret takes effect without a restart.
- Without a key, or with a key file that holds no usable key, Uplink keeps running but stays not ready and starts no engines. See Troubleshoot Uplink.
- A value in
AGENTGOLF_UPLINK_KEYthat does not start withagu_stops Uplink at start. See Uplink stops because the key variable holds no Uplink key. - When you revoke a key in Settings > Uplink > Self-Hosted, each uplink instance that uses it stops within 10 minutes. After a restart, it waits until it has a usable key.
Install and start Uplink
- Docker
- Kubernetes
- Linux and macOS
The image is
ghcr.io/agentgolf/uplink. Each release has two tags: <version> and uplink-v<version>. The Helm chart uses uplink-v<version>.Follow the log with
docker logs -f uplink.You can also start the container without AGENTGOLF_UPLINK_KEY, then run docker exec -it uplink uplink auth login -key. The command saves the key in the volume, and the waiting instance starts with it.The image runs as UID and GID 10004. A new named volume gets the correct owner. If you mount a host directory instead, make it writable by UID 10004. To change a setting, such as TLS, add an -e option and run the container again. See Configuration.Run Uplink as a systemd service
-
Install the binary for all users, so that it is in
/usr/local/bin:Withoutsudo, the script installs to~/.local/binwhen/usr/local/binis not writable, and the unit below does not find the binary. -
Create a system user for the service:
-
Create
/etc/uplink/uplink.envwith mode0600, owned by root, and put the Uplink key in it. systemd reads this file before it starts the service, so theuplinkuser does not need to read it.OTLP_HTTP_HOST=0.0.0.0lets harnesses on other machines reach the listener, and the TLS files turn on HTTPS. Theuplinkuser must be able to read the TLS files. When the harnesses run on the Uplink host, remove these three lines. See Network. -
Create
/etc/systemd/system/uplink.service. If you setUPLINK_INSTALL_DIR, changeExecStartto that directory. -
Start the service:
/var/lib/uplink/.ag-uplink/prod. Read the log with journalctl -u uplink.
Use a restart policy
In some recovery cases, Uplink exits with a non-zero status, for example after a revoked Uplink key or a credential change. Its service manager must then start it again. Always run Uplink with a restart policy, such asRestart=on-failure in systemd or --restart on-failure in Docker. The Helm chart has one.
Verified install
Use this procedure for CI and enterprise installs. It checksinstall.sh against the signed SHA256SUMS before it runs the script.
Verify the install script
Verify the install script
Install cosign first, in a directory on root’s
PATH, for example /usr/local/bin, because sudo can change PATH. Set version to the release that you install:set -eu stops the subshell at the first command that fails, so sudo runs install.sh only after each check passes:cosign verify-blobstops when the release workflow did not signSHA256SUMS.sha256sum --checkstops wheninstall.shdoes not matchSHA256SUMS. On macOS, useshasum -a 256 --check --ignore-missing SHA256SUMS.grep -qstops wheninstall.shhas no signature check.UPLINK_REQUIRE_SIGNATURE=1makes the script stop whenUPLINK_SKIP_SIGNATURE=1is also set in the environment. The script then checks the signature forversionbefore it checks the archive.
script_tag is the latest release tag, so the procedure checks the latest install.sh. To pin the script too, set script_tag to a known release tag, for example v<version>.Verify the download yourself
Verify the download yourself
To install without the script, download the archive for your system from the release page, then check it. The archive name carries the version: On macOS, use
uplink-v<version>-linux-amd64.tar.gz, uplink-v<version>-linux-arm64.tar.gz, or uplink-v<version>-darwin-arm64.tar.gz. Set version to the release that you install:shasum -a 256 --check --ignore-missing SHA256SUMS.Sizing
Resource use depends on how many developers run agents at the same time and on whether the harnesses send content. Start from these estimates for one active developer with content on, then size from your instance’s dashboard data.
For a shared instance, start with 2 vCPU and 4 GiB of memory. The Helm chart requests less by default. Scale up when the instance shows memory or CPU pressure. If harnesses get HTTP 429, see The harness gets HTTP 429 or 413.
Disk space
Uplink keeps all session data that it stores. It sets no limit on the data that it stores, and it does not delete stored sessions on its own, so its disk use grows for the life of the instance. Raw telemetry uses disk only until Uplink processes it. For the backlog limits, see Monitoring.Plan the disk
The table counts 0.25 GiB for each developer for each calendar day, adds 10 GiB of working space, and keeps 20% of the disk free. Agent Golf measured about 0.21 GiB for each developer for each day on its own Self-Hosted Uplink instances, with Uplink 0.1.43 to 0.1.46 and a developer who runs several agents at the same time for most of the day. Developers who run fewer agents use less disk. After the first week, find your own rate: divide the total under Storage on the instance page by the days and by the developers.
The working space holds the write-ahead log of the session database (about 1.2 GiB), the space that the database uses to merge its files (1.6 GiB for each thread of
UPLINK_RECORD_STORE_THREADS), and the raw telemetry backlog when Uplink falls behind (at most 5 GiB by default).
If you write backups with uplink backup to the same disk, add space for them. A backup can grow to the size of the stored data. See State directory.
By default, Uplink limits its buffers to 75% of the free disk at start, and UPLINK_NATS_MAX_FILE_STORE sets a fixed limit. The stored sessions are in an embedded database that has no limit. See Storage.
Watch disk use
Uplink does not report the free space of its disk, and it does not warn before the disk is full. Monitor the free space yourself, and alert when less than 20% of the disk is free.- Dashboard: Storage under Capacity on the instance page shows the disk use of Uplink and its split. It does not show the size of the disk or its free space.
-
Linux, macOS, or Docker host:
df -h <state directory>shows the free space of the disk, anddu -sh <state directory>shows the use of Uplink. With Docker,docker system df -vshows the size of theuplink-statevolume. -
Kubernetes: the Uplink image has no shell, so
kubectl execcannot rundf. Use the kubelet volume metrics, when your storage driver reports them. For example, in Prometheus:
Grow the disk
Grow the disk before it is full. The stored sessions stay on the disk. Kubernetes. The storage class of the volume must allow expansion. This command showstrue when it does:
kubectl --namespace uplink get pvc data-uplink-0 shows the new capacity when the expansion is complete.
The claim keeps its new size through upgrades. helm upgrade keeps the size of the claim template that you installed with, also when persistence.size has another value. Argo CD and helm template cannot read the cluster, so they use persistence.size. With them, keep persistence.size at the size that you installed with: Kubernetes does not let a StatefulSet change its claim template, so an update with a different size fails.
When the storage class cannot expand volumes, move the data to a new claim:
- Stop Uplink:
kubectl --namespace uplink scale statefulset uplink --replicas=0. - Create a larger claim in a storage class that allows expansion.
- Copy all files from
data-uplink-0to the new claim with their owner and permissions, for example with a pod that mounts both claims and runscp -a. - Set
persistentVolumeReclaimPolicy: Retainon both volumes. Delete both claims, and removespec.claimReffrom the new volume. Then create the claimdata-uplink-0again, with the storage class and the size of the new volume and withspec.volumeNameset to it. - Start Uplink:
kubectl --namespace uplink scale statefulset uplink --replicas=1.
resize2fs or xfs_growfs. To move to a larger disk, stop Uplink, copy the state directory with cp -a, and start Uplink on the new disk. With Docker, mount the new directory or volume at /data/.ag-uplink. Keep the old copy until new sessions show in Sessions.
When the disk is full
When the disk is full, Uplink stops storing data:- The session database refuses its writes. Uplink logs
uplink exitingwithengine agent-session-storage failedandNo space left on device, and exits. Uplink can also log a line that ends withwill be DISABLED. - The service manager starts Uplink again. While the disk stays full, Uplink can stop again at each start.
- Harnesses get HTTP 503 or cannot connect. Each harness retries for a limited time and then drops the telemetry, so Uplink never gets it.
- Uplink keeps the sessions that it stored before. At the next start with free space, the session database recovers from its write-ahead log.
- Do not delete files in the state directory to free space. For example, the
.logfiles in therecordsdirectory are the write-ahead log of the session database. - Grow the disk. See Grow the disk. On a host, you can also free space outside the state directory.
- If Uplink does not start on its own, restart it.
- Make sure that Health on the instance page shows no engine down, and that new sessions show in Sessions.
MAX_OTLP_RAW_AGE_SECS), so recover within that time.
Metrics that Uplink does not store
Uplink accepts some omp and Codex metrics with success but does not store them, because Agent Golf makes no data from them. Uplink stores the other metrics, for example the Claude Code metrics, and all logs and traces. The GitHub Copilot metrics carry no session ID, so Agent Golf makes no session data from them. Agent Golf uses no Codex metrics, so turn them off in Codex. See Codex.Dropped metrics and how to count them
Dropped metrics and how to count them
Uplink drops a metric when its name is in this list:
Uplink keeps a listed gauge or sum metric when one of its data points has a
gen_ai.conversation.id or conversation.id attribute or an exemplar, because Agent Golf can make session data from that point.The counter uplink_ingestion_dropped_metric_points_total on /metrics counts the dropped data points, with the metric name in its name label. Uplink also sends this counter to Agent Golf with its health reports, unless you set UPLINK_METRICS_PUSH=false. The counter holds only listed metric names and point counts. The dropped metric data does not leave the instance.Require a publishing key
Uplink refuses an export without a well-formed user publishing key (agk_...) with HTTP 401, and no setting turns this off. It also refuses a revoked key. At start and every minute, it reads the revoked keys of its workspace from Agent Golf. It keeps the last list in its state directory. Each user needs a key in each harness. See Publishing keys and The harness gets HTTP 401.
Next steps
- Verify the installation to confirm that the uplink instance connects.
- Create a publishing key and connect each harness. Open Settings > Uplink > Publishing Keys, or run
agentgolf harness setup <harness> --endpoint <uplink-listener>. See Connect a Harness. - Run a task in the harness, and find the session in Sessions.