Deploy a KAOS app
The capstone scaffolds a web:spa app with deployment wired in —
a Dockerfile, docker-compose.yml, and a Caddyfile for TLS. Here’s the path to a running
service.
From scaffold to deployed
Section titled “From scaffold to deployed”kaos-ui new web:spa my-legal-app && cd my-legal-appmake install # uv (backend) + pnpm (frontend), supply-chain hardenedmake dev # local dev servers (FastAPI + Vite)
# containerized: build + run behind Caddy (TLS, reverse proxy)docker compose up --build- The generated
Caddyfileterminates TLS and reverse-proxies the API and the built SPA; add your domain and Caddy handles certificates. - Set the app’s auth token (
APP_AUTH_TOKEN) and a provider API key in the environment; the.env.examplelists what’s needed. - PyPI gap: until every
kaos-*package the app depends on is published, you may need to install some from source — the project README spells this out. - The app’s architecture (auth, SSE streaming, per-session VFS, tool allowlist) is explained in anatomy of a KAOS app.