# Install fence with Homebrew, Nix

Lightweight sandbox for commands with network and filesystem restrictions. Version 0.1.62 via Homebrew; verified 2026-07-04.

## Install

```sh
sudo av install brew:fence
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install fence
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#fence
```

  Evidence: nixpkgs package indexes: pkgs/by-name/fe/fence/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:fence
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/fence>
- **Version:** 0.1.62
- **Source summary:** Lightweight sandbox for commands with network and filesystem restrictions
- **Homepage:** <https://github.com/fencesandbox/fence>
- **Repository:** <https://github.com/fencesandbox/fence>
- **Upstream docs:** <https://fencesandbox.com/docs>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/fencesandbox/fence/archive/refs/tags/v0.1.62.tar.gz>
- **Last updated:** 2026-07-04T17:45:23Z
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- fence (cli)
- fence (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-09
- Package-manager version: 0.1.62
- Package-manager updated: 2026-07-04
- Local data: ok
- Upstream repository: https://github.com/fencesandbox/fence
- Upstream latest detected: v0.1.62 (current)
## Project history and usage

Fence is a command sandbox and permission layer for running semi-trusted commands with default-deny network access and configurable filesystem and command rules.

### Project history

The official README states that Fence moved from github.com/Use-Tusk/fence to github.com/fencesandbox/fence, with migration instructions for Homebrew tap users and Go installs. GitHub releases show an initial v0.1.0 release in December 2025 and frequent v0.1.x releases through June 2026.

The documentation positions Fence as a host-native sandbox rather than a container or VM. On macOS it uses sandbox-exec; on Linux it uses bubblewrap with Landlock and seccomp.

### Adoption history

Fence's official README emphasizes AI coding-agent workflows and names Claude Code, Codex, Amp, Gemini CLI, GitHub Copilot, OpenCode, and Factory CLI as compatible commands. Packaging is still young, with Homebrew tap, Nix, curl installer, Go install, and source builds documented by upstream.

### How it is used

Basic usage wraps a command with network access blocked by default. Users can apply templates, monitor blocked requests, deny dangerous commands, configure filesystem read/write rules, and inspect the merged config with fence config show.

### Why package nerds care

Fence is significant as a post-agent-era CLI package: instead of being an agent, package manager, or container runtime, it wraps arbitrary developer commands with reusable policy. That makes it relevant to package installation scripts, build scripts, CI jobs, and coding-agent sessions.

### Timeline

- 2025: v0.1.0 released on 2025-12-19.
- 2026: Project README documents migration from Use-Tusk/fence to fencesandbox/fence.
- 2026: v0.1.61 released on 2026-06-22.

### Related projects

- The README credits Anthropic's sandbox-runtime as inspiration.
- bubblewrap, Landlock, seccomp, and macOS sandbox-exec are underlying or related sandboxing technologies.

### Sources

- <https://github.com/fencesandbox/fence>
- <https://raw.githubusercontent.com/fencesandbox/fence/main/README.md>
- <https://fencesandbox.com/docs>
- <https://github.com/fencesandbox/fence/releases>


## Security Notes

No matching local secret-handling manifest was found for fence. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ./fence.jsonc, ./fence.json, ~/.config/fence/fence.jsonc, ~/.config/fence/fence.json
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** fence
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - fence: normalized package name match | nixpkgs package indexes: pkgs/by-name/fe/fence/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [bubblewrap](https://www.automicvault.com/pkg/brew/bubblewrap/) - Shares av.db curated category or tags: cli, sandbox, sandboxing, security.
- [jailkit](https://www.automicvault.com/pkg/brew/jailkit/) - Shares av.db curated category or tags: cli, sandboxing, security.
- [landrun](https://www.automicvault.com/pkg/brew/landrun/) - Shares av.db curated category or tags: cli, sandbox, sandboxing, security.
- [nono](https://www.automicvault.com/pkg/brew/nono/) - Shares av.db curated category or tags: cli, sandbox, sandboxing, security.
- [sandvault](https://www.automicvault.com/pkg/brew/sandvault/) - Shares av.db curated category or tags: cli, sandbox, sandboxing, security.
- [libseccomp](https://www.automicvault.com/pkg/brew/libseccomp/) - Shares av.db curated category or tags: cli, sandboxing, security.
- [aide](https://www.automicvault.com/pkg/brew/aide/) - Shares av.db curated category or tags: cli, security.
- [aircrack-ng](https://www.automicvault.com/pkg/brew/aircrack-ng/) - Shares av.db curated category or tags: cli, security.

## Combined YAML source

View the package source record on GitHub. [combined/fence.yml](https://github.com/automic-vault/db/blob/main/combined/fence.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
