Show HN:Fence – 限制網路/檔案系統的沙盒化 CLI 指令

Show HN:Fence – 限制網路/檔案系統的沙盒化 CLI 指令

Hacker News·

Fence 是一款輕量級、無容器的 CLI 工具,可對指令進行沙盒化處理,預設限制網路存取和檔案系統操作。它專為運行具有可控副作用的半信任程式碼而設計,並可作為 AI 編碼代理的補充。

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

To see all available qualifiers, see our documentation.

Lightweight, container-free sandbox for running commands with network and filesystem restrictions

License

Uh oh!

There was an error while loading. Please reload this page.

Use-Tusk/fence

Folders and files

Latest commit

History

Repository files navigation

Image

Image

Fence wraps commands in a sandbox that blocks network access by default and restricts filesystem operations based on configurable rules. It's most useful for running semi-trusted code (package installs, build scripts, CI jobs, unfamiliar repos) with controlled side effects, and it can also complement AI coding agents as defense-in-depth.

You can also think of Fence as a permission manager for your CLI agents.

Install

Go install:

Build from source:

Additional requirements for Linux:

Usage

Basic

Configuration

Fence reads from ~/.fence.json by default:

Use fence --settings ./custom.json to specify a different config.

Import from Claude Code

Features

Fence can be used as a Go package or CLI tool.

Documentation

Attribution

Inspired by Anthropic's sandbox-runtime.

About

Lightweight, container-free sandbox for running commands with network and filesystem restrictions

Resources

License

Contributing

Security policy

Uh oh!

There was an error while loading. Please reload this page.

Stars

Watchers

Forks

Releases

  13

Contributors

  3

Uh oh!

There was an error while loading. Please reload this page.

Languages

Footer

Footer navigation

Hacker News

相關文章

  1. macOS 鮮為人知的命令列沙盒工具:sandbox-exec

    2 個月前

  2. Show HN: Zerobox – 具備檔案、網路與憑證控制功能的指令沙盒工具

    27 天前

  3. Show HN:vibebox - 本地AI代理的Docker沙箱替代方案

    3 個月前

  4. 沙盒化AI程式碼代理:實用指南

    4 個月前

  5. Matchlock 使用基於 Linux 的沙盒保護 AI 代理工作負載

    3 個月前

其他收藏 · 0