Skip to content
Open the app

Self-hosting an agent ​

An agent can run on a machine you control: a Ubuntu 24.04 server or VM, a container on a Docker host, or a pod in a Kubernetes cluster. You create the agent in the app on Your own machine; at Launch the app gives you a single-use token and the commands that install it. The machine installs the desktop, Chrome, the coding app and the Kadmo runtime in about half an hour, checks in, and keeps one outbound connection open to the app, the agent channel, down which the app sends it work with no inbound port open on your network. This page covers the token, the three ways to run an agent, the network, sizes, and how to update, move and remove one.

Coming from the app's How to attach an agent →? Jump to Ubuntu 24.04, Docker or Kubernetes.

When to self-host ​

On your own machine
The machineYours: its hardware, its operating system, its network and its upkeep
BillingKadmo bills nothing for the machine. The agent's jobs use the agent app and model provider you pick, as on any agent
The agent limitA self-hosted agent counts against your account's agent limit, from Launch on, while it still waits for its machine too
One agent per machineOne machine, container or pod runs one agent. Several agents can share a Docker host or a cluster, each in its own container or pod
What the app does for youIt sends work, shows the live desktop, and updates the agent's software. It does not power a machine it does not own: Reboot is disabled, and there is no Stop or Start

The other places an agent can run, and what each costs: Where an agent can run.

How it works ​

The token works once and for 60 minutes. At the first check-in the app exchanges it for the agent's own token, which stays on the machine; the single-use token is never needed again.

Before you start ​

You needWhy
The admin role on your accountCreating an agent is an admin action, and only the admins of the account that owns an agent can mint its tokens
Room under your agent limitA waiting agent counts against it
A machine, a Docker host or a clusterThe requirements are in each way's section, and the sizes in Sizes
The networkOutbound HTTPS (443) to the app, with WebSocket upgrades allowed. Nothing connects in: see The network
For Docker and Kubernetes: privileged containers or podssystemd runs as the container's first process, and the agent runs its own Docker

Create the agent ​

  1. On Agent Fleet, click Create Agent.
  2. On Machine, under Where it runs, pick Your own machine (Ubuntu 24.04, Docker or Kubernetes · your hardware, with the chip Free). On an account where the wizard offers no Kadmo machine and no cloud is connected, it is already picked.
  3. In place of region and size, the step shows What you'll need:
    • A machine you control: Ubuntu 24.04, or any host that runs Docker or Kubernetes.
    • 2 vCPU, 8 GB of memory and 40 GB of disk per agent.
    • Outbound HTTPS (port 443) from the machine.
    • At Launch you get a single-use token and the commands that install the agent.
    • Nothing is billed — the machine is yours.
  4. The software, roles, workspaces and names are the same as for any agent: see Create an agent. The build sheet reads Your own machine · Ubuntu 24.04 · Docker · Kubernetes and Est. total reads €0.
  5. Click Launch. On your own machine the whole batch is one request: either every agent in it is created, or none is and the wizard says why.

The wizard's last view then shows one panel per agent:

PartWhat it shows
Heading‹name› is waiting for its machine
Agent token · single useThe token, with Copy, Mint again and how long it has left (expires in N min). Under it: The token works once and for 60 minutes. Mint again gives a new one; one minted before stays valid until it expires.
Ubuntu 24.04 · Docker · KubernetesThree tabs, each with its command, the token already filled in, and a Copy button
The waiting lineWaiting for ‹name› to check in for the first time…, which turns into Connected · ‹name› is Online at the first check-in

Close keeps the agent waiting for its machine; Open the agent page takes you there.

The token after Launch ​

  • The token works once and for 60 minutes. The machine spends it at its first check-in, at the end of the install, about half an hour after the command starts, so the token must still be valid then: run the command within half an hour of minting, or Mint again first.
  • Mint again gives a new token. A token minted before stays valid until it expires or is used: it is never revoked.
  • Closed the wizard? On Agent Fleet a waiting agent is a strip under Provisioning: Waiting for its machine · token expires in N min, with Show token, or Waiting for its machine · token expired. Show token opens the same panel.
  • On the agent's page, the Agent token panel shows the token, Mint again (or Mint a token when none is live) and Show the commands. It shows only to the admins of the account that owns the agent, and only until the agent's first check-in.
  • Run one machine per agent. When two machines each check in with a token of one agent, the last one to check in holds the agent, and the other's check-ins are refused.

Ubuntu 24.04 ​

The installer turns a Ubuntu 24.04 machine into an agent.

RequirementDetails
Operating systemUbuntu 24.04, ideally a fresh install
Accessroot, or a user who can run sudo
A dedicated machineThe installer creates the agent user and installs a desktop session, Chrome and background services. Do not run it on a computer you use for other work
Size2 vCPU, 8 GB of memory and 40 GB of disk: see Sizes

The Ubuntu 24.04 tab's command, for an agent named my-agent-1:

bash
curl -fsSL https://app.kadmo.ai/install.sh | sudo AGENT_TOKEN=your-single-use-token AGENT_NAME=my-agent-1 AGENT_ROLE=se AGENT_COMPONENTS='claude-code,chrome,kadmo-runtime,kadmo-extension,knowledge-packs' KADMO_PLUGINS=screen-record PORTAL_URL=https://app.kadmo.ai bash

Copy it from the app, which fills in the token, the agent's name, its role, and its profile's components and plugins (here the Kadmo SWE Full Stack profile's). Pass the token on the command line as shown; never write it into a file or a machine image.

Installer variables ​

VariableRequiredDefaultMeaning
AGENT_TOKENyesnoneThe single-use token
AGENT_NAMEyesnoneThe agent's name in the app; keep the one the app filled in
PORTAL_URLyesnoneThe app's address, https://app.kadmo.ai. It has no default, so an agent never enrols anywhere else
AGENT_ROLEnoseThe agent's starting role: se, qa or sd
AGENT_COMPONENTSnononeThe components to install, comma-separated; the app's command carries the agent's list. The Kadmo runtime, Chrome, the extension and the knowledge packs come only with an install: without them the agent takes no job, and its components pass never adds them later
KADMO_PLUGINSnononeThe Kadmo runtime's plugins, comma-separated; the app's command carries the agent's list
AGENT_PASSWORDnorandomThe password of the agent user, for remote-desktop logins
AGENT_RUNNERnothe standard setupSelects another variant of the agent's setup. Leave it unset
RUNNERS_REFnothe app decidesWhen the app's command carries it, keep it as printed

What the installer does ​

  1. Checks that it runs as root and that PORTAL_URL, AGENT_TOKEN and AGENT_NAME are set.
  2. Installs curl and tar when the machine lacks them.
  3. Downloads the agent's setup scripts (the runners) from the app, with the token. The machine never downloads them from anywhere else.
  4. Runs them: the desktop session (Xvfb, XFCE, x11vnc), Google Chrome, Node.js, Claude Code and the Kadmo runtime, which runs as the kadmo.service systemd unit and sends the agent's check-ins, with the timers that send its health and run its components pass.
  5. Checks in to the app with the token. The app exchanges it for the agent's own token, and its answer asks the agent to keep its agent channel open.

The Kadmo runtime fetches the agent ops (the built-in roles and the workflows playbooks run) itself, at its first start.

The install takes about half an hour. Every step is logged with a timestamp to /var/log/kadmo-install.log. The installer is safe to run again: on a machine it already finished, it checks the desktop, Chrome and runtime services and exits with already installed. To start over from scratch, use a fresh machine.

Docker ​

The image kadmoai/kadmo-agent on Docker Hub runs one agent in a container: Ubuntu 24.04 with systemd as its first process. On the container's first boot it runs the same installer as a Ubuntu machine, so a container agent is the same agent, with the same Self Update and the same components.

RequirementWhy
A linux/amd64 or linux/arm64 hostThe image holds both builds and Docker pulls the host's: an Intel or AMD server, an ARM server, or a Mac with Apple silicon through Docker Desktop
Rootful Docker 20.10 or later, on cgroup v2systemd runs as the container's first process, with a private cgroup namespace
Privileged containers allowedsystemd and the agent's own Docker need it. A privileged container is root on the host: give agents a host or VM of their own
About 40 GB of disk per agentThe installed root filesystem (about 12 GB) plus the four volumes

The Docker tab's command:

bash
docker run -d --name my-agent-1 \
  --privileged --cgroupns=private \
  --tmpfs /run --tmpfs /run/lock --shm-size=2g \
  --stop-signal=SIGRTMIN+3 --stop-timeout 120 --restart unless-stopped \
  -v my-agent-1-home:/home/agent -v my-agent-1-etc:/etc/kadmo \
  -v my-agent-1-docker:/var/lib/docker -v my-agent-1-containerd:/var/lib/containerd \
  -e KADMO_TOKEN="your-single-use-token" -e KADMO_AGENT_NAME="my-agent-1" -e PORTAL_URL="https://app.kadmo.ai" -e AGENT_COMPONENTS="claude-code,chrome,kadmo-runtime,kadmo-extension,knowledge-packs" -e KADMO_PLUGINS="screen-record" \
  kadmoai/kadmo-agent:24.04

For an agent whose role is not se, the app adds -e AGENT_ROLE="qa" (or sd) after PORTAL_URL.

The flags ​

FlagWhy
--privilegedsystemd, the agent's own Docker
--cgroupns=privatesystemd owns its own cgroup tree
--tmpfs /run --tmpfs /run/locksystemd needs /run on tmpfs
--shm-size=2gShared memory for Chrome
--stop-signal=SIGRTMIN+3systemd's clean shutdown
--stop-timeout 120Docker's 10-second default would kill systemd halfway through its shutdown
--restart unless-stoppedThe agent comes back after a host reboot
four -v volumesThe agent's data and state; see below
the -e valuesWhat the first boot installs from: the token, the name, the app's address, and the agent's components and plugins

Two options go before the image name when you need them: --cpuset-cpus 0-1 pins the agent to its own CPUs (see Several agents on one host), and -p 127.0.0.1:3389:3389 opens remote desktop (RDP) on this host for a person. Never publish VNC (port 5910): it has no password.

Volumes ​

Path in the containerVolumeHolds
/home/agentmy-agent-1-homeThe agent's workspace, its repositories and the coding app's state
/etc/kadmomy-agent-1-etcThe install markers and the agent's configuration
/var/lib/dockermy-agent-1-dockerThe agent's own Docker
/var/lib/containerdmy-agent-1-containerdThe same, for containerd

Everything else the installer installs lives on the container's root filesystem.

Environment ​

NameRequiredWhat
KADMO_TOKENyesThe single-use token
KADMO_AGENT_NAMEyesThe agent's name in the app
PORTAL_URLyesThe app's address, https://app.kadmo.ai
AGENT_ROLEnose (the default), qa or sd
AGENT_COMPONENTSnoComponents to install on the first boot, comma-separated; the app's command carries the agent's list. The Kadmo runtime, Chrome, the extension and the knowledge packs come only with an install: without them the agent takes no job, and its components pass never adds them later
KADMO_PLUGINSnoThe Kadmo runtime's plugins, comma-separated; the app's command carries the agent's list
RUNNERS_REF, CLAUDE_PLUGINS, CLAUDE_PLUGIN_MARKETPLACES, KADMO_DEFAULT_REGISTRYnoPassed on to the installer

The first boot reads no other name. It never logs, prints or writes the token; docker inspect shows it until the container is recreated, and it is spent once the agent has checked in.

The first boot ​

Follow it; it takes about half an hour:

bash
docker exec my-agent-1 journalctl -fu kadmo-first-boot

It ends with installed; the agent my-agent-1 reports to https://app.kadmo.ai. The installer's full log is /var/log/kadmo-install.log inside the container. The messages it can stop with are in Troubleshooting.

A restart keeps the agent; a recreate installs it again. docker restart and a host reboot keep the container's root filesystem, and the first boot does nothing. A recreated container (docker rm then docker run, docker compose up after a change to the file or the image) starts from a new root filesystem: the first boot moves the old install markers aside, keeps the configuration and the home volume, and installs again, in about half an hour and with a fresh token in KADMO_TOKEN. Get one with Re-install (Moving an agent).

Several agents on one host ​

  • Give each agent its own name. The container and its four volumes take the agent's name, so two agents never share a volume.
  • Pin each to its own CPUs with --cpuset-cpus (for example 0-1 and 2-3), before the image name.
  • Each needs its own share of the host: see Sizes.

Docker Compose ​

One agent per Compose project. Save this as docker-compose.yml:

yaml
services:
  agent:
    image: ${KADMO_AGENT_IMAGE:-kadmoai/kadmo-agent:24.04}
    privileged: true
    cgroup: private
    tmpfs:
      - /run
      - /run/lock
    shm_size: 2g
    stop_signal: SIGRTMIN+3
    stop_grace_period: 120s
    restart: unless-stopped
    environment:
      KADMO_TOKEN: ${KADMO_TOKEN:?set KADMO_TOKEN, the token the app mints for this agent}
      KADMO_AGENT_NAME: ${KADMO_AGENT_NAME:?set KADMO_AGENT_NAME, the agent's name in the app}
      PORTAL_URL: ${PORTAL_URL:?set PORTAL_URL, the app's origin}
      AGENT_ROLE: ${AGENT_ROLE:-se}
      AGENT_COMPONENTS: ${AGENT_COMPONENTS:-}
      KADMO_PLUGINS: ${KADMO_PLUGINS:-}
    volumes:
      - home:/home/agent
      - etc:/etc/kadmo
      - docker:/var/lib/docker
      - containerd:/var/lib/containerd
    # Several agents per host: pin each to its own CPUs.
    # cpuset: "0-1"
    # Remote desktop for a person, on this host only. Never publish VNC (5910).
    # ports:
    #   - "127.0.0.1:3389:3389"

volumes:
  home: {}
  etc: {}
  docker: {}
  containerd: {}

And one values file per agent, for example my-agent-1.env, with the values the app's Docker command shows (the token, the name, the role, the components and the plugins):

.env
KADMO_TOKEN=your-single-use-token
KADMO_AGENT_NAME=my-agent-1
PORTAL_URL=https://app.kadmo.ai
AGENT_ROLE=se
AGENT_COMPONENTS=claude-code,chrome,kadmo-runtime,kadmo-extension,knowledge-packs
KADMO_PLUGINS=screen-record
bash
docker compose -p my-agent-1 --env-file my-agent-1.env up -d
docker compose -p my-agent-1 exec agent journalctl -fu kadmo-first-boot

-p names the project, and with it the container and the volumes (my-agent-1_home, my-agent-1_etc, …), so several agents share a host with no edit to the file. Compose's volume names differ from the docker run command's (my-agent-1-home), so run each agent one way or the other, not both. KADMO_AGENT_IMAGE in the values file replaces the image.

A newer image ​

A running agent updates its software through the app (Keeping it up to date); a new image tag changes nothing on it. A new image matters only for a container created from it. To move an agent to one: get a fresh token and command with Re-install (Moving an agent), run docker rm -f my-agent-1, then run the new command. The volumes stay, so the agent keeps its home, and the install runs again (about half an hour).

Kubernetes ​

The chart kadmo-agent-chart (oci://registry-1.docker.io/kadmoai/kadmo-agent-chart, version 0.1.0) runs the same image as a one-replica StatefulSet. Each Helm release is one agent, and its objects are named after the release, so several agents share a namespace.

RequirementWhy
Privileged pods (Pod Security privileged on the namespace)systemd and the agent's own Docker. GKE Autopilot and EKS Fargate refuse privileged pods
linux/amd64 or linux/arm64 nodes on cgroup v2The image holds both builds and each node pulls its own; systemd needs cgroup v2
A block storage class (ReadWriteOnce)The agent's Docker puts overlay on its volumes, which NFS cannot carry
About 12Gi of ephemeral storage on the nodeThe installed root filesystem

The Kubernetes tab's commands:

bash
kubectl get namespace kadmo-agents >/dev/null 2>&1 || kubectl create namespace kadmo-agents
kubectl label namespace kadmo-agents pod-security.kubernetes.io/enforce=privileged --overwrite
helm install my-agent-1 oci://registry-1.docker.io/kadmoai/kadmo-agent-chart --version 0.1.0 \
  --namespace kadmo-agents \
  --set-string token=your-single-use-token --set-string agentName=my-agent-1 --set-string portalUrl=https://app.kadmo.ai --set-string 'components[0]=claude-code' --set-string 'components[1]=chrome' --set-string 'components[2]=kadmo-runtime' --set-string 'components[3]=kadmo-extension' --set-string 'components[4]=knowledge-packs' --set-string extraEnv.KADMO_PLUGINS=screen-record
LineWhat it does
kubectl get namespace … || kubectl create namespace …Creates the namespace kadmo-agents when it is missing; the next agent finds it there
kubectl label namespace …Lets the namespace run privileged pods
helm install …Installs one agent as the release my-agent-1, with its components (components[0], …) and plugins (extraEnv.KADMO_PLUGINS). For a role other than se, the app adds --set-string agentRole=qa (or sd) after portalUrl

Follow the first boot:

bash
kubectl -n kadmo-agents exec my-agent-1-0 -- journalctl -fu kadmo-first-boot

The chart keeps the token in the Secret my-agent-1-token. To keep it out of the release, create a Secret of your own with the key token and pass --set-string existingSecret=<its name> in place of token; the chart refuses both at once. The chart creates no Service: nothing connects in.

Values ​

KeyDefaultWhat
tokennoneThe single-use token. Set this or existingSecret
existingSecretnoneA Secret of your own with the key token
agentNamerequiredThe agent's name in the app
portalUrlrequiredThe app's address, https://app.kadmo.ai
agentRolesese, qa or sd
components[]Components installed on the first boot; the app's command sets the agent's list. Empty is a base agent that takes no job: the runtime comes only with an install
extraEnv{}The installer's optional values: RUNNERS_REF, KADMO_PLUGINS, CLAUDE_PLUGINS, CLAUDE_PLUGIN_MARKETPLACES, KADMO_DEFAULT_REGISTRY. Any other name is refused
image.repository, image.tagkadmoai/kadmo-agent, the chart's 24.04The image
storage.classNamethe cluster's defaultThe claims' storage class
storage.home, storage.etcKadmo, storage.docker, storage.containerd10Gi, 1Gi, 15Gi, 2GiThe four claims
shmSize2GiShared memory for Chrome
resourcesrequests cpu: 2, memory: 8Gi, ephemeral-storage: 12GiNo memory limit by default: an out-of-memory kill installs the agent again (below)
nodeSelector{}
terminationGracePeriodSeconds120Time for systemd's clean shutdown

The claims are named after the release (home-my-agent-1-0, and so on). Their sizes are set once: a StatefulSet's claims cannot change after install, so helm upgrade refuses a new size. Resize a claim by hand.

A new pod installs again ​

Every new container installs the agent again

A deleted, evicted or rescheduled pod, and every restart of its container (an out-of-memory kill, a crash of its first process), starts from a new root filesystem. Unlike docker restart, Kubernetes restarts a container from the image. The first boot then installs the agent again, in about half an hour, with the token in the Secret, which is spent by then.

When the first boot stops with the installer's 401 line, give it a fresh token: get one with Re-install (Moving an agent), then

bash
helm upgrade my-agent-1 oci://registry-1.docker.io/kadmoai/kadmo-agent-chart --version 0.1.0 \
  --namespace kadmo-agents --reuse-values --set-string token=your-new-token
kubectl -n kadmo-agents delete pod my-agent-1-0

Without --reuse-values the required values are empty and the upgrade is refused. helm upgrade alone keeps the running pod (the StatefulSet updates OnDelete); deleting the pod starts the install with the new token. The claims stay, so the agent keeps its home.

With a Secret of your own (existingSecret), skip helm upgrade: write the new token into that Secret's token key, then delete the pod.

The network ​

Nothing on your network has to accept connections. The machine opens every connection itself, all of them outbound HTTPS:

DirectionToFor
Outbound HTTPS (443)app.kadmo.aiThe installer, the runners, the check-ins, the agent ops and updates, and the agent channel, a WebSocket
Outbound HTTPS (443)The software sources the install readsUbuntu's package mirrors, deb.nodesource.com, dl.google.com, clients2.google.com, cli.github.com, github.com, gitlab.com, registry.npmjs.org; for Docker and Kubernetes, Docker Hub for the image and the chart
Outbound HTTPS (443)What the agent's work needsYour git hosts, package registries, the sources of the components you install, and the agent app's model provider. An agent with open outbound HTTPS needs no list

A proxy or firewall that inspects HTTPS must let WebSocket upgrades through to app.kadmo.ai; no UDP port and no VPN are needed.

The agent channel ​

Your machine usually sits behind NAT: it can check in, but nothing can connect to it. So the agent keeps one connection open to the app, the agent channel, and the app sends the agent's runtime its calls down it: jobs, health, the live desktop and previews.

  • The agent opens it. At every check-in, the app's answer tells a self-hosted agent to keep its channel open, a WebSocket to https://app.kadmo.ai/api/agents/channel that carries the agent's own token. The single-use token opens no channel.
  • One channel per agent. A newer channel of the same agent closes the older one.
  • It keeps itself open. The app pings the channel every 25 seconds, which also keeps the path through your NAT open, and closes a channel it has heard nothing from for 60 seconds. The app never dials the machine.
  • The agent is reachable only while its channel is live. With no live channel, the app sends the agent no job and its live desktop does not open.

Read its state in the app. On the agent's page, the Address row names the channel, with the tooltip The agent keeps one outbound connection open to the app, and the app reaches it down that connection, with no inbound port on the machine:

Address readsMeaning
the agent channel · since 22 Oct, 14:03 UTCThe channel is live, open since that time (UTC)
the agent channel · not connectedThe agent has no live channel: the app cannot reach it

Check the way out on the machine. This asks the channel's address for a WebSocket without a token (prefix it with docker exec my-agent-1 or kubectl -n kadmo-agents exec my-agent-1-0 -- in a container):

bash
curl -sS --http1.1 -H 'Connection: Upgrade' -H 'Upgrade: websocket' https://app.kadmo.ai/api/agents/channel

The app's own answer is a short JSON refusal ending in "code":"unauthorized"}: the machine reaches the app, and the upgrade got through. A web page, a timeout or a proxy's error page means something between the machine and the app blocks the connection or the upgrade.

Sizes ​

Per agent:

Ubuntu 24.04DockerKubernetes
CPU2 vCPU2 CPUs (--cpuset-cpus when several share a host)request cpu: 2
Memory8 GB8 GBrequest memory: 8Gi, no limit
Disk40 GBAbout 40 GB: the root filesystem (about 12 GB) plus the four volumesephemeral-storage: 12Gi, plus claims of 10Gi, 1Gi, 15Gi and 2Gi
Architectureamd64linux/amd64 or linux/arm64linux/amd64 or linux/arm64 nodes

These are the floor the wizard names; a heavier workload (large builds, the agent's own containers) needs more.

See the agent in the app ​

At its first check-in:

  • The panel's waiting line reads Connected · ‹name› is Online.
  • On Agent Fleet the strip becomes a normal row with the neutral chip Self-hosted (Runs on your own machine — nothing is billed for it).
  • The agent takes work at once: a self-hosted agent gets no 15-minute setup hold and no "agent ready" e-mail.
  • On the agent's page, Provider reads Your machine, Machine shows what the machine reports about itself, Address reads the agent channel and since when it is connected (The agent channel), and the Agent token panel is gone.

On the machine (prefix each with docker exec my-agent-1 or kubectl -n kadmo-agents exec my-agent-1-0 -- in a container):

bash
systemctl status kadmo.service       # the Kadmo runtime
journalctl -u kadmo                  # the runtime's log
systemctl list-timers 'kadmo-*'      # the health and components timers

If the agent runs Claude Code on a subscription, sign it in once on its live desktop: see Use your Claude subscription.

Keeping it up to date ​

A self-hosted agent updates like every agent: its components pass, Auto Update Agent and Self Update bring the runtime, Claude Code, the runners and the components to their targets. See Agent updates.

The image tag and the chart version do not update a running agent. They matter only for a new container or pod: see A newer image.

Moving an agent ​

To move an agent to another machine, or to give a container or pod a fresh token:

  1. On the agent's page, open Danger zone → Re-install on another machine (A fresh token and the commands that move this agent to a new machine). It is there for the admins of the account that owns the agent.
  2. The dialog reads Run one of the commands on the machine this agent moves to. The token works once and for 60 minutes. and shows the same panel as Launch: the token, Mint again and the three commands. If a live session runs on the agent, the dialog offers to move it to another agent first.
  3. Run one command on the new machine.

At the new machine's first check-in, the agent's credential moves there: the old machine can no longer check in, and the new machine's channel takes over from the old one's. The agent keeps its name and history. Then remove the old machine: Removing an agent.

Removing an agent ​

Danger zone → Destroy (you type the agent's name to confirm) deletes the agent in the app. For a self-hosted agent there is no cloud server to terminate: the app revokes the agent's token and any unused single-use tokens, closes its channel, cancels the work queued for it, and unassigns its workspaces. Nothing happens on your machine: it keeps its software, and its check-ins are refused. Remove it there yourself:

Ubuntu 24.04. Reinstall or wipe the machine before you reuse it. To stop the agent until then:

bash
sudo systemctl disable --now $(systemctl list-unit-files 'kadmo*' --state=enabled --no-legend | awk '{print $1}')

Docker. Remove the container and its four volumes:

bash
docker rm -f my-agent-1
docker volume rm my-agent-1-home my-agent-1-etc my-agent-1-docker my-agent-1-containerd

With Compose: docker compose -p my-agent-1 down -v.

Kubernetes. Uninstall the release, then delete its claims, which helm uninstall keeps:

bash
helm uninstall my-agent-1 --namespace kadmo-agents
kubectl -n kadmo-agents delete pvc -l app.kubernetes.io/instance=my-agent-1

A Secret of your own (existingSecret) is yours to delete.

Troubleshooting ​

Message or symptomCauseFix
"must run as root (curl … | sudo bash)"The installer ran without sudoPipe it into sudo … bash, as the app's command does
"PORTAL_URL is required …"The command lost its endCopy the whole command again
"AGENT_TOKEN is required …" / "AGENT_NAME is required …"A variable is missingCopy the whole command again
"the app refused the bootstrap token (401: consumed, expired or unknown) — mint a new one at …"The token was used already, or is older than 60 minutesMint again (or Re-install for an agent that checked in before), then run the new command. In a container, recreate it with the new token; in Kubernetes, see A new pod installs again
"no answer from … — check that … is reachable from this machine and re-run"The machine cannot reach the appAllow outbound HTTPS to app.kadmo.ai, then run the command again
"the app answered … — its log has a [runners] line saying why; re-run once it answers 200"The app could not serve the runners just thenRun the command again in a few minutes
"the app has no runners version '…' (404) — …"The command's RUNNERS_REF names a runners version the app does not holdCopy the command from the app again; do not edit RUNNERS_REF
"the archive the app served for … could not be extracted" / "… holds no runners tree (no base/run.sh)"The runners download arrived brokenRun the command again; if it repeats, mint a fresh token and run the new command
"heartbeat returned 401 Unauthorized" / "abort: invalid bootstrap token"At the first check-in the app did not know the tokenMint again, then run the new command
"WARN: heartbeat failed with HTTP 410 — recording marker anyway; …"The token was spent or had expired by the first check-in, about half an hour into the installMint a fresh token. On Ubuntu, sudo rm /etc/kadmo/installed and run the new command (the installer's own hint). In a container, recreate it with the new token; in Kubernetes, see A new pod installs again
"unknown AGENT_RUNNER=…"AGENT_RUNNER names a variant that does not existLeave AGENT_RUNNER unset
"already installed (marker present at /etc/kadmo/installed)"The machine is an agent alreadyNothing to do. To move this agent elsewhere, see Moving an agent; to start over, use a fresh machine
"not installing: KADMO_TOKEN … not set — …"A required value is missing from the container's environmentRecreate the container with it. A restart keeps the old environment
"not installing: PORTAL_URL must be the app's origin, e.g. https://app.kadmo.ai"PORTAL_URL is not an addressRecreate the container with PORTAL_URL="https://app.kadmo.ai"
"cannot download the installer: … answered … — check PORTAL_URL and that the app is reachable from this container, then restart the container"The container cannot reach the app (it retries for about a minute)Fix the host's network, then docker restart. A wrong PORTAL_URL needs a recreate with the right one: a restart keeps the old environment
"this container is new but /etc/kadmo says installed: …"A recreated container found the old install's volumeNothing: it installs again and keeps the configuration. It needs a fresh token (A restart keeps the agent; a recreate installs it again)
"the installer stopped (exit …); its last lines are above …"The installer failed; its own message is just aboveFix what it names. A refused token needs a fresh one in KADMO_TOKEN; anything else, restart the container
"the installer exited 0 but wrote no /etc/kadmo/installed — …"The install stopped before its last stepRead /var/log/kadmo-install.log in the container, then restart it
The strip reads Waiting for its machine · token expiredNo machine used the token within 60 minutesShow token, Mint again, and run the new command
The install finished, but the agent never reports OnlineThe token was spent or had expired at the first check-in (the install log has the 410 line), or the machine cannot reach app.kadmo.aiCheck outbound HTTPS to the app, then mint a fresh token and install again as in the 410 row: a plain re-run on Ubuntu only says already installed
The pod stays Pending, or is refusedThe namespace does not allow privileged pods, the cluster refuses them (GKE Autopilot, EKS Fargate), or no node has amd64 or arm64, cgroup v2 and the ephemeral storageLabel the namespace as the commands do, or use a cluster that runs privileged pods on amd64 or arm64 nodes
docker run stops at the pull with no matching manifest for linux/…The host is neither amd64 nor arm64, the two builds the image holdsUse an amd64 or arm64 host
The container runs, but the first boot never starts and journalctl shows nothingThe command forces the other architecture (--platform), which runs under emulation: systemd starts, but every service it starts failsDrop --platform and run the host's own build
The agent's own Docker fails on its volumesThe storage is NFS or another filesystem overlay cannot useUse block storage (ReadWriteOnce)
The agent is Online, but takes no job, and Tools & dependencies reads Missing for the Kadmo runtime, Chrome, the extension or the knowledge packsIt was installed from a command without its components (AGENT_COMPONENTS empty), so the installer left the runtime off. These come only with an install: the components pass never adds themRe-install the agent (Moving an agent) and run the new command on a fresh install: on the same Ubuntu machine, sudo rm /etc/kadmo/installed first; a container is recreated (docker rm -f, then the new command) and a pod is replaced
The agent checked in but reads Offline (offline — agent unreachable on Agent Fleet), and Address reads the agent channel · not connectedThe agent has no live channel: a firewall or proxy blocks the WebSocket to app.kadmo.ai, or the agent's runtime is not runningCheck the way out with the curl in The agent channel and allow WebSocket upgrades to the app; check the runtime with systemctl status kadmo.service and journalctl -u kadmo