Skip to content

Repository files navigation

Network Sandbox

English | 简体中文

Release CI Platforms License: Apache-2.0

A lightweight safety backbone for agents making connectivity changes.

Network Sandbox helps agents avoid cutting off their own access while changing proxies, routes, credentials, and other network-critical configuration. It gives them an isolated place to rehearse changes, verify required connections, and apply only validated differences with rollback protection.

The native CLI and agent skill are installed together. Once installed, the skill tells compatible agents when and how to use the sandbox, so you do not have to manage every safety step yourself.

Install

brew install MildyNora/tap/network-sandbox

Without Homebrew:

curl -fsSL https://github.com/MildyNora/NetworkSandbox/releases/latest/download/install.sh | sh

Both methods install the netsandbox CLI and its agent skill. The skill is linked into the standard Codex and agent skill directories, so compatible agents automatically follow the protected connectivity workflow.

No source build, Rust toolchain, Docker, or virtual machine is required.

Direct packages: macOS — Apple silicon · Linux — x86_64 · checksums

Quick start

create → exec → check → plan → apply
netsandbox create proxy-change
netsandbox exec proxy-change -- CHANGE_COMMAND
netsandbox check proxy-change
netsandbox plan proxy-change
sudo netsandbox apply proxy-change --yes

How it works

Think of Network Sandbox as an Anaconda-style environment for risky connectivity changes. An agent creates a named environment, rehearses its commands there, checks the required connections, reviews the plan, and only then applies the validated difference.

The real host stays unchanged until apply. check names every failed or unverifiable connection and exits with 0 when required circuits are preserved, 2 when connectivity validation blocks the change, or 1 for an operational error. Post-apply validation automatically rolls back a failed change.

Technical and safety details are available in the reference documentation.

About

Network Sandbox is an early-stage project under active development. Issues, feedback, and pull requests are welcome.

License

Licensed under the Apache License 2.0.

About

A lightweight Rust framework that helps agents avoid cutting off their own access while making any changes.

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages