Skip to content

Flags

kpil [flags]
FlagDefaultDescription
--imageghcr.io/qjoly/kpil:latestContainer image to run
--kubeconfig$KUBECONFIG or ~/.kube/configAdmin kubeconfig path
--namespacedefaultNamespace for the ServiceAccount
--sa-namecopilot-readonlyName of the SA / ClusterRole / CRB
--out./ro-kubeconfigPath for the generated read-only kubeconfig
--token-ttl24hServiceAccount token lifetime
--runtimeautoContainer runtime: docker or podman
--platformdaemon defaultOCI platform, e.g. linux/amd64, linux/arm64
--workdirMount a host directory into the container at /workspace
--workdir-readonlyfalseMount --workdir as read-only
--buildfalseBuild the image from the local Dockerfile instead of pulling
--pullfalseAlways pull the latest image before running
--insecure-imagefalseSkip cosign signature verification
--no-cleanupfalseSkip deleting RBAC resources and kubeconfig on exit
-i, --interactivefalsePrompt for runtime parameters before launching
--skillBake an agent skill into the image at build time (requires --build)

Examples

# Use a specific kubeconfig and namespace
kpil --kubeconfig ~/.kube/staging --namespace platform

# Use podman explicitly
kpil --runtime podman

# Force arm64 image on Apple Silicon
kpil --platform linux/arm64

# Mount current directory as workspace (read-write)
kpil --workdir $PWD

# Keep RBAC resources after exit (for debugging)
kpil --no-cleanup

# Build the image locally
GH_TOKEN=$GH_TOKEN kpil --build

# Interactive setup
kpil -i