sandboxing
Installation
SKILL.md
Sandboxing
Not for hostile code. This keeps a cooperative program (a nested agent, a
test harness) from wandering: reading your keys or files by accident, sending
them to an inference provider, or rm -rf-ing the wrong folder. Code that is
trying to escape needs stronger isolation: see
references/limits.md.
Cheapest protection first
- No shell for the tested model when narrow tools will do (a read-only docs tool, a fixed command). Nothing to sandbox.
- Keep real keys outside. Use an egress proxy that injects credentials,
or a key file read only by the caller; inside, set placeholder keys
(
--setenv OPENROUTER_API_KEY=placeholder). - Then the sandbox for whatever still runs commands.