This page covers the self-hosted runner. It is the choice when your code, keys and secrets must stay
inside your own perimeter, when you use a model on your own network, or when you need iOS builds.
The runner is published openly — source at
github.com/Nickbur/remigent_runner, images on
registry.burakov.net,
free to pull without an account — so you can read exactly what runs on your machine.
How the runner talks to Remigent
- Outbound only. The runner phones home over HTTPS: it picks up jobs, sends heartbeats and reports results. Remigent never needs to reach into your network, so you don’t open any ports.
- Its own identity. When you enroll a runner in your workspace, you get a runner ID and a secret, shown once. The runner trades the secret for short-lived tokens. You can revoke a runner at any time.
- Rides out short outages. If Remigent is unreachable, the runner keeps finishing the work it holds for up to 24 hours, then pauses until the connection is back.
- Resumable. Jobs are checkpointed, so a restart resumes the work or rolls it back cleanly.
What stays on your machine
- your source code and every piece of working data derived from it;
- your model keys and git credentials.
Requirements
- A Linux server, x86-64 or ARM64, with Docker Engine and the Compose plugin (or a Mac — see iOS builds). On Ubuntu or Debian the runner’s install script sets everything up for you.
- gVisor registered with Docker as the
runscruntime — it is what isolates the sandbox from your host. The install script handles it; on other distributions, see the gVisor install guide, then runsudo runsc installand restart Docker. - Resources for parallel sandboxes: each sandbox gets 2 CPUs and 4 GB of memory by default, so the default two parallel jobs want at least 4 CPUs, 8 GB of memory and 80 GB of disk.
- Outbound HTTPS to Remigent, your git host, your model providers,
registry.burakov.netand the package registries your projects use.
Set it up
1
Enroll the runner
In Connections → Compute → Runners, name the runner and choose Enroll runner. Copy the three lines it
shows —
REMIGENT_API_URL, REMIGENT_RUNNER_ID and REMIGENT_RUNNER_SECRET. The secret is shown only once.2
Get the runner
On your server:
3
Prepare the server
On Ubuntu or Debian, install Docker Engine, the Compose plugin and gVisor in one go — the script skips
whatever is already there and ends with a test container under gVisor:
4
Configure it
In
.env, set:- the three values from enrollment;
EGRESS_ADMIN_TOKEN— a long random token, for example the output ofopenssl rand -hex 32;REMIGENT_PROVIDERS— how the runner reaches the models: your OpenRouter key and/or your own model server (see below);REMIGENT_GIT_CREDENTIALS— only for git hosts other than the Remigent GitHub App (see below).
5
Start the stack
6
Check it's online
The runner shows as online in Connections → Compute, with its platform and sandbox runtime. On the
server,
docker compose ps shows the services as healthy. New work for your projects now runs on this
machine.Configuration
Models
Remigent runs only on open-weight models it has selected. A list with your OpenRouter key and your own vLLM server looks like this:openrouter and local — any OpenAI-compatible server on your own hardware. For a local
server, options.models lists the models it serves, comma-separated, and options.embeddingModel its embedding model.
The model IDs to use are shown in the dashboard under Connections → Models when you choose your own server; write
<ID>=<name> when your server serves a model under another name. Whatever your server doesn’t serve goes through
OpenRouter. See Open-weight models. Put the list on one line in .env.
Git and tool credentials
Repositories connected through the Remigent GitHub App need nothing here: the runner receives a short-lived token for each job. For any other git host — GitLab, Gitea or your own server — the credentials stay on the runner: give it a token or an SSH deploy key per host:Images and updates
Every image is built for x86-64 and ARM64. The
1 tags follow the latest 1.x release; pin an exact version such as
1.2.3 if you prefer to update by hand. The runner pulls the sandbox images itself the first time it needs them.
To update:
Stronger isolation
gVisor gives every sandbox its own user-space kernel. If your policy requires hardware virtualization, install Kata Containers, register it with Docker as a runtime and setDOCKER_RUNTIME to that
runtime’s name — for example kata-runtime, or kata-fc for Kata on Firecracker microVMs. Nothing else changes.
iOS builds
iOS apps can only be built on macOS. On a Mac, the runner builds in a macOS virtual machine with Xcode (via Tart) instead of a Docker sandbox, so it runs directly on the Mac rather than in Docker:1
Prepare the Mac
Install Tart and Node.js 24, and create an SSH key the runner will use to reach the VM.
2
Configure the runner
In
.env, set SANDBOX_DRIVER=tart, TART_IMAGE (default: Cirrus Labs’ macOS image with Xcode),
TART_SSH_USER and TART_SSH_KEY (the path to the private key authorized in the image), plus the enrollment
values and your model providers.3
Start it
platform: macos are then sent only to this runner.
Revoking a runner
Revoke a runner in Connections → Compute → Runners. It stops receiving work immediately, and the work it held is handed to another runner. A revoked runner is refused the next time it starts; to move to a new machine, enroll a new runner there and revoke the old one.Troubleshooting
The sandbox never receives your model keys or git credentials. The runner pushes branches and opens
pull requests itself, from outside the sandbox. See Security & privacy.