What users see in managed sandboxes
See what a person on managed Linux or macOS sees when they run an agent in a sandbox: the run banner, asks and blocks, policy explain, and admin telemetry.
People on a managed computer run agents with defenseclaw sandbox run claude and see only their own policy (Managed command availability). This page shows what they get. To set it up, see Sandboxes on managed computers.
The managed defenseclaw command
Users get a defenseclaw launcher that runs only the commands in Managed command availability.
- Anything else exits 2 with "This computer is managed; use
defenseclaw statusfor your protection state,defenseclaw sandbox statusfor your sandboxes anddefenseclaw sandbox policy explainfor your policy." On Linux and macOS the message goes on to name the administrator views of that computer (the full text is on Managed command availability). defenseclaw statusshows the person their own Claude Code and Cowork protection state and their own last Cowork event, never other accounts'.defenseclaw sandbox setupis refused: there is nothing for the person to set up.sandbox enablerecords only the shell wrapper in the person's rc file.- Administrator commands remain the
enterprise …commands ofdefenseclaw-gateway, which only root can use. Run it by its packaged path (/opt/defenseclaw/bin/defenseclaw-gatewayon Linux,/opt/cisco/defenseclaw/bin/defenseclaw-gatewayon macOS): the folder is not on thePATHof a fresh root login shell.
The run banner
A banner line shows the person's profile and its description, and only that:
Policy contractors: Contractors. Coding agents only in a sandbox. Details: defenseclaw sandbox policy explain
When the organization's directory cannot be reached (off VPN), a run first waits up to 10 seconds for your sandbox policy and says so, then starts as your organization's default profile allows.
Policy explain
defenseclaw sandbox policy explain shows the person's own policy in plain words. Without --sandbox or --harness it explains a new run of the default agent; use --sandbox NAME for a running sandbox.
Your sandbox policy on this computer
Organization profile contractors matched: your group contractors@corp.example.com
Contractors. Coding agents only in a sandbox.
Required claude and codex run only in a sandbox on this computer
Agents only claude and codex may run in a sandbox
Pack contractors (required); network allowlist, approvals manual
Credentials only bedrock may go into a sandbox
Egress only 3 hosts are reachable (api.anthropic.com, *.amazonaws.com, github.com); 2 hosts are always blocked (pastebin.com, transfer.sh)
Approvals you may approve asks for this session only; you can't unblock destinations
MCP 2 of your servers included; 1 blocked by your organization
Workspace copy mode; no mounts; no host ports; skip-permissions off
Driver vm; docker where KVM is not available
Hooks the process tree is watched
Cleanup a stopped sandbox is deleted after 14d
Policy id sha256:f065b4e9ebc5… (yours), updated 2 min ago; access: it-security@example.comOrganization profileis the guardrail profile the administrator assigned to the person's directory group. It is not the network profile of the pack (balanced,strict), which thePackrow names.- The settings table. Below the summary,
policy explainprints the pack and a table of every setting with its value, itsSOURCE(default,pack,profile,organization,flagoradmin) and theORIGINbehind it.--sourcestags each summary row with where its value comes from.-o jsonprints long lists whole.

Doctor and policy test
defenseclaw sandbox doctor (offered on managed Linux and macOS) checks the person's own account. It reports what their sandbox service got from the managed gateway: the OpenShell release, driver, install mode and gateway port, whether sandboxes are available and why not, their profile, and their images and hooks.
- Fixes. Every fix it prints is one the person can apply, or a pointer to the IT help desk.
- Docker access warning. On Linux a person in the
dockergroup gets a Docker access warning, because the group is administrator-equivalent on the computer. When the organization requires one of their agents to run only in a sandbox, the warning also says that Docker access lets them run that agent outside the sandbox policy. - Ports. Doctor checks the configured ingress and egress ports even while the daemon is idle. If another process holds either port, doctor fails that check and
sandbox statusandsandbox runname the port. Free it, or ask the administrator to set a differentopenshell.ingress_portoropenshell.egress_port.
sandbox policy test judges the person's own sandbox policy. Without --sandbox it tests the policy a new run in this folder would get; add --harness for another agent. Leave out --pack and --profile, because the organization decides them:
defenseclaw sandbox policy test --host api.example.com --port 443
defenseclaw sandbox policy test --harness claude --host api.example.com --port 443
defenseclaw sandbox policy test --sandbox myapp-7f3a --host api.example.com --port 443$ defenseclaw sandbox policy test --pack balanced --host registry.npmjs.org --port 443
✗ on this computer the policy test judges your own sandbox policy; leave out --pack and --profile, or name a sandbox with --sandboxDo not combine --sandbox with --pack, --profile or --harness: a named sandbox already has its own policy ("--sandbox tests that sandbox's own policy; leave out --pack, --profile and --harness").
Asks and blocks
- Inside the sandbox. On the Docker driver,
curlandgitprint only OpenShell's proxy refusal for a destination the policy blocks (CONNECT tunnel failed, response 403). The reason, such as "blocked by your organization" with the profile and the rule, is indefenseclaw sandbox destinations NAME,sandbox activityand the session summary. - The agent's note. After a shell or web-fetch tool call, a managed agent receives a note about destinations refused, awaiting approval or declined in that sandbox. A refusal caused by
.defenseclaw/sandbox.yamlnames that repository policy. - Waiting asks. An ask the profile lets the person answer shows up in
sandbox approvals, and the agent is told that the ask is waiting. - Session end. The summary lists what DefenseClaw blocked and says how to resume or delete the kept sandbox.
What a person may approve is set by user_approvals and allow_unblock (Asks and saved decisions).



One account at a time
Sandboxes on a computer serve one account at a time. While one person has a sandbox running, another person's sandbox run is refused until it ends. A running sandbox daemon of another account is named as "another account", without that account's name, UID or PID.

Privacy
- Own policy only. Each person sees only their own policy. Sandbox explain, status and banners name a combination of profiles as "strictest combination".
- Routes and packs. Policy routes,
pack listandpack showshow the caller's own policy, profile, matched group andrequest_access. Another person's registration is "not found". - Files.
config.yamlis 0640, packs 0750, the stores are service-owned and 0600, and daemon state is 0700. - What the OS still shows. Other accounts can see in the process list that a sandbox daemon runs, and on Linux a
dockergroup member can read everything; see Limits of managed sandboxes.

What an administrator sees
The administrator's view of one person (profile-explain, sandbox list, sandbox explain --registration, policy verify --user) is in Check it works.
Telemetry and the fleet view
- Every sandbox record carries the profile (name, digest, match, matched group), the policy digest and generation, the registration id, whether the policy is provisional, the OpenShell version and install mode, and a keyed subject hash. Principals are hashed unless
ai_discovery.include_user_principalis on. - Dashboards. The Grafana Sandboxes board has a managed fleet section, and the Splunk saved searches and Splunk Observability charts cover the same questions: running sandboxes by profile, refused and unavailable host runs, access refusals, asks, foreign items, silence stops, re-matches, provisional rates and drift.
defenseclaw.sandbox.activeis exported every minute while a sandbox runs, and exports0for a connector whose sandboxes stopped. After a gateway restart a running sandbox counts again within the next minute.- Registration tripwire. The Sandboxes dashboard stat Sandbox registrations without a guest counts
log.sandbox.registration_without_guestrecords (Registration alert reasons). It is a tripwire for the simple case, not proof.
See Sandbox telemetry.
Sandbox policy on managed computers
Set the organization floor and profile keys that decide what a person's sandbox may do on a managed computer, with packs, asks and saved decisions.
Sandbox troubleshooting on managed computers
Fix managed OpenShell sandboxes on Linux and macOS: symptoms and fixes, why a sandbox is unavailable, registration alerts, status codes and relay refusals.