Insights
Best ways to sandbox AI coding agents from your LAN and internal services
Run coding agents in disposable VMs, block LAN access by default, and pair doxx.net with narrow identities for approved internal services.

On this page
Run the whole coding agent in a disposable virtual machine (VM) and block outbound connections by default. If it needs a model service or package registry, allow only those connections through a control outside the VM, and keep your local area network (LAN) and production services off-limits. If it needs an internal service, use a separate, limited identity and a private access layer such as doxx.net instead of opening a route to the whole network.
In short:
- Isolate the runtime. Use a disposable VM for unattended work or unfamiliar code.
- Allow only essentials. Limit network access to the connections and operations the task needs.
- Test both outcomes. Check that approved work succeeds and unapproved direct connections fail.
Which setup fits the work you give your agent?
Keep task commands offline when the checkout, dependencies and test inputs can be prepared in advance. If the job needs a model endpoint, package registry or staging service, give it a narrow exception instead of general outbound access. Use a disposable VM for unfamiliar code or unattended runs so the next job can start with fresh state.
A Git worktree gives you a separate working directory for reviewing changes, not a network boundary. An ordinary container shares the host's operating system kernel and needs a separate network policy. That lighter boundary can fit lower-risk work if it passes the same access checks.
The table separates private access from code execution and shows where a microVM, or small virtual machine, provides the runtime boundary.
| Sandbox option | Execution boundary | Network controls | Price and limits |
|---|---|---|---|
| doxx.net | Private access add-on, no runtime | Controlled agent access, custom firewall rules on Pro | Essentials $6/month, 1 agent, Pro $16/month, 5 agents |
| Docker SandboxesOpens in a new tab | Isolated runtime on your machine or Docker-managed cloud | Separate local and cloud policies | Free local compute, metered cloud, paid central policy |
| Solari hardenedOpens in a new tab | Dedicated microVM | All outbound networking blocked | Hardened run price unconfirmed |
| JetBrains AirOpens in a new tab | Fresh cloud VM per task | Limited internal access, exact LAN policy unconfirmed | Cloud-task pricing and free-tier limits unconfirmed |
| Control Plane SandboxesOpens in a new tab | Dedicated microVM with persistent home volume | Outbound hostname and address-range allowlists | Price and free-tier limits unconfirmed |
What should you check before picking each option?
Keep your current sandbox if it passes your isolation checks and a replacement wouldn't solve another problem. Compare the cost and controls for the mode you'll actually use, not just the product name.
doxx.net
Use doxx.net alongside a separate sandbox when the agent needs to reach a private service. It connects devices and agents on a private network, and authorized agents can configure that network through an application programming interface (API). If the coding agent only needs to read from staging, keep network management out of its tool permissions.
Essentials costs $6/month for 5 devices and 1 agent seat. Pro costs $16/month for 8 devices and 5 agent seats and adds custom firewall rules. Check that your combined setup limits the agent to the service and port you intend. Skip this layer if the agent doesn't need a private service or if you're looking for something to run the code.
Docker Sandboxes
Pick Docker Sandboxes if you want local and hosted execution under the same command-line tool. The local sandbox runs on your machine and the cloud sandbox runs on Docker-managed infrastructure. They use separate credentials, network policies and lifecycle controls, so don't assume a local rule follows the agent to the cloud.
Local compute is free, including for commercial work. Cloud compute is pay-as-you-go, and model provider charges are separate. Central management of local sandbox policies requires a separate paid subscription. Skip either mode if you can't confirm that it blocks the direct addresses and local routes you need to keep out of reach.
Solari hardened
Pick Solari's hardened mode for work that can run on prepared inputs without an outbound connection. This mode puts the workload in a dedicated microVM and blocks outbound networking. It fits builds and tests that can use a supplied checkout, cached packages and local test fixtures.
Skip hardened mode if the process inside the VM must call a remote model, fetch a missing dependency or reach staging. Solari gives a Team pricing example, but that doesn't establish the cost of a hardened run. Check the rate for that mode before comparing it with metered cloud sandboxes.
JetBrains Air
Pick JetBrains Air for independent cloud tasks that should start in a fresh environment. Air starts a new VM for each task and runs the agent in a Docker container inside it. The VM isn't reused and has limited access to internal resources.
That limit isn't proof that Air blocks the specific LAN routes or private endpoints you care about. Skip it if you require a specific deny-by-default policy and can't confirm that it applies to your cloud tasks. Check the cloud-task price and any free-tier limits before choosing it for regular use.
Control Plane Sandboxes
Pick Control Plane Sandboxes when you want to pause and resume a development environment without rebuilding it. Each sandbox has a dedicated Kata Containers microVM and a persistent home volume that keeps repositories and settings. Outbound allowlists can use hostnames or address ranges, so check that the rules match the destinations you intend to permit.
Skip it if each job must start without files or settings from the last one. If persistence is why you're choosing it, get the price for the environment you need before comparing it with a fresh sandbox for each task.
What should your agent be allowed to reach?
Suppose your agent needs to read fixtures from one staging API to run tests. Give it a dedicated, revocable service identityOpens in a new tab that can read those fixtures, and enforce the read-only limit at the service or tool. A hostname allowlist controls where requests go, not what they sendOpens in a new tab, so approving a destination isn't a substitute for limiting operations.
Prepare dependencies before the run when you can. If the agent needs a remote model, keep that connection separate from shell access and use an external credential brokerOpens in a new tab to hold the model credential. Enforce any package or staging exceptions outside the sandbox, where the agent can't change them. Keep production and cloud metadata services off-limits.
Mount only the files the task needs, without personal credentials or sockets that control the host's runtime. Avoid host networking and routes to whole internal subnets. Treat local helpers and Model Context Protocol (MCP) servers as separate access paths because they can act outside the command sandbox. Don't give the coding agent tools that can loosen its own policy.
How can you tell the sandbox is blocking the right traffic?
Before you switch setups or let the agent run unattended, list the destinations and operations it needs. Use the actual agent runtime, a known-good allowed endpoint, harmless test endpoints you control and policy logs if available.
- Run the approved work. From the agent's runtime, make the model request, fetch the package or run the staging test the task needs. For private staging, check that the approved operation succeeds through the intended private route.
- Try the routes you meant to block. From the same runtime, check an unapproved LAN endpoint and an unapproved private service, first by name and then by direct address. Check Internet Protocol version 4 (IPv4) and version 6 (IPv6) where enabled. A failed name lookup alone doesn't prove the direct route is blocked.
- Check access through tools. Try the same harmless unapproved destination through any helper that can make requests outside the command sandbox. Ask the approved read-only tool to write to a test resource you control and check that it refuses.
- Confirm what caused the failure. Look for the expected denial in policy logs. If you don't have logs, check the test endpoint from an authorized environment to rule out a dead service. The check passes when required work succeeds and prohibited connections or operations fail at the intended control.
Check public access to staging separately from the agent's outbound policy. In doxx.net's address display, the shown IPv4 address is internal to doxx.net, while the shown IPv6 address is public. If you've allowed inbound public IPv6, check reachability from an authorized device outside the private network. Reaching staging by its private name doesn't prove the public route is closed.
Repeat the checks after changes to the sandbox, routes or tools. A pass covers the runtime, routes and permissions you tested.
Where doxx.net fits. doxx.net gives agents controlled access to a private network alongside the sandbox that runs their code. If your agent needs that private access, create an account, download the appOpens in a new tab and connect a device or agent.