Skip to content

ysa setup

First-run setup: checks prerequisites, generates the CA cert, verifies container images, installs OCI network hooks, and runs a smoke test.

Usage

ysa setup

No arguments or options.

What it does

StepDescription
1. PreflightChecks Podman 5.x+ is installed and rootless mode is enabled
2. CA certGenerates the mTLS CA at ~/.ysa/proxy-ca/ (skips if already present)
3. Container imagesChecks sandbox-claude, sandbox-mistral, sandbox-proxy exist — builds any missing images automatically
4. OCI network hooksInstalls Podman network hooks needed for the proxy
5. Smoke testStarts and stops the proxy to verify everything works end-to-end

Notes

  • Run this once after installing ysa, and again after upgrading.
  • If an image build fails, you can retry with bun run build:images from the repo root, then re-run ysa setup.
  • The CA cert at ~/.ysa/proxy-ca/ca.pem is injected into every container so the mTLS proxy can inspect HTTPS traffic.