kosa8 docs Dashboard
esc
↑ ↓ move↵ openRuns in your browser; nothing you type is sent anywhere.

CLI / hooks / sandbox-run

kosa8 hooks sandbox-run

Run one shell command in the project's kosa8 sandbox (what sandbox mode rewrites commands to)

Usage#

kosa8 hooks sandbox-run --project DIR [--cwd DIR] -- COMMAND

Runs COMMAND with sh in the project's sandbox, hooks-<hash of the folder>, which is created on first use with the project mounted at /work and kept for the next command (kosa8 sandbox rm removes it). Exits with the command's status.

Options#

FlagTypeWhat it doesDefault
--cwdstringwhere the command runs (inside the project)—
--imagestringthe image to run in (default node:22-slim)—
--projectstringthe project folder, mounted at /work—

Example#

  kosa8 hooks sandbox-run --project . -- 'npm test'
  kosa8 hooks sandbox-run --project ~/src/app --cwd ~/src/app/web -- 'make build'

The kosa8 weekly

Agent security news, one industry deep-dive and a hands-on challenge, every Monday. Unsubscribe in one click.

© 2026 kosa8 · kosa8.com · Zero Trust cybersecurity infrastructure for AI agents · Local models served by llamay · Agent gateway: MAQPNA