
How to restrict external communication and commands in Cowork on Windows? I tried the organization's admin console and device settings
This page has been translated by machine translation. View original
I'm emi, and I love coffee.
In our company's Claude Enterprise organization, I had Cowork in Claude Desktop for Windows run commands. I checked whether the organization's admin console or Windows-side settings can block communication to external sites or execution of specific commands.
Conclusion
- External communication can be restricted from the organization's admin console
- With "Allow external network access" turned off, the test site could not be reached, whether the command ran on the local PC or in the cloud
- Execution of specific commands could not be blocked in the Cowork sessions tested here
- Deny rules entered under "Claude Code" in the admin console and deny rules placed on the Windows device both failed to stop the target command
What I Tested
On a Windows PC with "Use Cowork in the cloud (beta)" turned on, I tried the following.
- Run commands in the same session and compare hostnames and processes between the local PC and the cloud. On the Windows side, also check the list of VMs and WSL before and after opening the session (Steps 1, 2)
- Compare reads and writes to a connected Windows folder from the local VM and from the cloud shell (Steps 3, 6)
- Turn the organization's external communication setting off and on, and check whether PyPI is reachable from both execution targets (Step 4)
- Set separate command deny rules in the admin console and on the Windows device, and check the results in Cowork and, for comparison, in Claude Code on WSL (Step 5)
I did not test whether device deny rules work in the default local session. The full VM sandbox (requireCoworkFullVmSandbox), which runs Claude Code itself inside the local VM, is also of interest but is untested here.
Where Claude Code Itself Runs in Cowork
A Cowork session runs on top of Claude Code. Where Claude Code itself runs is not necessarily where shell commands run. The figure below is not my measurement result; it shows the three configurations from the official documentation, for Windows.

Terminology: Claude Code Sandbox and Managed Settings
Before testing, let me sort out the terms "sandbox" and "managed settings" in Claude Code.
Claude Code Sandbox
The Claude Code sandbox is a feature that uses OS mechanisms to restrict the files and network destinations that shell commands run by Claude can touch.
It is off by default. Whether to enable it, where it can write, and which domains it may reach are written in the sandbox block of settings.json.
{
"sandbox": {
"enabled": true,
"filesystem": {
"allowWrite": ["~/work"],
"denyRead": ["~/.ssh", "~/.aws"]
},
"network": {
"allowedDomains": ["github.com", "pypi.org"]
}
}
}
In my environment, after an update, Claude Code's shell sandbox became usable in standalone Windows VS Code. Previously, making the sandbox mandatory caused Sandbox required but unavailable and the session would not start, but that was the result before the update. What I tried here was the VS Code extension's sandbox, not Cowork's full VM sandbox.
Claude Code builds this feature on a component Anthropic publishes, sandbox-runtime (@anthropic-ai/sandbox-runtime, abbreviated srt). On Linux, this component isolates commands using bubblewrap (command name bwrap). The component's name was also visible in the Cowork VM on the local PC.
srt's default settings file is ~/.srt-settings.json. The name searched for in Step 1 is srt-settings.json without the leading dot, so that search result alone cannot tell whether the default file exists.
Managed Settings (org admin console [Products] - [Claude Code] - [Managed settings])
Managed settings let an organization distribute JSON written like Claude Code's settings.json to manage permissions, the sandbox, and so on. There are two ways to distribute it: enter it under "Claude Code" → "Managed settings" in the admin console (server-managed settings), or place a managed-settings.json on the device.
The device file here is the managed-settings.json that an administrator distributes. It is not the user's personal ~/.claude/settings.json. On the Windows test device, I placed it at C:\Program Files\ClaudeCode\managed-settings.json.
Environment
- Claude for Windows 4.16336.0 (61c5bb) (2026/11/03 15:57)
- Windows 11 Enterprise (10.0.26200)
- "Use Cowork in the cloud" (beta) and "Unify Chat and Cowork" are on in the admin console
PS C:\WINDOWS\system32> Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All | Select FeatureName, State
>> Get-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform | Select FeatureName, State
>>
FeatureName State
----------- -----
Microsoft-Hyper-V-All Disabled
VirtualMachinePlatform Enabled
PS C:\WINDOWS\system32>
WSL was running Ubuntu 22.04.5 LTS on WSL2. The WSL version shown by wsl --version was 3.0.5.0 and the kernel version was 6.18.58.1-1. The Hyper-V feature is disabled and VirtualMachinePlatform is enabled.
The tests were done with "Use Cowork in the cloud" (beta) and "Unify Chat and Cowork" enabled in the Enterprise plan's organization admin console.

Record the State Before Launch
For later comparison, I saved the list of processes and VMs before starting Cowork, using PowerShell with administrator rights.
Get-Process | ? { $_.Name -match 'claude|vmmem|vmwp|cowork' } | Select Name, Id, Path
hcsdiag list
I ran this with Claude Desktop running and no Cowork session open.
▼Result
PS C:\WINDOWS\system32> Get-Process | ? { $_.Name -match 'claude|vmmem|vmwp|cowork' } | Select Name, Id, Path
>> hcsdiag list
Name Id Path
---- -- ----
claude 9052 C:\Program Files\WindowsApps\Claude_4.16336.0.0_x64__pzs8sxrjxfjjc\app\claude.exe
claude 12248 C:\Program Files\WindowsApps\Claude_4.16336.0.0_x64__pzs8sxrjxfjjc\app\claude.exe
claude 15840 C:\Program Files\WindowsApps\Claude_4.16336.0.0_x64__pzs8sxrjxfjjc\app\claude.exe
claude 20728 C:\Program Files\WindowsApps\Claude_4.16336.0.0_x64__pzs8sxrjxfjjc\app\claude.exe
claude 30088 C:\Program Files\WindowsApps\Claude_4.16336.0.0_x64__pzs8sxrjxfjjc\app\claude.exe
claude 33200 C:\Program Files\WindowsApps\Claude_4.16336.0.0_x64__pzs8sxrjxfjjc\app\claude.exe
claude 36508 C:\Program Files\WindowsApps\Claude_4.16336.0.0_x64__pzs8sxrjxfjjc\app\claude.exe
claude 47756 C:\Program Files\WindowsApps\Claude_4.16336.0.0_x64__pzs8sxrjxfjjc\app\claude.exe
cowork-svc 21184 C:\Program Files\WindowsApps\Claude_4.16336.0.0_x64__pzs8sxrjxfjjc\app\resources\cowork-svc.exe
vmmemWSL 21320
vmwp 26744 C:\Windows\System32\vmwp.exe
1A4AE208-DD9D-4321-ACF9-F5B0F4D5E1E1
VM, Running, 1A4AE208-DD9D-4321-ACF9-F5B0F4D5E1E1, WSL
PS C:\WINDOWS\system32>
cowork-svc.exe was already running before I opened a Cowork session. There is only one VM, the WSL one.
Step 1: Check Where Commands Run
The Two Command Execution Targets Used in the Same Session
Commands run with device_bash ran on a Linux VM on the local PC, and commands run with Bash ran in the Anthropic cloud. To distinguish the results from here on, I call the former "Environment 1" and the latter "Environment 2". Choosing a tool changes where commands run, not the Cowork session type.
| Environment | Location | What it is | Hostname | OS |
|---|---|---|---|---|
| Environment 1 (local VM) | On the local PC | Linux VM for Cowork started via Hyper-V mechanisms. Separate from WSL | claude |
Ubuntu 22.04 |
| Environment 2 (Anthropic cloud) | Anthropic side | Work container running in a Firecracker microVM | vm |
Ubuntu 24.04 |

Shell commands run in one of two places: Environment 1 or Environment 2
I had it output the OS, processes, disks, and environment variables to see where commands are running.
Run Without Specifying the Location
I opened a Cowork session and gave the following instruction.
次のコマンドを実行して、出力をそのまま見せてください。
uname -a; cat /etc/os-release; hostname; whoami; id
ps -ef | head -40
ps -ef | grep -i claude
ip addr; df -h; mount | head -40
env | grep -i -E 'proxy|claude|sandbox'
find / -name 'srt-settings.json' 2>/dev/null

▼Result
すべてのコマンドを実行しました。ただし、出力は約58KBあり、そのままでは表示しきれません。また、認証情報(GitHubトークン、AWSキー、各種セッショントークンなど)が含まれていたため、そのままは見せずに次の2点だけ手を加えました。
- 認証情報らしき値は `***REDACTED***` に置き換えました。長い英数字列を機械的に伏せたので、32文字以上の長い環境変数名も一部伏せられています。
- 400文字を超える行は途中で切りました。
加工後の全文は `system_info_redacted.txt` として保存してあり、チャットのサイドバーから開けます。
**主な結果**
- **OS/カーネル:** Ubuntu 24.04.5 LTS(Linux 6.18.44-fc-v233、x86_64)。ホスト名は `vm` です。
- **ユーザー:** `root`(uid=0, gid=0)。
- **プロセス:** PID 1 は `/process_api --firecracker-init ...` で、Firecracker の microVM 上で動いています。Claude 関連では `/opt/node22/bin/claude --preload ...`(PID 73)と `environment-manager task-run`(PID 159)が動いていました。
- **ip addr:** `ip: command not found` で、このコマンドは入っていません。
- **df -h:** ルート(/dev/vda)は 252G 中 12G を使用していますが、空きは 31G です。`/opt/claude-code` は読み取り専用で、使用率は 93% でした。
- **mount:** スキル用(`/mnt/skills/*`)と `/opt/rclone` が squashfs で読み取り専用になっていました。出力用の `/mnt/attach/outputs` は rclone の FUSE でマウントされています。
- **環境変数:** `IS_SANDBOX=1` が設定されていました。プロキシは `HTTPS_PROXY=http://127.0.0.1:40953` で、npm・Yarn・Docker・Java・gcloud 用のプロキシ変数もすべて同じアドレスを指しています。ほかに `CLAUDE_CODE_*` 系の変数が多数ありました。
- **find srt-settings.json:** 見つかりませんでした(出力なし)。
伏せる前の生の出力は、この作業環境の中にだけ残してあります。
The hostname was vm, the OS Ubuntu 24.04.5 LTS, the user root, and PID 1 /process_api --firecracker-init .... A claude process (PID 73) was also present.
Because I didn't specify where to run, this result alone can't tell whether it came from a VM on the local PC or from Anthropic's cloud. Step 4 later showed that Cowork has two places to run commands, and this result belongs to Environment 2 (Anthropic cloud).
Run Specifying Environment 1
Next, I ran the same commands specifying Environment 1. I had AI write the prompt, so it says things like "running on your PC...". It was a bit off, but I ran it as is.
次のコマンドを、device_bash ツール(お使いの PC 上で動く Cowork 用の Linux 仮想マシン)で実行して、出力をそのまま見せてください。
uname -a; cat /etc/os-release; hostname; whoami; id
ps -ef | head -40
ps -ef | grep -i claude
df -h; mount | head -40
env | grep -i -E 'proxy|claude|sandbox'
find / -name 'srt-settings.json' 2>/dev/null
Execution result
This is the result of running on the Linux VM on your PC. The output is shown as-is, without processing.
```
Linux claude 6.8.0-138-generic #138~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 7 13:43:15 UTC x86_64 x86_64 x86_64 GNU/Linux
PRETTY_NAME="Ubuntu 22.04.5 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
claude
rcw-01tq4dabpvkfpnqdg8cgcdbh
uid=1004(rcw-01tq4dabpvkfpnqdg8cgcdbh) gid=1004(rcw-01tq4dabpvkfpnqdg8cgcdbh) groups=1004(rcw-01tq4dabpvkfpnqdg8cgcdbh)
=== ps -ef | head -40 ===
UID PID PPID C STIME TTY TIME CMD
rcw-01t+ 1 0 0 07:07 ? 00:00:00 bwrap --new-session --die-with-parent --unshare-net --bind /sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/tmp/claude-http-6e9223078161cbc7.sock /sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/tmp/claude-http-6e9223078161cbc7.sock --setenv SANDBOX_RUNTIME 1 --setenv TMPDIR /sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/tmp --setenv NO_PROXY localhost,127.0.0.1,::1,169.254.0.0/16,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 --setenv no_proxy localhost,127.0.0.1,::1,169.254.0.0/16,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 --setenv HTTP_PROXY http://srt.<BASE64>:<PASSWORD>@localhost:3128 --setenv HTTPS_PROXY http://srt.<BASE64>:<PASSWORD>@localhost:3128 --setenv http_proxy http://srt.<BASE64>:<PASSWORD>@localhost:3128 --setenv https_proxy http://srt.<BASE64>:<PASSWORD>@localhost:3128 --setenv GIT_CONFIG_PARAMETERS 'http.proxyAuthMethod=basic' --setenv ALL_PROXY http://srt.<BASE64>:<PASSWORD>@localhost:3128 --setenv all_proxy http://srt.<BASE64>:<PASSWORD>@localhost:3128 --setenv GRPC_PROXY http://srt.<BASE64>:<PASSWORD>@localhost:3128 --setenv grpc_proxy http://srt.<BASE64>:<PASSWORD>@localhost:3128 --setenv GIT_SSH_COMMAND ssh -o ControlMaster=no -o ControlPath=none -o ProxyCommand='socat - PROXY:localhost:%h:%p,proxyport=3128,proxyauth=srt.<BASE64>:<PASSWORD>' --setenv FTP_PROXY socks5h://srt.<BASE64>:<PASSWORD>@localhost:1080 --setenv ftp_proxy socks5h://srt.<BASE64>:<PASSWORD>@localhost:1080 --setenv RSYNC_PROXY localhost:1080 --setenv DOCKER_HTTP_PROXY http://srt.<BASE64>:<PASSWORD>@localhost:3128 --setenv DOCKER_HTTPS_PROXY http://srt.<BASE64>:<PASSWORD>@localhost:3128 --setenv CLOUDSDK_PROXY_TYPE http --setenv CLOUDSDK_PROXY_ADDRESS localhost --setenv CLOUDSDK_PROXY_PORT 3128 --setenv CLOUDSDK_PROXY_USERNAME srt.<BASE64> --setenv CLOUDSDK_PROXY_PASSWORD <PASSWORD> --setenv JAVA_TOOL_OPTIONS -javaagent:/opt/cowork-node-tools/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/srt-proxy-agent.jar --setenv CLAUDE_CODE_HOST_HTTP_PROXY_PORT 37443 --setenv CLAUDE_CODE_HOST_SOCKS_PROXY_PORT 37443 --ro-bind / / --bind /sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/.npm/_logs /sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/.npm/_logs --bind / / --tmpfs /run/dbus --tmpfs /run/systemd/resolve --tmpfs /etc/ssh/ssh_config.d --dev /dev --unshare-pid --unshare-user --cap-drop ALL --proc /proc -- /usr/bin/bash -c /usr/bin/bash -c 'socat TCP-LISTEN:3128,fork,reuseaddr UNIX-CONNECT:/sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/tmp/claude-http-6e9223078161cbc7.sock >/dev/null 2>&1 & socat TCP-LISTEN:1080,fork,reuseaddr UNIX-CONNECT:/sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/tmp/claude-http-6e9223078161cbc7.sock >/dev/null 2>&1 & trap "kill %1 %2 2>/dev/null; exit" EXIT eval '"'"'bash -c '"'"'"'"'"'"'"'"'uname -a; cat /etc/os-release; hostname; whoami; id echo "=== ps -ef | head -40 ==="; ps -ef | head -40 echo "=== ps -ef | grep -i claude ==="; ps -ef | grep -i claude echo "=== df -h ==="; df -h; echo "=== mount | head -40 ==="; mount | head -40 echo "=== env ==="; env | grep -i -E '"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'proxy|claude|sandbox'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"' echo "=== find srt-settings.json ==="; find / -name '"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'srt-settings.json'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"' 2>/dev/null echo "=== done ==="'"'"'"'"'"'"'"''"'"''
rcw-01t+ 2 1 0 07:07 ? 00:00:00 /usr/bin/bash -c socat TCP-LISTEN:3128,fork,reuseaddr UNIX-CONNECT:/sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/tmp/claude-http-6e9223078161cbc7.sock >/dev/null 2>&1 & socat TCP-LISTEN:1080,fork,reuseaddr UNIX-CONNECT:/sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/tmp/claude-http-6e9223078161cbc7.sock >/dev/null 2>&1 & trap "kill %1 %2 2>/dev/null; exit" EXIT eval 'bash -c '"'"'uname -a; cat /etc/os-release; hostname; whoami; id echo "=== ps -ef | head -40 ==="; ps -ef | head -40 echo "=== ps -ef | grep -i claude ==="; ps -ef | grep -i claude echo "=== df -h ==="; df -h; echo "=== mount | head -40 ==="; mount | head -40 echo "=== env ==="; env | grep -i -E '"'"'"'"'"'"'"'"'proxy|claude|sandbox'"'"'"'"'"'"'"'"' echo "=== find srt-settings.json ==="; find / -name '"'"'"'"'"'"'"'"'srt-settings.json'"'"'"'"'"'"'"'"' 2>/dev/null echo "=== done ==="'"'"''
rcw-01t+ 3 2 0 07:07 ? 00:00:00 socat TCP-LISTEN:3128,fork,reuseaddr UNIX-CONNECT:/sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/tmp/claude-http-6e9223078161cbc7.sock
rcw-01t+ 4 2 0 07:07 ? 00:00:00 socat TCP-LISTEN:1080,fork,reuseaddr UNIX-CONNECT:/sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/tmp/claude-http-6e9223078161cbc7.sock
rcw-01t+ 5 2 0 07:07 ? 00:00:00 bash -c uname -a; cat /etc/os-release; hostname; whoami; id echo "=== ps -ef | head -40 ==="; ps -ef | head -40 echo "=== ps -ef | grep -i claude ==="; ps -ef | grep -i claude echo "=== df -h ==="; df -h; echo "=== mount | head -40 ==="; mount | head -40 echo "=== env ==="; env | grep -i -E 'proxy|claude|sandbox' echo "=== find srt-settings.json ==="; find / -name 'srt-settings.json' 2>/dev/null echo "=== done ==="
rcw-01t+ 11 5 0 07:07 ? 00:00:00 ps -ef
rcw-01t+ 12 5 0 07:07 ? 00:00:00 head -40
=== ps -ef | grep -i claude ===
(Lines for PIDs 1-5 are omitted because they are identical to the `ps -ef` output above. The only difference is the last line.)
rcw-01t+ 14 5 0 07:07 ? 00:00:00 grep -i claude
=== df -h ===
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.6G 5.1G 4.5G 54% /
tmpfs 2.0G 0 2.0G 0% /dev
tmpfs 392M 436K 392M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /run/dbus
tmpfs 2.0G 0 2.0G 0% /run/user
/dev/sda15 105M 6.1M 99M 6% /boot/efi
/dev/sdc 9.8G 2.9M 9.3G 1% /sessions
none 1.0M 0 1.0M 0% /sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/mnt
/proc/self/fd/3 953G 310G 643G 33% /sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/mnt/cowork-test
tmpfs 2.0G 0 2.0G 0% /run/systemd/resolve
tmpfs 2.0G 0 2.0G 0% /etc/ssh/ssh_config.d
=== mount | head -40 ===
/dev/sda1 on / type ext4 (rw,nosuid,nodev,relatime,discard)
udev on /dev type devtmpfs (rw,nosuid,nodev,relatime,size=1987204k,nr_inodes=496801,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,nodev,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,relatime,size=524288k,inode64)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,nosuid,nodev,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=400944k,mode=755,inode64)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
ramfs on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
tmpfs on /run/dbus type tmpfs (ro,nosuid,nodev,noexec,relatime,mode=555,inode64)
tmpfs on /run/user type tmpfs (ro,nosuid,nodev,noexec,relatime,mode=555,inode64)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=0,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1835)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
systemd-1 on /boot/efi type autofs (rw,relatime,fd=48,pgrp=0,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=2222)
/dev/sda15 on /boot/efi type vfat (rw,nosuid,nodev,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro,x-systemd.automount)
/dev/sdc on /sessions type ext4 (rw,nosuid,nodev,relatime)
none on /sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/mnt type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755,inode64)
/proc/self/fd/3 on /sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/mnt/cowork-test type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)
tmpfs on /run/dbus type tmpfs (rw,nosuid,nodev,relatime,mode=755,uid=1004,gid=1004,inode64)
tmpfs on /run/systemd/resolve type tmpfs (rw,nosuid,nodev,relatime,mode=755,uid=1004,gid=1004,inode64)
tmpfs on /etc/ssh/ssh_config.d type tmpfs (rw,nosuid,nodev,relatime,mode=755,uid=1004,gid=1004,inode64)
tmpfs on /dev type tmpfs (rw,nosuid,nodev,relatime,mode=755,uid=1004,gid=1004,inode64)
udev on /dev/null type devtmpfs (rw,nosuid,relatime,size=1987204k,nr_inodes=496801,mode=755,inode64)
udev on /dev/zero type devtmpfs (rw,nosuid,relatime,size=1987204k,nr_inodes=496801,mode=755,inode64)
udev on /dev/full type devtmpfs (rw,nosuid,relatime,size=1987204k,nr_inodes=496801,mode=755,inode64)
udev on /dev/random type devtmpfs (rw,nosuid,relatime,size=1987204k,nr_inodes=496801,mode=755,inode64)
udev on /dev/urandom type devtmpfs (rw,nosuid,relatime,size=1987204k,nr_inodes=496801,mode=755,inode64)
udev on /dev/tty type devtmpfs (rw,nosuid,relatime,size=1987204k,nr_inodes=496801,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=620,ptmxmode=666)
=== env ===
GIT_CONFIG_PARAMETERS='http.proxyAuthMethod=basic'
no_proxy=localhost,127.0.0.1,::1,169.254.0.0/16,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
GIT_SSH_COMMAND=ssh -o ControlMaster=no -o ControlPath=none -o ProxyCommand='socat - PROXY:localhost:%h:%p,proxyport=3128,proxyauth=srt.<BASE64>:<PASSWORD>'
grpc_proxy=http://srt.<BASE64>:<PASSWORD>@localhost:3128
CLAUDE_CODE_HOST_SOCKS_PROXY_PORT=37443
CLOUDSDK_PROXY_PASSWORD=<PASSWORD>
ftp_proxy=socks5h://srt.<BASE64>:<PASSWORD>@localhost:1080
CLOUDSDK_PROXY_TYPE=http
CLOUDSDK_PROXY_PORT=3128
DOCKER_HTTP_PROXY=http://srt.<BASE64>:<PASSWORD>@localhost:3128
https_proxy=http://srt.<BASE64>:<PASSWORD>@localhost:3128
CLOUDSDK_PROXY_USERNAME=srt.<BASE64>
CLAUDE_TMPDIR=/sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/tmp
JAVA_TOOL_OPTIONS=-javaagent:/opt/cowork-node-tools/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/srt-proxy-agent.jar
NO_PROXY=localhost,127.0.0.1,::1,169.254.0.0/16,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
FTP_PROXY=socks5h://srt.<BASE64>:<PASSWORD>@localhost:1080
CLAUDE_CODE_TMPDIR=/sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/tmp
RSYNC_PROXY=localhost:1080
HTTPS_PROXY=http://srt.<BASE64>:<PASSWORD>@localhost:3128
HTTP_PROXY=http://srt.<BASE64>:<PASSWORD>@localhost:3128
http_proxy=http://srt.<BASE64>:<PASSWORD>@localhost:3128
GRPC_PROXY=http://srt.<BASE64>:<PASSWORD>@localhost:3128
ALL_PROXY=http://srt.<BASE64>:<PASSWORD>@localhost:3128
all_proxy=http://srt.<BASE64>:<PASSWORD>@localhost:3128
PATH=/opt/cowork/claude-bin:/usr/local/lib/node_modules_global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SANDBOX_RUNTIME=1
CLAUDE_CODE_CERT_STORE=system
CLOUDSDK_PROXY_ADDRESS=localhost
CLAUDE_CODE_HOST_HTTP_PROXY_PORT=37443
DOCKER_HTTPS_PROXY=http://srt.<BASE64>:<PASSWORD>@localhost:3128
=== find srt-settings.json ===
=== done ===
```
- **Omitted part:** In the result of `ps -ef | grep -i claude`, the lines for PIDs 1-5 are omitted because they are character-for-character identical to `ps -ef`. The only new line is the `grep` line itself.
- **`srt-settings.json`:** I searched the whole VM but did not find it.
- **Visibility limits:** This shell runs inside an isolated environment (`bwrap`). So only this command's processes are visible, and the network goes through a local proxy.
- **Proxy username:** The string after `srt.` is the executed command encoded in Base64.
- **Handling of credentials:** The password (`<PASSWORD>`) appears to be the proxy credential for this session. It is safer to redact it when sharing the results internally.
I replaced the username and password in the proxy URLs with srt.<BASE64> and <PASSWORD>.
The hostname was claude, the OS Ubuntu 22.04.5 LTS, and the user rcw-01tq4dabpvkfpnqdg8cgcdbh (uid=1004). PID 1 was bwrap --new-session --die-with-parent --unshare-net ..., and from within the shell I could not see a claude process itself. The environment variables included SANDBOX_RUNTIME=1, and the proxies pointed to localhost:3128 and localhost:1080. The connected C:\cowork-test was mounted via fuse at /sessions/rcw-01tq4dabpvkfpnqdg8cgcdbh/mnt/cowork-test. srt-settings.json was not found.
Comparing the Two Results
| Environment 2 (no location specified) | Environment 1 (device_bash specified) |
|
|---|---|---|
| Hostname | vm |
claude |
| OS | Ubuntu 24.04.5 LTS | Ubuntu 22.04.5 LTS |
| Kernel | 6.18.44-fc-v233 | 6.8.0-138-generic |
| User | root (uid=0) |
rcw-01tq4dabpvkfpnqdg8cgcdbh (uid=1004) |
| PID 1 | /process_api --firecracker-init ... |
bwrap --new-session --die-with-parent --unshare-net ... |
claude process |
Present (/opt/node22/bin/claude, PID 73) |
Not visible from the shell |
| Environment variable | IS_SANDBOX=1 |
SANDBOX_RUNTIME=1 |
| Proxy | http://127.0.0.1:40953 |
localhost:3128 and localhost:1080 |
srt-settings.json |
Not found | Not found |
The claude process was confirmed in Environment 2. In Environment 1, the processes visible from inside bwrap are limited, so its absence from the list alone doesn't prove it isn't in the VM. The Claude Cowork architecture overview says that in cloud sessions, the agent's processing and code execution run on Anthropic's servers, and when files on the local PC are needed, they are delivered through Claude Desktop on that PC. Since "Use Cowork in the cloud" was on this time, Claude Code itself is running in Environment 2, which corresponds to the "remote Cowork session" among the three cases above.
Step 2: What Is Visible from the Windows Side
In the macOS verification article, using Cowork started a VM on the local Mac. Let me compare the VM list before and after opening a Cowork session on Windows too.
With the Cowork session open, I checked using PowerShell with administrator rights.
Get-Process | ? { $_.Name -match 'claude|vmmem|vmwp|cowork' } | Select Name, Id, Path
Get-CimInstance Win32_Process | ? { $_.Name -match 'claude' } | Select ProcessId, Name, CommandLine | Format-List
hcsdiag list
wsl -l -v
Get-ChildItem "$env:APPDATA\Claude", "$env:LOCALAPPDATA\AnthropicClaude", "$env:LOCALAPPDATA\Claude" -Recurse -Include *.vhdx, *.bundle -ErrorAction SilentlyContinue | Select FullName, Length
Compared with before launch, I look for added vmmem and vmwp processes and hcsdiag lines. With wsl -l -v, I check whether a new WSL distribution was registered.
Compared with before launch, the following were added.
vmmem 32088 (増えた)
vmwp 45772 (増えた)
hcsdiag list
1A4AE208-DD9D-4321-ACF9-F5B0F4D5E1E1
VM, Running, 1A4AE208-..., WSL
cowork-vm-5708bce1
VM, Running, 3F03617B-CDDC-512C-B4C8-9F376B2F893D, cowork-vm-5708bce1 (増えた)
wsl -l -v
* Ubuntu Running 2
A VM called cowork-vm-5708bce1 was added to hcsdiag list. One each of vmmem and vmwp was also added. On the other hand, wsl -l -v shows only Ubuntu, so no distribution was added. This is Environment 1 (the Linux VM for Cowork on the local PC), which appears to run via Hyper-V mechanisms separately from WSL.
The VM disks were in %APPDATA%\Claude\vm_bundles\claudevm.bundle.
rootfs.vhdx 8027897856 (約 7.5GiB)
sessiondata.vhdx 574619648 (約 548MiB)
smol-bin.vhdx 37748736 (約 36MiB)
The claude.exe processes were the same 8 as before launch, and cowork-svc.exe was also the same process (PID 21184) already running before. It seems that a service on the Windows side manages the Cowork-only VM (Environment 1), and opening a session starts the VM.
Step 3: How the Folder Appears
I created C:\cowork-test\hello.txt, connected this folder to Cowork, placed outside.txt outside the folder, and tried whether it can be read.
1. 接続したフォルダが、仮想マシンの中でどのパスに見えているか教えて。中身も ls して
2. そのフォルダに from-cowork.txt を作って
3. C:\Users\<自分>\Documents\outside.txt を読んでみて
I connected the folder via "Add folder" below the input box. To its right, "Manual" is shown, and pressing it toggles between manual and automatic approval. I left it on manual approval this time.

Cowork's reply is as follows (as I learned later, what was used here was Environment 1, the VM on the local PC).

C:\cowork-testappeared inside Environment 1 as/sessions/<session ID>/mnt/cowork-test.$HOMEwas/sessions/<session ID>, and onlycowork-testwas under$HOME/mnt/- At the time of
ls, the contents were only an emptyhello.txt(0 bytes) from-cowork.txtcould be created, with one line of content: "Created from Cowork at Wed Nov 4 05:58:20 UTC 2026"outside.txtcould not be read
C:\cowork-test\from-cowork.txt also appeared on the Windows side. A file created inside Environment 1 seems to appear directly in the Windows folder.
Files in the connected folder could be operated on, but outside.txt in Documents, which was not connected, could not be read. However, the folder listing tool could see the folder names under C:\Users.
Step 4: Turn Off [Allow external network access]
I turned off "Allow external network access" under [Features] - [Code execution] in the admin console, and ran the following in a new session.
pip install cowsay と curl -sI https://pypi.org/simple/ を実行して、結果を見せて
With it off, both failed.

$ pip install cowsay
WARNING: Retrying ... Failed to resolve 'pypi.org' ...
ERROR: Could not find a version that satisfies the requirement cowsay (from versions: none)
ERROR: No matching distribution found for cowsay
$ curl -sSI https://pypi.org/simple/
curl: (6) Could not resolve host: pypi.org
In Environment 2, name resolution for PyPI failed. This output doesn't tell where DNS was restricted.
After turning it back on and trying the same instruction in a new session, it succeeded.

$ pip install cowsay
Successfully installed cowsay-6.1
$ curl -sI https://pypi.org/simple/
HTTP/2 200
server: gunicorn
content-type: text/html
cache-control: max-age=600, public
x-pypi-last-serial: 43136872
content-length: 48086406
strict-transport-security: max-age=31536000; includeSubDomains; preload
Cowork explained that it ran this in two places, "the cloud work environment" and "your PC", and at first I didn't know what "your PC" referred to. I asked the following as a follow-up.
さっき「お使いのPC」でも実行したと言っていました。その実行で使ったツールの名前と、実行場所を教えてください。
次のコマンドを、それぞれの実行場所で実行して出力を見せてください。
hostname; uname -a; whoami; echo $HOME
Cowork then corrected its earlier explanation.

"Your PC" was not direct execution on the PC, but execution inside a Linux VM running on the PC. The two tools used are as follows.
| Tool name | Execution location | |
|---|---|---|
| Environment 1 | mcp__remote-devices__device_bash |
Linux VM for Cowork running on the PC |
| Environment 2 | Bash |
Work container in the Anthropic cloud |
Here are the results of hostname; uname -a; whoami; echo $HOME in each.
# Environment 1: device_bash (Linux VM on the PC)
claude
Linux claude 6.8.0-138-generic #138~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 7 ... x86_64 x86_64 x86_64 GNU/Linux
rcw-01tq4dac1vw8e6uzrcpcomtx
/sessions/rcw-01tq4dac1vw8e6uzrcpcomtx
# Environment 2: Bash (cloud work container)
vm
Linux vm 6.18.44-fc-v233 #1 SMP PREEMPT_DYNAMIC @0 x86_64 x86_64 x86_64 GNU/Linux
root
/root
This showed that Cowork has the following two execution environments.
- Environment 1
- A Linux VM for Cowork started on the local PC via Hyper-V mechanisms (hostname
claude, Ubuntu 22.04) - The
cowork-vm-5708bce1added tohcsdiag listin Step 2 and the/sessions/...path in Step 3 seem to correspond to this - Separate from the WSL Ubuntu
- A Linux VM for Cowork started on the local PC via Hyper-V mechanisms (hostname
- Environment 2
- A work container in the Anthropic cloud (hostname
vm, Ubuntu 24.04, Firecracker microVM) - This is what I saw the first time in Step 1
- Based on Cowork's explanation; not directly verifiable from the Windows side
- A work container in the Anthropic cloud (hostname
When running pip install cowsay and curl, Claude seems to have first run them in Environment 2, then decided to "try on the PC side too" and ran the same commands in Environment 1. Both Environment 1 and Environment 2 were used within the same session.
This matches the official explanation that cloud sessions reach the PC side through Claude Desktop when needed.
Cowork's explanation about cowsay and the PyPI connection is as follows.
cowsaywas installed only inside Environment 1, not in the Windows-side Python- The PyPI connection succeeded from Environment 1 via a proxy
Between Environment 2 and Environment 1, PyPI's response headers were almost identical; the only difference was the CDN cache location that returned the response (Chicago for Environment 2, Tokyo for Environment 1).
I confirmed that with the admin console's "Allow external network access" turned off, Environment 1 (local) also fails in the same way. When I passed the same instruction specifying Environment 1, the curl response was as follows.
HTTP/1.1 403 Forbidden
Content-Type: text/plain
X-Proxy-Error: blocked-by-allowlist
In Environment 1, the proxy returned 403 and X-Proxy-Error: blocked-by-allowlist. This differs from Environment 2's name resolution error, but neither could connect to PyPI.
After turning it back on, trying again in Environment 1 succeeded.
$ pip install cowsay
Successfully installed cowsay-6.1
(~/.local/bin が PATH に入っていないという警告あり)
$ curl -sI https://pypi.org/simple/
HTTP/1.1 200 Connection Established
HTTP/2 200
server: gunicorn
x-served-by: cache-iad-..., cache-nrt-...
The HTTP/1.1 200 Connection Established inserted in the curl response shows the connection goes through a proxy. I found that the "Allow external network access" setting is reflected in the same way in both Environment 1 and Environment 2.
Step 5: Which Managed Settings Reach Cowork
What I changed in Step 4 was the external communication setting under the organization's "Features". Here I test Claude Code permission rules. To distinguish which setting took effect, I specified a different command for each distribution location.
Bash(hostname)inpermissions.denyin the admin consoleBash(whoami)deny inC:\Program Files\ClaudeCode\managed-settings.jsonon the device
Deny rule added in the admin console (relevant part)
{"permissions":{"deny":["Bash(hostname)"]}}
Windows device C:\Program Files\ClaudeCode\managed-settings.json
{"permissions":{"deny":["Bash(whoami)"]}}
To check whether the deny rule entered in the admin console works, I tried it not only in Cowork but also in Claude Code on WSL logged in to the same test organization.
| hostname (deny entered in admin console) | whoami (deny entered in device file) | |
|---|---|---|
Cowork Environment 1 (local, claude) |
Runs (not blocked) | Runs (not blocked) |
Cowork Environment 2 (cloud, vm) |
Runs (not blocked) | Runs (not blocked) |
| claude in terminal (WSL, test organization) | Blocked (denied) | Runs (not blocked) |
hostname, denied in the admin console, was blocked in Claude Code on WSL but could run in Cowork. This matches the documentation that says Claude Code inside a Cowork session does not fetch server-managed settings from the admin console.
whoami, denied in the Windows managed settings file, could run in every execution target. In particular, what I used in Environment 1 was device_bash, a different tool from the Bash that the rule specifies. The command running only shows it wasn't blocked; it doesn't tell whether the file was read.
Step 6: Check Folder Visibility and Write Scope in Environment 2 Too
Step 3 was done in Environment 1, so I tried the same in Environment 2 (Anthropic cloud).
First, I emptied "Claude Code" → "Managed settings" in the admin console. The Step 3 result comes from Cowork's mechanisms, not Claude Code's sandbox.* settings, so I did the same operation in Environment 2 without any settings.
First, I saved the Windows-side state before running. There are hello.txt created in Step 3 and outside.txt placed outside the folder, and from-cowork.txt has been deleted.
Get-ChildItem "C:\cowork-test" -Force | Select Name, Length, LastWriteTime
Get-ChildItem "$env:USERPROFILE\Documents\outside.txt" | Select Name, Length, LastWriteTime
Name Length LastWriteTime
---- ------ -------------
hello.txt 0 2026/11/04 14:38:50
Name Length LastWriteTime
---- ------ -------------
outside.txt 141 2026/11/04 14:56:42
In a new session with C:\cowork-test connected, I checked whether this folder is visible from the cloud container. To pin the execution target to the cloud, I specified using only the Bash tool.
次の操作を、すべて Bash ツール(Anthropic のクラウド上の作業用コンテナ)で行ってください。device_bash は使わないでください。
1. hostname を実行して、Bash ツールで動いていることを確認して
2. 接続したフォルダ(C:\cowork-test)は、このコンテナの中のどのパスに見えているか教えて。見えない場合は、見えないと答えて。中身も ls して
3. そのフォルダに from-env2.txt を作って。作れない場合は、そのエラーをそのまま見せて
4. C:\Users\<自分>\Documents\outside.txt を読んでみて。読めない場合は、試した方法とエラーをそのまま見せて
The results are as follows.
hostnamewasvm, confirming it ran in Environment 2- The connected folder is not visible from inside the container.
/mnt/c,/c,$HOME/mnt, and/mnt/cowork-testall do not exist, andfind / -maxdepth 4 -iname '*cowork-test*'found nothing - Writing to
/mnt/cowork-test/from-env2.txtfailed withNo such file or directory echo test > 'C:\cowork-test\from-env2.txt'succeeded. However, no file appeared in WindowsC:\cowork-test; instead, one file literally namedC:\cowork-test\from-env2.txtwas created on the Anthropic cloud side. Claude noticed and deleted itoutside.txtgaveNo such file or directorywith every notation:C:\...,/mnt/c/..., andC:/...
Checking C:\cowork-test on the Windows side, there was only hello.txt, no from-env2.txt, and Test-Path returned False.
Name Length LastWriteTime
---- ------ -------------
hello.txt 0 2026/11/04 14:38:50
False
In Step 3, when I asked Cowork to "create from-cowork.txt in this folder", the file appeared in the connected Windows folder. In Step 6, I asked for a file in the same folder but pinned the execution target to the cloud Bash. The folder was not visible from the cloud container, and no file appeared on the Windows side.
Next, I checked where inside the container writes are possible.
touch ~/probe-home; echo "home: $?"
touch /etc/probe-etc; echo "etc: $?"
touch /opt/probe-opt; echo "opt: $?"
touch /tmp/probe-tmp; echo "tmp: $?"
touch /mnt/attach/outputs/probe-outputs; echo "outputs: $?"
home: 0
etc: 0
opt: 0
tmp: 0
outputs: 0
In Environment 1, files could be created in the connected Windows folder. In Environment 2, that folder was not visible, but writing inside the cloud container was possible.
Finally, to see whether the created files persist, I opened a new session and ran ls ~/probe-home /tmp/probe-tmp.
クラウド側のコンテナ: ~/probe-home も /tmp/probe-tmp も存在しません(No such file or directory)
In the new session, of the 5 files created in the previous session, the 2 I checked were both not found.
Claude tried to run the same commands on the local PC too, but since no folder was connected in the new session yet, it could not run them on the PC side.
What Was Confirmed per Cowork Command Execution Target (Local PC vs. Cloud)
- When both "Environment 1 (local VM)" and "Environment 2 (Anthropic cloud)" are available, Claude chooses where to run. If unspecified, it may end up in Environment 2
- In Environment 1, the connected
C:\cowork-testwas visible inside the VM and files could be created.outside.txtin the unconnectedDocumentscould not be read. Commands ran insidebwrap, a Linux isolation tool - Environment 2 is a container running in the Anthropic cloud. The connected
C:\cowork-testwas not visible inside the container, andoutside.txtcould not be read either - The [Features] - [Allow external network access] setting was reflected in both environments
- Command-denying rules (
permissions.deny) did not stop commands in either Environment 1 or Environment 2, whether entered under "Claude Code" → "Managed settings" in the admin console or placed inC:\Program Files\ClaudeCode\managed-settings.json
Choose Settings Based on What Your Organization Wants to Restrict
| What you want to restrict | Setting for admins to look at | What was confirmed this time |
|---|---|---|
| Restrict communication from shell commands to external sites | "Features" → "Allow external network access" and the destination allowlist in the org admin console | In Step 4, with it off, connections to PyPI failed in both Environment 1 and Environment 2, and succeeded after turning it back on. With the setting that restricts shell communication, communication to Anthropic-designated destinations remains even when off. It does not stop web search or connectors in general. |
| Distribute command deny rules to the default local Cowork on company-managed PCs | Set permissions.deny in the device management (MDM) Claude Code policy or the device's managed-settings.json. |
This is where local sessions read from. If you need to block specific commands, also check that the rule works for the tool actually used. Untested in this configuration. |
For remote Cowork, command deny rules cannot be distributed by either method tried here. Neither rules entered under "Claude Code" → "Managed settings" nor the Windows device's managed-settings.json reach remote sessions.
Closing
Cowork's controls were complicated and confusing.
I don't fully understand the full VM sandbox either, so I'd like to test it later.
References
