policies / opencode.yml
OpenCode Policy
Allows access to the minimum binaries and locations needed by OpenCode. Intentionally does NOT include any additional, potentially invasive tools like sh, bash, git, etc.
Include
stonewall policy include https://stonewall.sh/policies/opencode.ymlSource
# $schema: https://stonewall.sh/schema.json
####################################################################################
# This is an official stonewall.sh policy and should not be changed locally. #
# Please always review remote policies before applying them. Stonewall and its #
# policies come without warranty of any kind. See LICENSE for details. #
####################################################################################
policy:
name: OpenCode
url: https://stonewall.sh/policies/opencode.yml
tier: 3
tags:
- coding-agent
description: >
Allows access to the minimum binaries and locations needed by OpenCode.
Intentionally does NOT include any additional, potentially invasive tools like
sh, bash, git, etc.
bin:
allowed:
- opencode
expose:
read:
- ~/.opencode
write:
- ~/.config/opencode
- ~/.local/share/opencode
- ~/.local/state/opencode
- ~/.cache/opencode