Live data from Hacker News

Claude Cowork runs Linux VM via Apple virtualization framework

gist.github.com

31–40 of 48 posts

Re: Claude Cowork runs Linux VM via Apple virtualization framework

#31
post #2

Is there an easy way to do something similar for Claude Code? I'm growing tired of babysitting it to make sure it doesn't do anything bad. Late adopter. Started last night. Stayed up four hours past my normal bedtime because I couldn't stop. (Ended up "building" a fancy .MOD player for DOS in Turbo C.) Needed the Max 5x plan after two hours. (The 'Pro' plan should be renamed 'Sampler', made one-time and free with CC…

Well, one very easy way would be to use the web version of Claude Code.

Re: Claude Cowork runs Linux VM via Apple virtualization framework

#32
post #2

Is there an easy way to do something similar for Claude Code? I'm growing tired of babysitting it to make sure it doesn't do anything bad. Late adopter. Started last night. Stayed up four hours past my normal bedtime because I couldn't stop. (Ended up "building" a fancy .MOD player for DOS in Turbo C.) Needed the Max 5x plan after two hours. (The 'Pro' plan should be renamed 'Sampler', made one-time and free with CC…

Isn't the easy way just a development VM? As in: Install your OS of choice in a virtual machine, e.g. even hosted on your main machine. Install the AI coding tool in the virtual machine. Set up a shared folder between host+guest OS. Only let the VM access files that are "safe" for it to access. Its own repo, in its own folder. If you want to give the AI tool and VM internet access and tool access, just limit what it…

Did somewhat exactly that for apple container based sandbox - Coderunner[1]. You can use it to safely execute ai generated code via an MCP at http://coderunner.local:8222

A fun fact about apple containers[2], it's more isolated than docker containers as in it doesn't share the VM across all containers.

1. https://github.com/instavm/coderunner

2. https://github.com/apple/container

Re: Claude Cowork runs Linux VM via Apple virtualization framework

#34
post #23

How about the windows App ?

Is that even a sandbox? I thought it was just a wrapper around an (old) existing tool that has been infinitely rebranded. Their old "remote desktop" program and some web listing capabilities to launch it in "rootless" mode.

Yes, there is a sandbox.

https://simonwillison.net/2026/Jan/12/claude-cowork/

That’s the point of this gist, and the related blog post.

Also, it’s a bit of a stretch to call Claude Code, which isn’t even a year old…old.

Re: Claude Cowork runs Linux VM via Apple virtualization framework

#35
post #11

Earlier quoted context omitted.

I mean, it depends on what you're doing but I force claude to always commit code every time it finishes a todo. It never seems to stop doing that, so I run it in dangerous mode on Zed. I get to review the code after the fact anyway.

The risk isn’t that it makes weird commits; it’s that it may decide to clean up stuff and delete more than desired. - https://github.com/anthropics/claude-code/issues/4331 - https://github.com/anthropics/claude-code/issues/7787 - https://news.ycombinator.com/item?id=46268222

You can roll back commits

Re: Claude Cowork runs Linux VM via Apple virtualization framework

#36
post #2

Is there an easy way to do something similar for Claude Code? I'm growing tired of babysitting it to make sure it doesn't do anything bad. Late adopter. Started last night. Stayed up four hours past my normal bedtime because I couldn't stop. (Ended up "building" a fancy .MOD player for DOS in Turbo C.) Needed the Max 5x plan after two hours. (The 'Pro' plan should be renamed 'Sampler', made one-time and free with CC…

Isn't the easy way just a development VM? As in: Install your OS of choice in a virtual machine, e.g. even hosted on your main machine. Install the AI coding tool in the virtual machine. Set up a shared folder between host+guest OS. Only let the VM access files that are "safe" for it to access. Its own repo, in its own folder. If you want to give the AI tool and VM internet access and tool access, just limit what it…

Here are my open-source (MIT) solutions for Mac development:

SandVault [0]: Run AI agents isolated in a sandboxed macOS user account

ClodPod [1]: Run AI agents isolated inside an OSX virtual machine

0: https://github.com/webcoyote/sandvault

1: https://github.com/webcoyote/clodpod

Re: Claude Cowork runs Linux VM via Apple virtualization framework

#37
post #11

Earlier quoted context omitted.

The risk isn’t that it makes weird commits; it’s that it may decide to clean up stuff and delete more than desired. - https://github.com/anthropics/claude-code/issues/4331 - https://github.com/anthropics/claude-code/issues/7787 - https://news.ycombinator.com/item?id=46268222

You can roll back commits

Not for changes made outside of the repo….

Re: Claude Cowork runs Linux VM via Apple virtualization framework

#38
post #2

Is there an easy way to do something similar for Claude Code? I'm growing tired of babysitting it to make sure it doesn't do anything bad. Late adopter. Started last night. Stayed up four hours past my normal bedtime because I couldn't stop. (Ended up "building" a fancy .MOD player for DOS in Turbo C.) Needed the Max 5x plan after two hours. (The 'Pro' plan should be renamed 'Sampler', made one-time and free with CC…

yolobox is the easiest I have found. Basically a batteries included image with a bit of sugar. https://github.com/finbarr/yolobox

`yolobox run claude` launches Claude Code with --dangerously-skip-permissions mode inside of a container with a good set of default tools included.

Re: Claude Cowork runs Linux VM via Apple virtualization framework

#39
post #34
post #23

Earlier quoted context omitted.

Is that even a sandbox? I thought it was just a wrapper around an (old) existing tool that has been infinitely rebranded. Their old "remote desktop" program and some web listing capabilities to launch it in "rootless" mode.

Yes, there is a sandbox. https://simonwillison.net/2026/Jan/12/claude-cowork/ That’s the point of this gist, and the related blog post. Also, it’s a bit of a stretch to call Claude Code, which isn’t even a year old… old .

sorry, thought you meant the “Windows App” from microsoft.

https://apps.apple.com/us/app/windows-app/id1295203466

Re: Claude Cowork runs Linux VM via Apple virtualization framework

#40

Earlier quoted context omitted.

Isn't the easy way just a development VM? As in: Install your OS of choice in a virtual machine, e.g. even hosted on your main machine. Install the AI coding tool in the virtual machine. Set up a shared folder between host+guest OS. Only let the VM access files that are "safe" for it to access. Its own repo, in its own folder. If you want to give the AI tool and VM internet access and tool access, just limit what it…

Here are my open-source (MIT) solutions for Mac development: SandVault [0]: Run AI agents isolated in a sandboxed macOS user account ClodPod [1]: Run AI agents isolated inside an OSX virtual machine 0: https://github.com/webcoyote/sandvault 1: https://github.com/webcoyote/clodpod

Thanks for sharing. Which one do you use for what?
Post reply on HN