经 AI Skill Hub 精选评估,AI沙盒 获评「推荐使用」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
AI沙盒 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
AI沙盒 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 克隆仓库 git clone https://github.com/archie-judd/agent-sandbox.nix cd agent-sandbox.nix # 查看安装说明 cat README.md # 按 README 完成环境依赖安装后即可使用
# 查看帮助 agent-sandbox.nix --help # 基本运行 agent-sandbox.nix [options] <input> # 详细使用说明请查阅文档 # https://github.com/archie-judd/agent-sandbox.nix
# agent-sandbox.nix 配置说明 # 查看配置选项 agent-sandbox.nix --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export AGENT_SANDBOX.NIX_CONFIG="/path/to/config.yml"
Lightweight and declarative sandboxing for AI agents on Linux and macOS.
Prevent your agents in YOLO mode from deleting your $HOME, force pushing to main, or publishing your ssh keys on reddit. Works with any CLI-based AI agent.
The sandbox uses bubblewrap on Linux and sandbox-exec on macOS.
The quickest way to get started is with a flake template. If you prefer a shell.nix, see shells/ for ready-to-use examples. Authentication is covered below.
Export your token in the host terminal before launching the sandbox — tokens are evaluated at runtime to prevent them from leaking into the Nix store:
```
bash-sandboxed = sandbox.mkSandbox { pkg = pkgs.bashInteractive; binName = "bash"; outName = "bash-sandboxed"; allowedPackages = [ pkgs.coreutils ]; stateDirs = [ "$HOME/.claude" ]; stateFiles = []; restrictNetwork = true; allowedDomains = { "httpbin.org" = "*"; }; };
Running `bash-sandboxed` drops you into a shell with exactly the same filesystem view and restrictions your agent will see. Try:
bash touch /tmp/test && rm /tmp/test # /tmp should be writable curl https://example.com # depends on restrictNetwork setting which git # allowedPackages should be on PATH ls /some/other/path # should fail — confirming sandbox is active cat ~/.ssh/id_ed25519 # should fail - shouldn't be able to read unspecified files in $HOME ls $HOME # empty dir with symlinks to stateDirs touch $HOME/.test && rm $HOME/.test # writes allowed (but ephemeral) ls $HOME/.claude # should work if in stateDirs (symlinked) curl https://httpbin.org/get # allowed domain — should work curl https://example.com # blocked domain — should fail
See [`debug/bash.shell.nix`](debug/bash.shell.nix) for a ready-to-use template (has `restrictNetwork = true` with `httpbin.org` allowed for testing).
**Network issues:** If `restrictNetwork = true` and requests are failing, check which domains are being blocked:bash tail -f /tmp/sandbox-proxy.log You may need to add them to `allowedDomains`.
**macOS:** after a failure, you can query the system log for sandbox denials:bash log show --predicate 'eventMessage CONTAINS "deny"' --last 1m ```
If you are unable to debug, or suspect the AI can't access a file or folder it should have access to by default, please raise an issue.
高质量AI沙盒解决方案
该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。
AI Skill Hub 点评:AI沙盒 的核心功能完整,质量良好。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | agent-sandbox-nix |
| 原始描述 | 开源AI工作流:Lightweight and declarative sandboxing for AI agents on Linux and macOS using Ni。⭐100 · Nix |
| Topics | nixaisandbox |
| GitHub | https://github.com/archie-judd/agent-sandbox.nix |
| License | NOASSERTION |
| 语言 | Nix |
收录时间:2026-06-07 · 更新时间:2026-06-07 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端