At the moment on my Mac, I use Orbstack to run agent inside a VM. I’m also trying Tart but having some issues here to make it work fully.
In the two stack I’m exploring, I use a local model ran by ollama. It is running inside the vm as I want these vm to be isolated in order to be sure agent can’t read (nor write of course) any of the local files of my host. What they can edit is only in the vm, that is the repo I’m working on for exemple when coding.
The pitfall is this is not very efficient because vm can’t really use GPU acceleration from what I understand.. It’d be better to run ollama on host and then let the vm talk with it, but that opens a hole.
How is Osaurus compared to such stack ? I see it encapsulate a vm where it runs code and I can specify exactly which folder it can read/write.
How safe is it? Can Osaurus use terminal or global access to other apps, such as Hermes or is it 100% restrained in its own environment? And if so, how are you sure it can’t find its way out?
Thanks for your help in advance, I couldn’t really find answers to these questions on your website so I thought I’d ask here.
Thanks for reaching out, and glad you’re liking Osaurus so far. You’re right that the website doesn’t cover this well yet, so here’s a quick rundown.
How it compares to your stack. The big difference is where the model runs. Osaurus runs inference on the host using our own MLX runtime, so you get full Apple Silicon GPU acceleration. The agent’s code and commands run inside the Sandbox, an isolated Linux VM built on Apple’s Containerization framework (macOS 26+). The VM doesn’t host the model or need GPU access, so you don’t have to choose between speed and isolation, and you don’t need to open a port from the VM to an Ollama server on your host.
What the agent can touch. Inside the Sandbox, it only sees the folders you mount, with the access you give it.
Terminal and other apps. Osaurus isn’t restricted to the Sandbox by default. It also supports things like Computer Use, MCP tools, and plugins, which do run with host access. These are opt-in per agent, so if you want full containment, you keep those off and the agent only works inside the VM.
How sure can you be. Each sandbox is its own lightweight VM, so the boundary is the hypervisor, the same kind of isolation Orbstack and Tart rely on. No one can honestly promise a VM escape is impossible, but it’s a much stronger boundary than running agents directly on your Mac. Osaurus is also open source, so you can verify all of this yourself.
To point you to the right setup, it would help to know why you want this level of isolation:
Data that can’t touch the cloud. Your material must never leave your machine.
A compromised agent. You’re worried about prompt injection, malicious packages, or an agent going off script.
Professional obligations. You handle client, legal, or other sensitive data and need to show you’ve protected it.
Audit trail. You want a clear record of what the agent read, ran, and changed.
Which sounds closest? I’m happy to go deeper on any of them.
From what I understand then, it sounds pretty similar to having for example a stack where ollama serve the model and launching a vm, with orbstack, where I run my agent (hermes for exemple) in isolation mode (but not isolated network as it has to be able to communicate with ollama).
Am I right ? How would that differ ?
At the moment I serve with ollama qwen3.6:35b-a3b which use 100%GPU acceleration and mlx router. I’m on a M5 Max with 36GB ram. Performance are pretty good, would osaurus suggest better?
My usage is for coding and also for more general purpose. (I’m really at the beginning of my exploration here)
To refer to your question about isolation, here ar my concerns :
Want to be fully in control of what can the agent read/write on my machine, without possibility for it to bypass what’s set.
Want to sleep well (who doesn’t? ^^), so avoid agent being compromised. And if such thing may happen, that it happen in a close sandbox environnement that’s easy to respawn and doesn’t harm the host.
Have a way to let it use MCP and other APIs while making sure it can’t compromise secret keys and share them publicly
Same with other data, if I give it data to read I want to be sure nothing escape my machine and gets on the internet as I’m working with confidential data from clients, but is that doable if I need to run Osaurus connected as I want it to search info online.