EnterpriseSandboxes

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 status for your protection state, defenseclaw sandbox status for your sandboxes and defenseclaw sandbox policy explain for 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 status shows the person their own Claude Code and Cowork protection state and their own last Cowork event, never other accounts'.
  • defenseclaw sandbox setup is refused: there is nothing for the person to set up. sandbox enable records only the shell wrapper in the person's rc file.
  • Administrator commands remain the enterprise … commands of defenseclaw-gateway, which only root can use. Run it by its packaged path (/opt/defenseclaw/bin/defenseclaw-gateway on Linux, /opt/cisco/defenseclaw/bin/defenseclaw-gateway on macOS): the folder is not on the PATH of 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

The banner of defenseclaw sandbox run claude under an organization profile: the copy-mode notice, the sandbox name, the project copy and how changes come back, the Policy line naming the engineering profile, the Driver line vm, the model credential bound to its endpoint, the Repository line saying the repository policy tightened 1 setting (network.mode), and the Asks line naming defenseclaw sandbox approvals --watch

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.com
  • Organization profile is the guardrail profile the administrator assigned to the person's directory group. It is not the network profile of the pack (balanced, strict), which the Pack row names.
  • The settings table. Below the summary, policy explain prints the pack and a table of every setting with its value, its SOURCE (default, pack, profile, organization, flag or admin) and the ORIGIN behind it. --sources tags each summary row with where its value comes from. -o json prints long lists whole.

defenseclaw sandbox policy explain for an engineering user: the plain-words summary, then the pack balanced and its digest and a table of settings with VALUE, SOURCE and ORIGIN

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 docker group 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 status and sandbox run name the port. Free it, or ask the administrator to set a different openshell.ingress_port or openshell.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 --sandbox

Do 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, curl and git print 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 in defenseclaw sandbox destinations NAME, sandbox activity and 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.yaml names 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).

defenseclaw sandbox activity for a contractor: github.com allowed, example.org blocked as not on the organization's allowed list, with the text Blocked by your organization's DefenseClaw policy, example.org is not on your profile's allowed hosts (profile contractors, rule egress_allow_only), You can't approve this, and the Request access line with the quote

defenseclaw sandbox approvals: one ask waiting for sandbox sr5-bob, kind network_rule, destination example.org:443, reason example.org is not on the allowlist, with the approve and reject commands

The end of a sandbox session on Linux: Session ended with 8 tool calls, 1 blocked by a rule, 1 new site contacted, 2 sites blocked, 0 files changed; two DefenseClaw blocked lines for sites not on the organization's allowed list; the sandbox changed nothing; the sandbox is kept stopped with its connect and delete commands, and the note that the claude --resume line works only inside the sandbox

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.

A second account on a managed Linux computer is refused: another account is using sandboxes (one account at a time), with the organization's help contacts, then sandbox doctor ending not ready for sandboxes yet

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 list and pack show show the caller's own policy, profile, matched group and request_access. Another person's registration is "not found".
  • Files. config.yaml is 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 docker group member can read everything; see Limits of managed sandboxes.

defenseclaw sandbox policy explain for an engineering user followed by a pack show for a pack that is not in their chain, which answers No pack of that name is part of your sandbox policy, and permission denied reading the organization config.yaml and the sandbox policy folder

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_principal is 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.active is exported every minute while a sandbox runs, and exports 0 for 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_guest records (Registration alert reasons). It is a tripwire for the simple case, not proof.

See Sandbox telemetry.