Skip to content

feat(sandbox): bubblewrap sandbox for the OpenCode CLI (v3.1.0) - #20

Merged
simonmak-ascent merged 1 commit into
mainfrom
feat/v3.1.0/opencode-sandbox
Oct 3, 2026
Merged

simonmak-ascent merged 1 commit into
mainfrom
feat/v3.1.0/opencode-sandbox

Conversation

@simonmak-ascent

Copy link
Copy Markdown
Owner

Adds an optional sandbox component that installs bubblewrap and ~/.local/bin/opencode-sandbox (alias ocs).

  • Read-only system; writable workspace + OpenCode state only
  • ~/.ssh, ~/.env.workbench, cloud credentials excluded
  • Network allowed by default; OPENCODE_SANDBOX_NO_NET=1 isolates
  • Wrapper: scripts/sandbox/opencode-sandbox.sh
  • Docs: docs/security-model.md Layer 2b, README, AGENTS, mcp-server/README
  • VDD: vdd/specs/opencode-sandbox/spec.md + tactics A-012; CHANGELOG v3.1.0
  • Version 3.1.0

Verified via cs run "pnpm typecheck && pnpm test && pnpm build" — 55 tests pass.

Add an optional 'sandbox' component installing bubblewrap and
~/.local/bin/opencode-sandbox (alias 'ocs'): runs opencode with a
read-only system, a writable workspace, and only OpenCode's own state
dirs mounted — ~/.ssh, cloud credentials and ~/.env.workbench stay
outside. Network allowed by default; OPENCODE_SANDBOX_NO_NET=1 isolates.

- scripts/sandbox/opencode-sandbox.sh (wrapper)
- components.ts: sandbox component + uninstall
- aliases.sh: ocs alias
- docs: security-model (Layer 2b), README, AGENTS, mcp-server/README, CHANGELOG
- vdd: spec vdd/specs/opencode-sandbox + tactics A-012
- version 3.1.0 (package.json/server.json/connector.json)
@simonmak-ascent
simonmak-ascent merged commit 459433f into main Oct 3, 2026
1 of 2 checks passed
@vercel

vercel Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
opencode-workbench Building Building Preview Oct 3, 2026 12:05am UTC

@simonmak-ascent
simonmak-ascent deleted the feat/v3.1.0/opencode-sandbox branch October 3, 2026 00:05

This branch was successfully deployed

1 active deployment
Preview — 14dac545 Deployed Oct 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant