sloptrap entraps the OpenAI Codex CLI into a constrained container to prevent information leakage against an LLM provider.
Workflow
- Place
sloptrapon your$PATH, point it at a project, and the tool builds a<project>-sloptrap-imageif missing, verifies the Codex binary, and launches the CLI with--sandbox workspace-write. .sloptraplets you pin image names, default targets, extra packages, and codex flags..sloptrapignoremasks folders by overlaying tmpfs mounts so secrets never reach the LLM.- Targets such as
run,shell,build,clean, andloginorchestrate the lifecycle;--print-configand--dry-runinspect or preview runs.
1 2 3 4 | |
Containers run with --userns=keep-id, --cap-drop=ALL,
--security-opt=no-new-privileges, read-only rootfs, tmpfs-backed
/tmp and /run, and only /workspace plus ${HOME}/.codex mounted.
make regress runs ShellCheck and scenario tests to guarantee the
launcher cannot be tricked into escaping its sandbox.