abx-sandbox-network

Configure per-sandbox egress rules to control outbound network access for AI agent sandboxes.

11|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/scitix/Agent-Sandbox --skill abx-sandbox-network-scitix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: abx-sandbox-network
Source: https://github.com/scitix/Agent-Sandbox/tree/main/plugin/skills/abx-sandbox-network
Command: npx skills add https://github.com/scitix/Agent-Sandbox --skill abx-sandbox-network-scitix

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When running AI agents in sandboxes—especially during evaluations—you need to control what the sandbox can reach on the network. Without egress control, an agent under test can look up answers, install packages to work around missing dependencies, or exfiltrate data, invalidating your results. ## Core Features & Use Cases - Deny-all-then-allow egress policies: Apply per-sandbox network rules using the E2B SDK vocabulary, with fail-closed behavior that refuses creates (HTTP 400) when the environment has no gateway. - Evaluation isolation: Cut a sandbox off from the internet entirely, or allow only a single host such as a model API, while keeping package indexes off the allowlist. - Environment gateway management: Enable the proxy sidecar at the environment level via abx update envs, since rules only take effect when the env carries a gateway. - Use Case: You are benchmarking an agent and must guarantee it cannot fetch answers. Enable the env gateway, create the sandbox with a deny-all policy, then verify isolation by running curl from inside the sandbox and observing it fail. ## Quick Start Ask the assistant to create a sandbox in an environment with the network gateway enabled, applying a deny-all egress policy that allows only the one host your task requires, then verify isolation by testing an outbound request from inside the sandbox.

Frequently Asked Questions about abx-sandbox-network

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I block internet access for a sandboxed AI agent?

Enable the network gateway on the environment with abx update envs, then create the sandbox with a deny-all egress policy using the E2B SDK. Verify isolation by running curl from inside the sandbox and confirming the request fails.

How to allow only one host in sandbox egress rules?

Use a deny-all-then-allow policy: deny everything, then add the single host (such as a model API) to the allowlist. Never use allow-all-then-deny, since a denylist only covers routes you thought of.

Why was my sandbox create request refused with a 400 error?

A create carrying network filtering rules is refused with 400 when the environment has no gateway enabled. This fail-closed behavior prevents rules from silently doing nothing. Enable the gateway on the env first, then retry the create.

Why can my sandbox still reach the internet despite egress rules?

Only ports 80 and 443 are inspected at layer 7; traffic on other ports passes through unfiltered, so a rule written for port 3000 does nothing. Also confirm the env gateway is on and the sandbox came from that env.

Can a sandbox reach an API without holding its credential?

Yes. The companion abx-sandbox-secrets skill handles credential injection: the sidecar injects the credential on outbound traffic, so the sandbox reaches the API while never holding the key itself.