Skip to content
Interactive wizard

Build your own Safehouse policy

Pick your coding agents, optional capabilities, and file system access in plain language. The builder creates a sandbox policy you can copy or download without hand-editing policy files. View policy modules on GitHub.

Always on

Optional

Absolute paths only: ~ is supported and expands to your HOME_DIR value.

Principle of least privilege: keep write access narrow to reduce accidental damage.

SSH auth for git upstreams: grant only the single private key file your remotes use, not all of ~/.ssh.

Baseline paths

Required field.

Optional. Leave blank to avoid automatic workdir write access.

Optional. Set the exact private key file used for git upstream auth.

Extra grants

0 read-only paths

0 read/write paths

Advanced override (optional)

This text is appended last and can override earlier rules. Use only if you know exactly what you need.

No overlay set.

  • Save the output as my-safehouse.sb.
  • Run: sandbox-exec -f my-safehouse.sb -- <command>.
  • macOS app shortcuts: run the downloaded launcher setup script with bash /path/to/create-safehouse-desktop-launchers.command.
  • Compare with CLI output via safehouse --stdout if needed.

Ready. Select options and click "Generate policy".

Included modules: —

Command helper snippet

# Choose options, then click "Generate policy".

Shell shortcut snippet

Choose the shell syntax for the persistent helper functions below.

Shortcut snippet targets ~/.zshrc or ~/.bashrc using zsh / bash syntax.

Shell shortcut snippet

# Choose a shell target above, then click "Generate policy".

Generated policy preview

;; Policy output will appear here.

Open source under the Apache 2.0 License.