Orchestration for the agentic era

Deploy to your own servers.

The simplicity of Docker Swarm with the modern features of Kubernetes. Three commands to a cluster, one file per app, and an API your AI agents can drive safely.

amends "https://orch.torsten.work/pkl/v1/Application.pkl"

name = "api"

services {
  ["web"] {
    image = "ghcr.io/acme/api:1.4"
    replicas = 2
    http = new Http {
      port = 8080
      domains { "api.example.com" }
      healthPath = "/healthz"
    }
  }
}

Built for agents

orch ships an MCP server. Claude Code, Cursor or Codex can read status and logs, deploy and roll back, with a token you can limit to a single app.

AI assistants →
why is shop not ready?app_status shopreadlogs shopreaddeploy orch.pklwriteSet the missing DATABASE_URLand redeployed. shop is healthy.ORCH_TOKEN · scoped to shop

One file, every server

Describe the app once and run orch deploy. Replicas are spread across your nodes and turn healthy on their own.

Applications →
api.pklname = "api"image = "api:2"replicas = 3port = 8080$ orch deploynode-1apidbnode-2apiworkernode-3apicron

A cluster in three commands

Run orch init on one server and orch join on the rest. Your SSH key is the only credential.

Installation →
laptopsshcontrollerorch initworker-1orch joinworker-2orch joinworker-3orch join

Deploys that check themselves

Replicas are replaced one at a time and only take traffic once healthy. A failed update rolls back on its own.

Deployments →
web-1api:1api:2checkinghealthyweb-2api:1api:2checkinghealthyweb-3api:1api:2checkinghealthy

HTTPS and a private network

Ingress nodes get certificates automatically. Every node talks over an encrypted WireGuard mesh.

Networking →
https://api.example.comwireguardnode-1ingress · tlsnode-2dbnode-3api

A dashboard without a server

Run orch web and your browser opens a live view of applications, nodes, deploy history and logs. It runs on your machine with a one-time link, so there is nothing to host and no password to manage.

Web dashboard →
127.0.0.1:49731 · orch webOverviewApplicationsRuntimesNodesJobsEventsLiveproduction3 nodes · sshApps3/44/4Nodes3/3CPU reserved61%Applicationsstorefrontgen 18runningbilling-apigen 7startingrunningreportsgen 3runningpostgresgen 2running

Or stay in the terminal

orch tui shows the same cluster from the keyboard. Follow logs, compare deploys and roll back, or drain a node, right inside your SSH session.

Terminal UI →
orch tuiORCHproduction● ONLINEproduction · ssh1 Overview2 Applications3 Nodes4 Events5 RuntimesAPPLICATIONS4healthyNODES3connectedEVENT CURSOR1207retainedRecent activity12:04:31deployment.startedbilling-api gen 712:04:36allocation.readybilling-api/api#012:04:41allocation.readybilling-api/api#112:04:44deployment.succeededbilling-api gen 7↑↓ navigate · enter open · ? helpupdated 1s ago
databases { ["main"] = new Postgres {} }webDATABASE_URL ✓main-urlmainpostgres 17backups

Databases

Declare Postgres, MySQL, Redis and more next to your services. orch generates the credentials and runs scheduled backups.

Databases →
shopdeploy failedSlackDiscordWebhook

Notifications

Failed deploys, backups and cron runs are posted to Slack, Discord or any webhook.

Notifications →

Between Swarm and Kubernetes

Swarm is easy but stopped growing. Kubernetes can do everything but needs a team to run it. orch keeps the easy part and adds what modern apps expect.