opencode-landstrip
v0.22.9
Published
OS-level AI command sandboxing for OpenCode with Landstrip
Maintainers
Readme
opencode-landstrip
OS-level sandboxing for AI commands in OpenCode ≥2.0.18.
Install
opencode plugin install opencode-landstrip # project
opencode plugin install opencode-landstrip --global # globalInstallation registers both the server and TUI plugins. Unusable sandboxing
fails closed; enabled: false permits unsandboxed Bash.
Usage
| Command / Key | Action |
| ------------- | ------------------------------------------------- |
| /landstrip | Open the sandbox inspector pane |
| Enter | Toggle sandbox isolation in the inspector pane |
| Esc | Close the inspector pane or cancel a confirmation |
Permissions and configuration
Only AI bash is OS-isolated; the OpenCode plugin API cannot replace user shell
commands. Tool approval never overrides hard sandbox denials, and interactive
requests without a live presenter remain denied.
Unlisted network domains are denied without prompting. To permit one, add it to
network.allowedDomains in the sandbox configuration.
On Windows AppContainer, the proxy requires an explicit windows.allowLoopback
opt-in, which exposes all local loopback services, not just the proxy.
Configuration loads in order, appending to list fields and overriding scalar fields:
- Bundled
sandbox.json $XDG_CONFIG_HOME/opencode/sandbox.json(or~/.config/opencode/sandbox.jsonwhenXDG_CONFIG_HOMEis unset, empty, or relative).opencode/sandbox.json- Plugin options
Persistent approvals write to the active global or project file. Defaults allow
project writes, deny sensitive-file writes, and block direct networking. On
Linux, linux.backend selects "auto" (default; uses "machine" when
/dev/kvm is accessible, otherwise "container"), "container", or
"machine".
See landstrip(1) for policy rules, native traps, and platform limits.
Development
npm ci && npm run all
npm run ci:fmt