The Kordfile
Declare your whole stack — apps, ports, env, dependencies, health checks, and routing.
The Kordfile is a plain-text file at your project root that declares every app kordrun should run. It's whitespace-indented, with one block per app.
Configuration
Top-level directives
| Directive | Example | Description |
|---|---|---|
workspace | workspace "Acme" | A label for this project, shown in the dashboard. |
proxy_port | proxy_port 8000 | Port for the built-in reverse proxy (default 7000). |
app | app web | Starts an app block; following indented lines configure it. |
App attributes
app web
path ./apps/web
run npm run dev
port 3000
env NODE_ENV development
depends api
health /healthz
proxy web.local
route /
logs web.logProp
Type
Rules
- Lines starting with
#are comments. - App names must be unique.
dependstakes one app name per line — repeat the line for more.routemust start with/.proxyhostnames may contain only letters, digits,.and-.logsis a file name, not a path — files live in.kordrun/logs.envkeys may contain letters, digits,_,-and..proxyandrouteneed aporton the same app; without one the app isn't routed.
Example
workspace "Acme"
proxy_port 8000
app db
run docker compose up postgres
port 5432
app api
run cargo run
port 4000
health /healthz
depends db
proxy api.local
app web
run npm run dev
port 3000
depends api
proxy app.localRun it with kordrun start.
Kordfiles with more than 2 apps need Pro — the free plan runs up to 2.