All apps/Fence

Fence

fence

Lightweight sandbox for running commands with filesystem and network restrictions

Runs as fence|macOS, Linux, Windows|github.com

Command form

ai-draft · 2 tasks · 7 fields

Run a command inside Fence's sandbox, optionally with a template or settings file. Monitor logging is included; config subcommands and import are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui fence
Run in sandboxExample values, fixed in this page — nothing here reaches a terminal
Basic
Command and arguments*
string
Template
string
Monitor violations
-m
Advanced
Settings file
file
Debug logging
-d
TasksEach one presets the form for one job
Run a command sandboxed
templatesettingsmonitordebugargs
Run a shell string
templatesettingsmonitordebugshell_command
ParametersOnly these flags are editable in the form
Template
string
--template-tcode
Settings file
path
--settings
Monitor violations
boolean
-m
Debug logging
boolean
-d
Fence log file
path
--fence-log-file
Shell command string
Run this string through a shell (-c). Use instead of the argument list.
string
-c
Command and arguments
string · positional 0 · repeatable
SourcesEvery flag above is checked against these
readme
fence -c "echo hello && ls" fence -d curl https://example.com fence -t code -- claude # Runs Claude Code using `code` template config fence -m npm install fence -m --fence-log-file /tmp/fence.log -- claude Use `fence --settings ./custom.json` to specify a different config. fence config show --template code fence -- claude --dangerously-skip-permissions
manualHEAD 2026-10-27

github.com

Before it fills your prompt, Otty checks the installed fence against its version. A form that does not match your version is not offered.