Install Kanship

Start on the Linux server where you want to host the app. Then add an agent host and connect your project.

Check the requirements

Linux, amd64
A server you manage, with sudo access.
Docker + Compose
Docker Engine with the Compose plugin 2.20 or newer.
Public IPv4 + hostname
Point a DNS A record to the server before installing. Do not add an AAAA record for this setup.
3 inbound TCP ports
80 for HTTP, 443 for HTTPS, and 5671 for encrypted AMQP. Open them in your cloud firewall.
KVM on agent hosts
Each machine running agents needs /dev/kvm. Use a physical server or a VM with nested virtualization enabled. It must reach your hostname on ports 443 and 5671.
Git + model access
Agents need write access to your repositories and credentials for your AI providers. Model usage costs are separate from hosting costs.

There’s no fixed CPU, memory or disk minimum. What you need depends on your builds and how many agents you run at once.

Run the installer

Open a terminal on your server. Pick Stable for the regular release, or Develop to try changes that aren’t in a stable release yet. The command downloads the current image, extracts its installer and runs it with sudo. Only run it on a server you manage.

Stable channel
docker run --rm --pull=always --entrypoint cat docker.kanship.com/api:latest \
  /app/deploy/install.sh | sudo bash
Develop channel
docker run --rm --pull=always --entrypoint cat docker.kanship.com/api:develop \
  /app/deploy/install.sh | sudo bash -s -- --channel develop

Before making changes, the installer checks the server’s architecture, Docker, ports and DNS. It then asks you to choose passkey or password sign-in. It stores configuration and secrets in /opt/kanship.

Add an agent host

Open Servers in Kanship, choose + Add server on a pool and run its command as root on a machine with KVM. You can use the same server or a different one. The machine connects to Kanship by itself, and Kanship sets it up and keeps it updated. It only connects out, so it needs no open port or SSH, and it gets its own credentials: removing it cuts it off at once. Tasks can start once an agent host is online.

How agent hosts and pools work

Configure your first project

  1. Open your HTTPS hostname and sign in as the owner, with the passkey or password you chose.
  2. Add your AI provider credentials in Global settings → Provider connections. You can add several accounts per provider.
  3. Create a project. Add your repository URLs and default branches, then set up a dedicated key or credentials with git write access.
  4. Create a task, move it to Todo, and follow the sessions in the Live view.
  5. When an agent needs an API key or another secret, it asks you to add it under Project settings → Secrets.
  6. To follow tasks on your phone, install the mobile app and enable push from the bell.