Skip to content

wrap

Use capa wrap when you want capa’s install output in a shadow workspace under ~/.capa/workspaces instead of writing provider files into the project tree.

Terminal window
capa wrap [provider] [args...] [--project <dir>] [--print-dir] [--prune]

If you omit provider, capa prompts (TTY) for a wrappable provider. Extra [args...] are forwarded to the provider binary.

FlagDescription
--project <dir>Source project directory (default: current working directory)
--print-dirPrint the workspace path before launching
--pruneRemove wrap workspaces under ~/.capa/workspaces and exit
  1. Resolves the provider (prompt if omitted).
  2. Fails fast if the provider launch binary is missing from PATH.
  3. Prepares a shadow workspace and installs capa-managed artifacts there.
  4. Launches the provider against that workspace.

capa stop also stops active wrap sessions. See Server lifecycle.

Terminal window
capa wrap
capa wrap cursor
capa wrap claude-code --print-dir
capa wrap cursor --project ../other-app
capa wrap --prune