Docs Connect your systems

Runners

Run an organisation's outbound work from inside your own network with a runner you host.

A runner is a small program you run inside your own network. It connects out to Entropix and makes your organisation's outbound calls from there: calls to your model endpoints, your tool servers, your cloud accounts and your Git hosts. Entropix never connects in to it. Use a runner when those systems are only reachable from inside your network, or when your security team wants every call to your systems to start from an address you control.

In the portal Settings › Runners (https://portal.entropixs.com/settings/runners) Admin adds, re-registers, turns off and deletes runners. Everyone else in the organisation (Member and Viewer) sees the page, the jobs and their steps.

Before you start

  • A runner is optional. With no runner, everything runs on the portal, as it always has.
  • Once one egress runner has connected, all of your organisation's outbound work runs on runners. If none is online, that work pauses until one is. Plan for at least one runner that stays up, or two for safety.
  • Pick where it runs: a Linux machine, a Docker host or a Kubernetes cluster that can reach both your portal's address over https and the systems your agents use.
  • Entropix publishes no runner image or chart: build the image from the Entropix source: docker build -f deploy/runner/Dockerfile -t entropix-runner:0.2.0 . The Helm chart is in deploy/runner/helm/entropix-runner in the same source. The image includes git and ssh; a runner you run as a plain binary needs both on the machine.

Test runners

A runner can also run in tests mode, to run the review tests of your merge requests in throwaway containers or Pods. A test runner takes test jobs and nothing else, needs its own registration, and does not put your organisation on runners: only an egress runner (the kind this page is about) does. See Runners in tests mode.

What runs on a runner

The agent itself (its plan, its turns and everything it stores) stays on the portal. Only the calls that leave for your systems move to the runner.

On the runnerStill on the portal
  • Calls to the model endpoints your organisation added on Settings › Models, including their Test button
  • Calls to your tool servers (MCP), which includes your code sandbox and Kubernetes servers
  • Calls to AWS and Google Cloud
  • http_request, fetch_url (Can read the web), and the http check of netcheck
  • Git fetches over SSH for reviews and repository scans
  • Chat API callbacks
  • The daily checks of your code sandbox and AWS keys
  • The portal's own default model (portal default), which the Entropix team runs
  • Calls to GitHub's and GitLab's APIs: statuses, comments and merge request reads
  • The security reviewer's package advisory lookups
  • A connected Mem0 memory
  • Slack, Discord and Teams messages

Two settings use the runner's own credentials instead of ones stored on the portal:

  • On Settings › Models, tick Key from the runner — the organisation's runner adds its own key; leave API key blank. The runner adds ENTROPIX_RUNNER_LLM_API_KEY to each call (and, if set, sends it to ENTROPIX_RUNNER_LLM_BASE_URL).
  • When adding an AWS account on AWS and Google Cloud, an organisation on runners can choose Use the runner's own AWS role instead (no key stored). The runner then signs with its own AWS credentials: the usual environment keys, else a web identity token (for example IRSA on EKS), else the instance role.

Add a runner

  1. Open Settings › Runners.
  2. In Name, give the runner a name, such as office-1. It must be one line of at most 60 characters, and different from your other runners' names.
  3. Optionally add Labels, separated by commas or spaces, such as aws, eu-west-1. They are for your own reference: at most 10, of at most 40 characters each, stored in lower case.
  4. Choose Add a runner. A panel, Install <name>, shows a registration token (it starts ereg_) inside ready-made install commands. The token works once, for one hour, and is never shown again.
  5. Copy one of the three commands (Docker, Helm or Linux binary) and run it where the runner will live. See Install it.
  6. Reload Settings › Runners. Within a few seconds the runner shows as online, with its host, slots and version.
Good to know

A runner that has been added but has never connected is pending and changes nothing. Your organisation moves to runners the moment the first one connects.

Install it

On first start the runner swaps its token for its own long-lived credential (it starts erun_) and keeps it. From then on it needs only the credential.

Docker

docker run -d --name entropix-runner --restart unless-stopped \
  -e ENTROPIX_PORTAL_URL=https://portal.entropixs.com \
  -e ENTROPIX_RUNNER_TOKEN=ereg_… \
  -v entropix-runner:/var/lib/entropix-runner \
  entropix-runner:0.2.0

The volume keeps the credential, so the container can restart without a new token.

Helm

The chart takes the runner's credential, not the token, so the first command swaps the token for it:

CRED=$(docker run --rm \
  -e ENTROPIX_PORTAL_URL=https://portal.entropixs.com \
  -e ENTROPIX_RUNNER_TOKEN=ereg_… \
  entropix-runner:0.2.0 register)
helm install entropix-runner deploy/runner/helm/entropix-runner \
  --set portalURL=https://portal.entropixs.com \
  --set credential="$CRED"

Useful chart values:

ValueDefaultWhat it does
portalURLnoneYour portal's address
credential or existingSecretnoneThe credential itself, or the name of a Secret holding it under the key credential
slots4Jobs one pod runs at once
allowemptyCIDRs the runner may reach, comma-separated (see Security)
llm.existingSecret, llm.baseURLemptyThe runner's own model key (a Secret with the key api-key) and endpoint
replicas1Pods to run. Every pod shares the one credential and gets only its own jobs; the page shows them as one runner.
autoscaling.enabledfalseScale between minReplicas (1) and maxReplicas (10) on the waiting jobs, waitingPerPod (2) per pod. It reads the entropix_runner_queue_waiting metric through a custom-metrics adapter, such as the Prometheus Adapter.
serviceAccount.annotationsemptyFor AWS IRSA or GKE workload identity
resources256Mi requested, 1Gi limitMemory for the pod; each slot may hold an answer of up to 32 MiB while it relays it
gitCacheSize4GiThe most disk the pod's temporary Git caches may take

The chart runs the runner as a non-root user with a read-only root file system and no added capabilities, and adds a disruption budget when it runs more than one pod or autoscales.

Linux binary

ENTROPIX_PORTAL_URL=https://portal.entropixs.com \
ENTROPIX_RUNNER_TOKEN=ereg_… \
./entropix-runner

The binary keeps its credential in ~/.entropix-runner/credential. entropix-runner register swaps the token, prints the credential and exits. entropix-runner version prints the version.

Runner settings

SettingDefaultWhat it does
ENTROPIX_PORTAL_URLrequiredYour portal's address. It must be https.
ENTROPIX_RUNNER_TOKENnoneThe one-time registration token, for the first start
ENTROPIX_RUNNER_CREDENTIALnoneThe credential, given directly instead of a token
ENTROPIX_RUNNER_STATE~/.entropix-runner/credential (image: /var/lib/entropix-runner/credential)Where the credential is kept
ENTROPIX_RUNNER_SLOTS4Jobs it runs at once, from 1 to 64
ENTROPIX_RUNNER_ALLOWnoneCIDRs it may reach, separated by commas or spaces
ENTROPIX_RUNNER_LLM_API_KEYnoneIts own model key, for endpoints set to Key from the runner
ENTROPIX_RUNNER_LLM_BASE_URLnoneIts own model endpoint, for the same
ENTROPIX_RUNNER_GIT_DIRthe system's temporary folderWhere it keeps temporary Git caches
ENTROPIX_RUNNER_METRICS127.0.0.1:9464 (image: 0.0.0.0:9464)Address for /metrics and /healthz; empty serves neither

The runner honours HTTPS_PROXY and HTTP_PROXY. Its /healthz answers ok, and /metrics gives Prometheus gauges and counters: entropix_runner_slots, entropix_runner_jobs_running, entropix_runner_queue_waiting, entropix_runner_jobs_done_total, entropix_runner_ops_total and entropix_runner_ops_failed_total.

Watch your runners

The top of Settings › Runners gives one verdict with a reason, and a Refresh link. The Runners row on Settings shows the same verdict, such as "Healthy · 2 online", or "None: work runs on the portal".

VerdictWhenWhat it says
No runnersNo runner is on, or none has connected yet"No runner is set up: the organisation's work runs on the portal." or "No runner has connected yet: the organisation's work runs on the portal until one does."
OfflineRunners are on, but none has polled in the last 90 seconds"No runner is online: chats and reviews are paused until one is."
OverloadedA job has waited over 10 minutes, or a job was skipped in the last hourThe wait or the skips, then "Add a runner or more slots."
BusyJobs wait over 30 seconds, or over 80% of the slots have been in use for 15 minutesThe wait or the use, then "Add a runner or more slots."
HealthyNone of the above"Jobs start within 30 seconds."

Once you have a runner, the page also shows:

  • Four tiles: running now / slots, waiting, jobs today and failed today.
  • Last 24 hours: a chart of jobs running and waiting, a point every 10 minutes, with the peak ("Peak 3 running and 1 waiting at 14:20 UTC") or "No jobs in the last 24 hours".
  • Runners: each runner's name, labels and host, its State (online, offline, pending or off), its Mode (Egress, or Tests · Docker or Tests · Kubernetes), Last seen, Slots in use, CPU, Memory and Version.
  • Jobs: the newest 100, filtered by All, Running, Waiting, Done or Failed (Failed includes jobs skipped for want of a runner). Columns: Time, Kind, For (with a link to the review or PRD where there is one), Runner, Status and Duration. A kind is one of Chat reply, Goal step, Review, Review diagrams, PRD draft, Scan, Skill summary, Memory, Page check or Background job.

One job

Choose a job's time to open its page (/settings/runners/jobs/{id}). It shows What asked, For, Runner, Started, Attempts, Steps and, if it failed, the Error. The Steps table lists every call the job made through the runner, in order: Time, Kind, a short Call line (the method, host and path, or the Git host and repository; never a query or a secret), Status (queued, delivered, done or lost) and Duration. Jobs and their steps are kept 30 days.

Alerts

Entropix raises an alert when a problem lasts:

AlertRaised after
"No runner online: chats and reviews are paused."5 minutes offline
"Runners busy: …"30 minutes busy
"Runners overloaded: …"At once
"N runner jobs failed in the last hour."At once, when more than 5 jobs failed in the last hour

Each alert is sent once per problem: it shows in Home's Needs you and is posted, with a link to Settings › Runners, to your organisation's review channel in Slack, Discord or Teams if you set one (see Set up reviews). It clears when the problem ends.

Re-register, turn off or delete

Each runner's row has three actions for an Admin:

  • Re-register makes a new one-time token, shown in the Install <name> panel again. Use it when you lost the token or want to move the runner. The old credential stops working once the new token is swapped.
  • Turn off gives the runner no new jobs; jobs it holds finish. Turn on brings it back.
  • Delete asks you to tick Delete <name>: its credential stops working, then Delete runner. Its past jobs stay in the list.

If you turn off or delete every runner, your organisation's work goes back to the portal.

How it works

  • Polling. The runner asks the portal for work and holds the request open for up to 25 seconds. A runner counts as online if it polled in the last 90 seconds.
  • Jobs and leases. Each piece of work (a chat reply, a review, a goal step) becomes a job, leased to one runner for 60 seconds and renewed by every poll. Each outbound call of the job is one step, handed to the runner that holds the job.
  • Waiting. While a job waits for a free slot, the portal shows "Waiting for a runner · waiting …". A job no runner takes within 10 minutes is skipped and fails with "no runner took this job within 10 minutes — add a runner or more slots on Settings › Runners". A page button that calls out (such as Test on a model) waits up to 30 seconds for a runner.
  • No runner online. Work pauses rather than fails. The portal's queue line reads "No runner online: paused · waiting …". In Slack, Discord or Teams the agent posts "No runner is online for this organisation, so <agent> can't answer yet. Your message is queued and will be answered when one is." The Chat API refuses new messages with 503 paused and marks waiting ones no_runner_online (see the message object).
  • A lost runner. If a runner stops mid-job, its lease runs out and another runner takes the job. A model call is sent again. A tool call that may already have run is never repeated: it fails with "the runner was lost during this call; it may or may not have run", and the agent sees that.
  • Stopping. On a stop signal the runner takes no new work and finishes what it holds, for up to 2 minutes.
  • Your own queue. Once your organisation is on runners, its jobs no longer wait behind other organisations' work for the portal's job slots.

Security

  • The runner only connects out, over https. You open no inbound port (other than metrics, if you want them scraped).
  • The credentials a call needs (model keys, tool server headers, cloud keys, SSH keys) are stored sealed on the portal and travel inside that one call. The runner holds them in memory only and never writes them to disk.
  • The runner refuses link-local and cloud metadata addresses. Set ENTROPIX_RUNNER_ALLOW to narrow what it may reach further.
  • A runner credential opens only the runner endpoints, for its own organisation. It is no use on the portal's pages or on /mcp.

The runner endpoints

The runner calls these itself; you never call them by hand. They are listed so your proxy and firewall can allow them (see Webhooks and public endpoints).

EndpointCredentialWhat it does
POST /hooks/runner/registerThe one-time token, in the bodySwaps a live token for the runner's credential, once. A used, expired or unknown token is 401.
POST /hooks/runner/pollBearer erun_…Sends the runner's health (version, host, slots, CPU, memory) and takes new jobs and calls. Held open up to 25 seconds.
POST /hooks/runner/ops/{id}Bearer erun_…Returns one call's result. Up to 72 MiB.
POST /hooks/runner/ops/{id}/chunkBearer erun_…Uploads one piece, up to 4 MiB, of a Git fetch's result
GET /hooks/runner/queueBearer erun_…The organisation's waiting and running jobs and slots, for scaling

What you can and can't do

You can
  • Run as many runners as you like, each with 1 to 64 slots, as a binary, a container or a Helm release.
  • Scale a Helm release on its queue.
  • Keep model keys and AWS credentials on the runner instead of the portal.
  • See every job a runner ran and every call it made, for 30 days.
  • Turn runners off to send work back to the portal.
You can't
  • Send only some agents or some kinds of work to runners: it is all of the organisation's outbound work, or none.
  • Pick which runner takes a job. Labels are only for your reference.
  • Run the agent itself on the runner, or keep its chats and records off the portal.
  • Move Git host API calls, Slack, Discord or Teams messages, or the portal's default model to a runner.
  • Run netcheck's dns, tls and port checks once your organisation is on runners: only http and cidr work.
  • See a registration token again after you leave the page.

Troubleshooting

The runner exits with "the portal refused this runner's credential — re-register it on Settings › Runners"
The runner was deleted, or re-registered and its new token was used somewhere else. Choose Re-register, remove the credential the runner kept (the file in ENTROPIX_RUNNER_STATE, or the Docker volume), and start it again with the new token.
The first start exits with "register: the portal refused this runner's credential — re-register it on Settings › Runners"
The registration token was used already, is more than an hour old, or was replaced by a newer Re-register. Choose Re-register and use the new token.
"no credential and no ENTROPIX_RUNNER_TOKEN"
The runner has no kept credential and was started without a token. Copy the install command from the Install <name> panel, or Re-register for a new one.
"the portal URL must be https (only a loopback portal may be http)"
Set ENTROPIX_PORTAL_URL to your portal's https:// address.
The verdict says Offline, but the runner is running
The runner cannot reach the portal. Check its log, its outbound proxy (HTTPS_PROXY) and that your firewall allows it out to the portal on port 443.
Calls fail from the runner but worked from the portal
The runner is in a different network. Check that it can reach the model endpoint, tool server, cloud API or Git host, and that ENTROPIX_RUNNER_ALLOW, if set, includes it. The job's Steps table shows which call failed.
Jobs fail with "no runner took this job within 10 minutes"
All runners were busy or offline for 10 minutes. Add a runner, or raise ENTROPIX_RUNNER_SLOTS or the chart's slots.
A tool call failed with "the runner was lost during this call; it may or may not have run"
The runner stopped mid-call. Check in the tool's own system whether the change happened before you ask the agent to try again.